AGENT SKILL

grill-deck

Harvest transferable engineering concepts and design rationale from the CURRENT session's transcript and write them as self-contained study flashcards to flashcards.md in the project root. Use only when the user explicitly runs /grill-deck (typically right before closing a session) to turn what was learned into a spaced-repetition deck.

License 许可
MIT
最近更新
2026-09-27
Stars
★ 0
Forks
0

01 前言 Front Matter

name
grill-deck
description
Harvest transferable engineering concepts and design rationale from the CURRENT session's transcript and write them as self-contained study flashcards to flashcards.md in the project root. Use only when the user explicitly runs /grill-deck (typically right before closing a session) to turn what was learned into a spaced-repetition deck.

03 SKILL.md 正文

grill-deck

Mine this session's full transcript for durable, transferable engineering knowledge and append it as flashcards to flashcards.md in the project root.

This is a deliberate, user-invoked action: run it only when the user calls /grill-deck. It reads the verbatim session log from disk (not just what's in context) so nothing lost to compaction is missed.

What makes a good card (the bar)

Capture two things, and only these two:

  1. Transferable concepts: a pattern, algorithm, language/framework behavior, or gotcha that applies beyond this repo.
  2. Design / architecture rationale: why a trade-off or approach was chosen over alternatives, abstracted away from this codebase.

Include solid fundamentals when they genuinely came up: do not gate on novelty. But respect these hard rules:

  • Exclude tooling/CLI tricks (git/jq/find incantations) and project-specific trivia (file paths, this app's module names, internal conventions). If it isn't useful to a stranger in a different codebase, it's not a card.
  • Never pad. There is no target count. If the session taught nothing transferable, write zero cards and say so plainly. A short honest result beats filler.
  • Fully self-contained. No "we", "this session", "our repo", "the ticket". Each card must be studyable cold, weeks later, by someone who wasn't here. Name the relevant technology/concept where needed (e.g. "React reconciler", "Hermes"): that's specificity, not session-coupling.

Bad: Q: Why did our search screen hang? Good: Q: In React Native, why can an async bridgeless call still block the JS thread?

Step 1: Extract the session content

The current session's transcript is a JSONL file named after $CLAUDE_CODE_SESSION_ID. Locate it portably and extract only the high-signal material (user turns + assistant thinking/text), stripping bulky raw tool I/O. Run:

python3 - <<'PY'
import os, json, glob, sys

cfg = os.environ.get("CLAUDE_CONFIG_DIR") or os.path.expanduser("~/.claude")
sid = os.environ.get("CLAUDE_CODE_SESSION_ID", "")
matches = glob.glob(f"{cfg}/projects/**/{sid}.jsonl", recursive=True)
if not matches:
    print("NO_TRANSCRIPT_FOUND", file=sys.stderr); sys.exit(1)

out = []
for line in open(matches[0]):
    try:
        d = json.loads(line)
    except Exception:
        continue
    t = d.get("type")
    m = d.get("message")
    if t == "user" and isinstance(m, dict):
        c = m.get("content")
        if isinstance(c, str) and c.strip():
            out.append("### USER\n" + c.strip())
    elif t == "assistant" and isinstance(m, dict):
        c = m.get("content")
        if isinstance(c, list):
            for b in c:
                if not isinstance(b, dict):
                    continue
                if b.get("type") == "thinking" and b.get("thinking", "").strip():
                    out.append("### THINKING\n" + b["thinking"].strip())
                elif b.get("type") == "text" and b.get("text", "").strip():
                    out.append("### ASSISTANT\n" + b["text"].strip())
                # tool_use / tool_result blocks (raw I/O) are intentionally dropped

dst = os.path.join(os.environ.get("TMPDIR", "/tmp"), f"grilldeck-{sid}.md")
open(dst, "w").write("\n\n".join(out))
words = sum(len(x.split()) for x in out)
print(f"Wrote {dst}  ({len(out)} blocks, ~{words} words)")
PY

Then Read the file it prints.

  • If extraction prints NO_TRANSCRIPT_FOUND, stop and tell the user the transcript couldn't be located (they may be on a non-standard setup); do not fabricate cards from memory.
  • If the file is very large (roughly > 40k words), read and analyze it in sequential chunks, accumulating candidate concepts as you go, rather than truncating.

Step 2: Identify candidate concepts

Read the extracted content in full. List every distinct idea that clears the bar defined in "What makes a good card". Merge near-duplicates into one concept. Discard anything project-specific, tooling-mechanical, or session-coupled. It is normal for a long session to yield only a few: or none.

Step 3: Dedup against the existing deck

If flashcards.md already exists in the project root, read it first. For each candidate, skip it if the concept is already covered: match on meaning, not exact wording. Only genuinely new concepts proceed.

Step 4: Write the cards

Append surviving cards to flashcards.md in the project root (create it if absent), preserving anything already there. Use exactly this format, one card per concept:

### Q: <a general, self-contained question>

- <answer point>
- <answer point, if needed: a single bullet is fine>

---

Keep answers concise: bullet points, no prose paragraphs. One bullet is acceptable; multiple only when the concept genuinely needs them.

Step 5: Report

Tell the user how many new cards were appended and list their questions. If none qualified, say so directly and explain briefly why (e.g. "this session was mechanical fixes with no transferable concepts"): this is a valid, expected outcome, not a failure.

04 同仓库更多 Skills

timothyrusso
timothyrusso/agentic-kit

writing-great-skills

Reference for writing and editing skills well - the vocabulary and principles that make a skill predictable.

★ 0
timothyrusso
timothyrusso/agentic-kit

write-issue

Author a complete, well-specified GitHub feature issue by interviewing the user until the Description and Acceptance criteria are unambiguous, then create it with the Feature template structure and put it on the board named in kit.config.json. Use when starting a new feature from a rough idea; it front-loads clarification so /implement-issue and the implement-issue-pipeline workflow can trust the issue. `--dry-run` prints the issue and the board it would use without creating anything.

★ 0
timothyrusso
timothyrusso/agentic-kit

triage-pr

Iteratively triage AI review-bot comments on an open pull request until the bots go quiet or a tripwire hands the loop back, vet each finding with finding-vetter, auto-fix confirmed ones, resolve noise with short replies, and consult the user in chat for judgment calls. Use when the user asks to triage, answer, or clear the AI-reviewer threads on a pull request, and when `implement-issue` reaches its Stage 5 triage, those are the only two entry points. Always needs a PR number, e.g. `/triage-pr 402 [--issue N] [--max-rounds N]`. No reports, thread replies plus a short closing message only.

★ 0
timothyrusso
timothyrusso/agentic-kit

teach

Teach the user a new skill or concept, within this workspace.

★ 0
timothyrusso
timothyrusso/agentic-kit

qa-baseline

The standing baseline QA checks to run for EVERY feature, whatever it does, as a regression safety net, with the app-specific steps (setup, launch, first screens, navigation) read from kit.config.json. Run them on the device with agent-device before any feature-specific acceptance-criteria tests. Use when doing QA on a feature branch.

★ 0
timothyrusso
timothyrusso/agentic-kit

implement-issue

Implement a GitHub feature issue end to end. Judges the issue (grills the user only if something genuinely needs clarifying, folding answers back into the issue body), announces its reading, launches the agentic-kit:implement-issue-pipeline workflow (explore, build, wire PR, review, runtime QA, bounded auto-fix, one consolidated run comment), posts the run metrics from the harness transcripts, then runs the triage-pr skill on the PR so the human gets a PR with no open bot threads, or a clear hand-back. Invoked with an issue number, e.g. `/implement-issue 378 [--skip-explore] [--skip-review] [--skip-qa] [--skip-triage] [--worktree] [--max-fix N]`.

★ 0