Lesson 8 · Matt Pocock's Skills · Capstone
Capstone: Your First Real Run
Install the skills, set up one repo, and plan one feature through the whole flow. After this, the teacher is the run itself.
Your win for this lesson
The plugin is installed, Flask/habit-tracker is set up, and you have a written plan for the daily streaks feature. The plan says which skill runs at each step and which boundary move comes after it. Then you run it.
0. Warm-up: everything, mixed
These are drawn from all seven lessons and set in the project you're about to build. No lesson labels.
1. The target: why habit-tracker
A good target is a small app you own, with nothing to lose: a stub, not a finished project. Finished code has history to respect, exercise folders have no single app to grow, and a teaching workspace has no code at all. The target here is habit-tracker, a 17-line Flask app: two routes, templates, and a venv with Flask 3.0. No storage and no tests.
It's a stub with a clear domain (habits, check-ins, streaks). That gives grilling real decisions to make, gives /tdd a real seam (the streak logic), and makes the feature big enough for a few tracer-bullet tickets. It also has no test runner and no guardrail, which /retro will rightly flag. That's useful for you to see.
The feature
Daily streaks: add a habit, check in for today, and see each habit's current streak. Hold the details loosely. Grilling will settle what "a day" means, what breaks a streak, and where data lives. Your job is to answer its questions, not to arrive with a spec.
2. Install and set up (once)
- Install the plugin (it updates itself):[1]
Check it withclaude plugin install mattpocock-skills@claude-plugins-officialclaude plugin list. You'll now see a secondteach, because the plugin ships one too. That's harmless. - Open Claude Code in the project:
cd habit-tracker && claude - Run
/setup-matt-pocock-skills. It explores, proposes, waits for you, then writes.[2] Start with one sentence of context: "TreatFlask/habit-trackeras the project root." If the app lives inside a larger repo, the git root is that parent, so without that sentence it may write its files there.
Your expected answers:
| It asks | It will propose | Your answer |
|---|---|---|
| Issue tracker | GitHub (it sees the parent's remote) | Local markdown. A solo project inside a shared learning repo shouldn't fill the parent repo's issues. Tickets go to .scratch/<feature>/issues/, as in Lesson 3. |
| Triage labels | Keep the five defaults | Yes. With a local tracker there's nothing to create. |
| Domain docs | Single-context (it shouldn't ask) | Accept. One GLOSSARY.md plus docs/adr/. |
| Which instruction file | Neither file exists, so it asks | CLAUDE.md, because you're on Claude Code. |
It's working if[3]
docs/agents/issue-tracker.md,domain.md, andtriage-labels.mdexist insidehabit-tracker/.CLAUDE.mdhas an## Agent skillsblock with three one-line pointers, and nothing more.- No
GLOSSARY.mdyet. That's normal: it's created the first time grilling settles a term. - No skill file changed. If setup edited a
SKILL.md, something went wrong.
One discrepancy, as of commit 5beb35b: the guide says setup never creates tracker labels, but the skill file now says it creates missing ones on GitHub and GitLab. It doesn't matter here (the tracker is local), but if you use GitHub later, check the labels exist after setup.
3. The run plan
This is the whole flow, with the boundary move written between steps. Print it, or keep it beside the terminal.[4]
| # | Run | What good looks like | Then |
|---|---|---|---|
| 1 | /grill-with-docs "daily streaks for habits" | One question at a time. It reads app.py itself instead of asking you facts. GLOSSARY.md gains Habit, Check-in, and Streak. Maybe one ADR (storage?), but only if it passes all three tests. | Continue |
| 1b | Only if a question won't settle on paper (for example "does a 00:30 check-in count for yesterday?") | /handoff out, then /prototype (logic branch) in its own directory, then /handoff back | Back to the thread |
| 2 | /to-spec | No new interview. Nothing in it you didn't decide. Seams first, ideally one: the streak calculation. | Continue |
| 3 | /to-tickets | About 3–5 vertical slices, each one demoable. Look for something like: add and list a habit (stored) → check in today → show the streak → a missed day breaks it. Blocking edges are declared. Setting up pytest is folded into the first slice, not a ticket of its own. | /clear |
| 4 | /implement on the frontier ticket (blockers first) | Red → green at the agreed seam. Mocks only at real system boundaries. A commit, then the two-axis review inside the run. | /clear, then the next ticket |
| 5 | Optional: a whole-branch review with mattpocock-skills:code-review (not the built-in /code-review) | Standards and Spec reported separately, never merged | Subagent, or a fresh session |
| 6 | /retro, after the roughest ticket's session, before you clear | Every candidate traces to a moment in the session. Expect "no guardrail": wire pytest into a pre-commit hook. | /clear |
| 7 | After the feature: /improve-codebase-architecture "don't grill me, just show the report" | Cards name your nouns ("the Streak module"). If they're all Speculative, the code is fine. | One candidate becomes a new idea for step 1 |
Signals to stop and correct (each comes from an earlier lesson):
- Grilling asks you something the code could answer → "check the code yourself" (Lesson 2).
- Tickets cut by layer (model / route / template) → ask for vertical slices again (Lesson 3).
- The agent theorises about a failing behaviour with no red command →
/diagnosing-bugs(Lesson 6). - You're tempted to
/triageyour own tickets → don't (Lesson 6). - You're tempted to add a line to
CLAUDE.mdafter a mistake → it's a check or a standard instead (Lesson 7).
4. Practice: rehearse the run
Drill A: boundary moves on this run
These are the same five questions as Lesson 5, now at your run's real boundaries.
Drill B: the mission, from memory
Write the four failure modes and the fix for each. Then write the main flow with its branches and both on-ramps, without looking at the run plan above.
Failures → fixes: 1. It didn't do what I want → grilling (/grill-with-docs). 2. Way too verbose → a shared language (GLOSSARY.md). 3. The code doesn't work → feedback loops (/tdd, /diagnosing-bugs). 4. Ball of mud → deep modules (/improve-codebase-architecture).
Main flow: /grill-with-docs → (prototype detour via /handoff if talking can't settle it) → multi-session? yes: /to-spec → /to-tickets → /implement per ticket with /clear between (or /implement-spec); no: /implement right there. Inside: /tdd + /code-review. Close with /retro.
On-ramps: /triage (others' issues → /implement), /diagnosing-bugs (→ fix + /retro), /wayfinder (→ /to-spec). Upkeep: /improve-codebase-architecture.
5. Mission check
| Mission success criterion | Where | Status |
|---|---|---|
| Name the 4 failure modes and their fixes | L1, Drill B | Done (8/8 in L1) |
| Walk the main flow and its branches | L2–L4, L6, Drill B | Done |
| Pick the right phase-boundary move | L5, Drill A | Done |
| Install, set up, and take one real feature through the flow | This lesson, then the run | Yours to do |
After the run (the real feedback loop)
Come back to this workspace and tell me how it went. Good things to report: where grilling surprised you, how many tickets /to-tickets made, the first moment you overrode the agent, and what /retro found. I'll write it up as a learning record and decide with you what's next. Candidates include /implement-spec with parallel worktrees, wayfinder on a bigger effort, or nothing at all, if the flow just works.
Primary source
Read ask-matt/SKILL.md in full (8 minutes). It's Pocock's own map of everything you've learned, and you can now read every line of it. Keep the setup guide open while you run setup.
Stuck on something?
Ask me in Claude Code, during the run too. Good questions: "grilling asked me X, is that a fact or a decision?", "are these tickets vertical?", or "which boundary move now?". In the project you can also run /ask-matt, the plugin's own router.
Keep these beside the terminal: the Skill Map, the Context Card, the Planning Card, the Build Card, the On-ramps Card, and the Health Card.