Skip to content

Composing the skills

Pocock’s router skill, ask-matt, describes the skills as a small road system: one main flow that most work follows, three on-ramps that generate work and merge onto it, a maintenance loop, two vocabulary references used by everything else, and a few standalone tools. What follows paraphrases that description and maps the situations onto it. The skills index describes each skill on its own.

The route for an idea you want built has four steps. The second and third are branches; the fourth closes the loop.

  1. Sharpen the idea by interview. In a repository, start with grill-with-docs, which runs the grilling interview and records decisions in GLOSSARY.md and ADRs. Outside a repository, grill-me runs the same interview without the record. Pocock’s advice: whenever there is a repository to record in, record.
  2. Can every question be settled in conversation? A question that needs a runnable answer (a state model, business logic, a screen you have to see) takes a detour. Write a handoff, open a fresh session, build a prototype that answers the question with throwaway code, hand the answer back, and cite it from the idea thread. The prototype stays on its own branch as the record of what was tried.
  3. Is this a multi-session build? If yes, to-spec turns the thread into a spec and to-tickets splits it into tracer-bullet tickets with blocking edges. Implement then builds each ticket in a fresh context window, since every ticket is self-contained. Implement-spec instead builds the whole spec in one run, sending sub-agents in parallel to every ticket whose blockers are done and merging their work onto one integration branch. If no, implement runs in the same session. Either way, the code is built with tdd one red-green slice at a time and closes with a two-axis code-review. Implement reviews each ticket; implement-spec runs one review over the integration branch. Both tdd and code-review can also be invoked on their own. When the work goes up as a pull request, the agent uses pr to shape its body: the smallest visual that shows the change, evidence that it works, and a call on whether the merge is a one-way or a two-way door.
  4. Retro closes the loop. After a build, especially one that went sideways, retro looks back over the session and proposes changes to the agent’s environment rather than the code: navigation pointers, automated checks, coding standards, steering files, tooling. Mechanical mistakes become deterministic checks; judgment calls become coding standards. The next build starts from a better environment. Wayfinder and retro bracket the flow, as the meta-rational work before and after it; each has a page under Around the flow.

The steps before to-tickets belong in one context window, so the grilling, the spec, and the tickets build on the same thinking. Retro runs in the session it looks back on, before that session is cleared. When a session nears the limit within which the model still reasons well, compact at a phase boundary rather than continue with degraded reasoning. The sessions page covers the boundaries.

Three starting situations generate work and merge onto the main flow.

  • Bugs and requests piling up. Triage moves incoming issues through its states and produces agent-ready briefs that implement later picks up. It is only for issues you did not create; tickets from to-tickets are already agent-ready.
  • Something is broken. Diagnosing-bugs is for the hard cases: the bug that resists a first look, the intermittent failure, the regression between two known-good states. It refuses to theorize until it has a feedback loop that fails on this bug, then fixes with a regression test. Once the fix is in, retro in the same session asks what would have prevented the bug. Where the answer is that there was no good seam to test it at, the next step is improve-codebase-architecture.
  • A large, unclear effort. Wayfinder is for the idea too big for one session. It charts a shared map of decision tickets on the tracker and resolves them one at a time, producing decisions rather than deliverables, until the route is clear. When the map clears it hands off to to-spec, which collapses the linked decisions into a buildable plan; feeding the map straight into implement loses that detail. Pocock reserves wayfinder for this case and warns against using it for a well-scoped feature. The wayfinding page covers it in depth.

Improve-codebase-architecture is upkeep rather than feature work. Run it in a spare moment to find deepening opportunities; picking one produces an idea that enters the main flow at grill-with-docs. It finds candidates, and codebase-design supplies the vocabulary the chosen one is designed with.

Two references are the single source of truth for the other skills’ words. Domain-modeling sharpens the project’s domain language: challenging a fuzzy term, splitting a word doing three jobs, recording a hard-to-reverse decision as an ADR. Grill-with-docs applies it to keep GLOSSARY.md a clean glossary. Codebase-design is the deep-module vocabulary (module, interface, depth, seam, adapter, leverage, locality) for designing a module’s shape; tdd and improve-codebase-architecture both use it. Invoke either directly when the words, not the process, are the problem.

A phase is a chunk of work inside a session: the grilling, the implementation, the QA. At the boundary between two phases there are five options: continue, clear the window, write a handoff, send a scoped task to a subagent, or compact. Pocock calls this the least clear-cut decision on the map. Continuing is considered first, because the session’s own reasoning is the expensive thing to lose. Handoff is narrow: a new harness, a new directory, a colleague, or a side task forked mid-phase. Compact comes last.

Off the main flow: grill-me and the grilling primitive; prototype, for any design question that is hard to settle on paper; research, which delegates reading to a background agent and leaves a cited file for the next grilling; to-questionnaire, the inverse of grill-me, for when the blocker is in someone else’s head; wizard, for steps only a human can take; wait-what, for a message that was not understood; teach; and writing-for-agents. Setup-matt-pocock-skills is the precondition, run once per repository before the first engineering flow.

The chains above need a person at every typed step. A skill can direct the agent to load another skill only when that skill is model-invoked. The typed skills, marked on the skills index, run only when someone types them, so no skill starts the next stage of the flow by itself.

Each situation is a place where a rational process breaks. Most are also a place on Pocock’s map, which is why the same skills recur in the corrected paths.

Step 1, sharpening the idea (grill-with-docs, with to-questionnaire and domain-modeling underneath)

Step 2, the prototype detour (handoff, prototype, research)

Step 3, spec, tickets, and implement (to-spec, to-tickets, implement, implement-spec, tdd, code-review, pr)

Step 4, the retrospective (retro)

The on-ramps

Codebase health (improve-codebase-architecture, codebase-design)

Phase boundaries and standalone tools

One place on Pocock’s map has no situation page: wizard, for steps only a human can take. It is not a place where a rational process breaks. The skills index covers it.