Skip to content

Use cases by size

Matt Pocock's skills, 5 min read

Each size of Size the issue takes its own route through the skills. The S, M and L runs below come from this site’s build; it has met no Fog yet, so Fog gets the skills’ own route.

mattpocock-skills:code-review, run on the landing ticket, found a bug: a page restored by the browser’s Back button did not record the visit, so the resume panel pointed one page too far. The fix, one item of the review’s fix batch, fits in a sentence: record the visit again when the page comes back from the cache. Its test runs in Google Chrome, since Playwright starts Chromium with --disable-back-forward-cache (source: Playwright: Chromium switches), where no page comes back from the cache; it failed before the fix and passes now.

The first ticket of this site, the landing and the first page on a preview, fit one context and one pull request.

The pivot that turned the first version of this site into these docs could not fit one session, so it took the whole main flow.

  • What you type. /ask-matt first: I wanted the router to choose the route. Then, as the route said, /grill-with-docs, /to-spec and /to-tickets in one context window, and /implement for the skeleton ticket. From the landing ticket on, no command was typed per ticket: a background agent took each one from a written brief, then mattpocock-skills:code-review reviewed it and CI ran.
  • What comes back. From the router, a route and nothing done: it “does not grill, write a spec, open a file or fire the skill it just named” (source: Matt Pocock: ask-matt). Then each step leaves what the next one reads: the glossary and the decision record, the spec, the tickets with their blocking links, and per ticket a pull request and its journal entry.
  • Where you step in. At each boundary: the route ended every step on a checkpoint, where the agent showed what it produced and waited for my go, and the grill put the open questions to me, such as the voice of these pages. Those background tickets merge without my green light, as Ship and record explains.

Every run above ends on a check that could fail, and the skills hold the same line: /tdd writes “one failing test, then just enough code to pass it” (source: Matt Pocock: tdd). When this site’s first browser gates went in, each got a temporary break to show it could fail: a check that never failed proves nothing yet. The habit is the proof, with or without TDD, as Build on a branch quotes Matt Pocock.

Too many tickets. /to-tickets tends to cut too fine, the problem Plan the tickets calls the most reported: “the model defaults to atomic units and loses the grouping that would make them meaningful” (source: Matt Pocock: to-tickets). Fix it at the quiz: “ask it to merge tickets, and it will” (source: Matt Pocock: to-tickets), and if the whole change fits one context window, skip the skill. The same quiz catches tickets cut by layer: ask what each one lets you demo, since “a ticket with no answer is a horizontal slice” (source: Matt Pocock: to-tickets).

Prompt

Merge the tickets that are too fine. For each ticket left, name what can be demoed once it is done.

A plan too early. Plan mode writes its plan before you and the agent understand each other, the failure Align on done quotes, which is why the grill comes first. This pivot arrived with a plan of its own, a proposed map of these docs, and the map went to the grill before any spec. A spec can look finished too early as well, because “later steps soften precise answers” (source: Matt Pocock: grill-with-docs): re-read it against your own answers.

  1. Playwright: Chromium switches github.com
  2. Matt Pocock: the ask-matt skill file github.com
  3. Matt Pocock: tdd aihero.dev
  4. Matt Pocock: diagnosing-bugs aihero.dev
  5. Matt Pocock: grill-with-docs aihero.dev
  6. Matt Pocock: ask-matt aihero.dev
  7. Matt Pocock: wayfinder aihero.dev
  8. Matt Pocock: to-tickets aihero.dev