Skip to content

My work routine and my setup

From first read to merged pull request, with evidence at every step.

Free, 7 sections, 29 pages, 3 to 5 min each

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.

  1. The agent authors

    Tests first on a branch, then a claim of what it did, still unproven.

    Claim

  2. The harness checks

    Its gates block the claim until they pass.

    • Type check, passed
    • Unit tests, passed
    • Build, passed
    • Browser tests, passed

    Passed

  3. You judge

    The evidence first, the steps by hand, then the diff.

    Green light given

  4. Not merged yet

    Merged

    It waits for your green light.

    With its evidence, in the pull request.

A pull request's three seats: the agent's claim, the harness's gates and your green light.
The routineLifecycle

Size the issue

Lifecycle, phase 1 of 7, 5 min read
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

Lifecycle, phase 2 of 7, 4 min read
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

Lifecycle, phase 3 of 7, 4 min read
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

Lifecycle, phase 4 of 7, 5 min read
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

Lifecycle, phase 5 of 7, 5 min read
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-review for bugs and /mattpocock-skills:code-review for 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

Lifecycle, phase 6 of 7, 4 min read
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

Lifecycle, phase 7 of 7, 4 min read
When
The verdict is a green light.
What you type
/pr for the body; once the pull request has merged, /retro in 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.
Up and Down walk the routineTap a phase to see its routineOpen page: Size the issue
The routine window: each phase's when, what you type and what proves it, from the lifecycle pages.

Three ways an agent's work fails review, and the habit that answers each.

  1. 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 first
  2. The 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
  3. “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.

  1. Start here

    5 pages

    1. Introduction3 min
    2. How it works5 min
    3. The seven rules4 min
    4. The minimal setup5 min
    5. Set it up with prompts5 min
  2. Lifecycle

    7 pages

    1. Size the issue5 min
    2. Align on done4 min
    3. Plan the tickets4 min
    4. Build on a branch5 min
    5. Verify with gates5 min
    6. Judge the pull request4 min
    7. Ship and record4 min
  3. Harness

    4 pages

    1. What a harness is5 min
    2. Context the agent reads5 min
    3. Checks that block5 min
    4. Sessions and effort5 min
  4. Matt Pocock's skills

    3 pages

    1. Why these skills5 min
    2. The main flow5 min
    3. Use cases by size5 min
  5. Impeccable

    2 pages

    1. Why Impeccable5 min
    2. Use cases by phase5 min
  6. Together

    5 pages

    1. Two plugins, one lifecycle4 min
    2. Two interviews, one window4 min
    3. Hooks on the edit, reviews at the end5 min
    4. Variants and the evidence a UI pull request needs5 min
    5. Runs by size5 min
  7. Principles

    3 pages

    1. Refactoring UI5 min
    2. Ontology5 min
    3. Power up the harness5 min