My work routine and my setup
From first read to merged pull request, with evidence at every step.
This is the software development lifecycle I run on every issue with Claude Code, as an AI developer on a production app. Each phase comes with its tool, what to type and what proves it worked. The running example is the build of these docs, and every claim links to its source.
A pull request has three seats. These docs put the agent in the author's seat and the harness in the checks' seat, and keep you in the reviewer's.
The harness checks
Its gates block the claim until they pass.
- Type check, passed
- Unit tests, passed
- Build, passed
- Browser tests, passed
Passed
You judge
The evidence first, the steps by hand, then the diff.
Green light given
Not merged yet
Merged
It waits for your green light.
With its evidence, in the pull request.
7 phases, from first read to merge
Size the issue
- When
- An issue arrives, before any work on it.
- What you type
/ask-matt, with the issue and the sizing prompt.- What proves it
- The size and the evidence of done are agreed before the work starts, and the work that follows takes the route of its size and no more.
Align on done
- When
- An issue sized M or L, before any code.
- What you type
/grill-with-docs, with the issue and what you already know; for a new UI surface,/impeccable shape <feature>as well.- What proves it
- Each criterion names the observation that would prove it false and fails before any code; you confirmed the intent and the plan.
Plan the tickets
- When
- An issue sized L, right after the grill, in the same context window.
- What you type
/to-spec, then/to-tickets, without clearing or compacting between them.- What proves it
- You confirmed the seams and the granularity; every ticket says what it delivers end to end and fits one session and one pull request; the first ticket runs on the real site.
Build on a branch
- When
- A ticket whose blockers are done, on a fresh branch from
main, in a fresh session. - What you type
/implement #N: leave the changes uncommitted, end with the manual test steps.- What proves it
- Every test was red before its code; the type check and the unit tests passed under the Stop hook; the claim lists its evidence instead of asserting success.
Verify with gates
- When
- The agent claims the ticket is done, before you read anything it wrote.
- What you type
- Nothing for the gates: the Stop hook runs when the agent stops, and CI runs on the pull request. Then
/code-reviewfor bugs and/mattpocock-skills:code-reviewfor the standards and the spec, each in a fresh context. - What proves it
- The Stop hook let the agent stop; CI is green on the pull request; every finding was confirmed or refuted by a test or a run, not by another opinion.
Judge the pull request
- When
- The pull request is open with its evidence, and the gates are green.
- What you type
- Nothing to the agent. Run the manual test steps by hand in the browser, then read the diff until you can explain it.
- What proves it
- The manual test steps passed in your hands; every acceptance criterion holds against what runs; the verdict and its reasons are written down, on the pull request or in the journal entry.
Ship and record
- When
- The verdict is a green light.
- What you type
/prfor the body; once the pull request has merged,/retroin the session that built the ticket, before you clear it.- What proves it
- CI is green on the pull request and on
main; the preview, then production, serve the change; the journal entry holds the gate numbers and the prompts verbatim; a picked candidate exists as a check or a standard, not as a line of memory.
Three ways an agent's work fails review, and the habit that answers each.
The page nobody asked for
“The most common failure mode in software development is misalignment” (source: Matt Pocock: Skills For Real Engineers), with an agent as with a colleague: settle what done means before any code.
Align firstThe component that already existed
Given only a design file, agents are “more likely to re-create components rather than use the existing system” (source: Atlassian: Atlassian's DESIGN.md is here); “the strongest systems restructure the task” (source: State of AI in Design Systems, July 2026) instead of asking nicely.
Inventory before markup“It works” without proof
“It works” is a claim until something backs it: ask for “the test output, the command it ran and what it returned, or a screenshot of the result” (source: Anthropic: Best practices for Claude Code).
Evidence
Engineers and developers, in the routine they already have.
- You ship on an existing codebase, where the day runs on issues, branches, pull requests and reviews.
- You use Claude Code at work, or are adopting it, and want one routine per issue rather than a prompt collection.
- You answer for what you merge, so the proof comes before the pull request.
- You work front end first, though the routine does not depend on it.
Not for learning Claude Code from zero, or for greenfield speed.
7 sections, 29 pages. Short pages you can read in any order, each with its reading time.
Start here
5 pages
- Introduction3 min
- How it works5 min
- The seven rules4 min
- The minimal setup5 min
- Set it up with prompts5 min
Lifecycle
7 pages
- Size the issue5 min
- Align on done4 min
- Plan the tickets4 min
- Build on a branch5 min
- Verify with gates5 min
- Judge the pull request4 min
- Ship and record4 min
Harness
4 pages
- What a harness is5 min
- Context the agent reads5 min
- Checks that block5 min
- Sessions and effort5 min
Matt Pocock's skills
3 pages
- Why these skills5 min
- The main flow5 min
- Use cases by size5 min
Impeccable
2 pages
- Why Impeccable5 min
- Use cases by phase5 min
Together
5 pages
Principles
3 pages
- Refactoring UI5 min
- Ontology5 min
- Power up the harness5 min