Introduction
These docs describe how I take an issue from first read to merged pull request with Claude Code, with evidence at every step. You read them in any order, a page at a time.
What these docs are
Section titled “What these docs are”Clean Merge is the software development lifecycle I run on every issue, as an AI developer on a production app: seven phases, from sizing the issue to shipping the pull request, each with the tool I use in it and what proves it worked. The pages describe that routine, the harness around the agent that makes its work checkable, the two plugins I hand it, and the principles I check a screen against.
The running example is the build of these docs. Every page you read was sized, specified, built by an agent on its own branch, verified by gates, reviewed, and shipped with a journal entry that records who judged each ticket, and when. The pages draw on that record rather than on a hypothetical project.
What they are not
Section titled “What they are not”- Not a Claude Code tutorial. The pages assume you have run it on real work. If you have not, the quickstart (source: Anthropic: Claude Code quickstart) installs it, signs you in and walks you through a first change; come back after that.
- Not a prompt collection. Each phase names what you type, but the routine around the command matters more than the command: when to run it, what it produces, and what proves it worked.
- Not a speed pitch. Nothing here helps you start a product from nothing in a weekend. Everything here is about shipping on a codebase that already has users, reviewers and a main branch to protect.
Who they are for
Section titled “Who they are for”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.
What you will be able to do
Section titled “What you will be able to do”On your next issue, you will be able to:
- size it first, and give it only the process its size deserves;
- settle what done means before any code, with the agent finding the facts and you making the decisions;
- hand a ticket to the agent on its own branch, and get back a claim with its evidence;
- put checks where your attention used to go, so a mistake that repeats becomes a gate instead of a reminder;
- judge the pull request in a set order, from the evidence to the diff to the verdict;
- ship it with its evidence, and leave a record the next issue starts from.
How to read them
Section titled “How to read them”Any order. The sidebar lists seven sections, every page carries its reading time, and no page assumes you read the one before it. If you prefer a path, the previous and next links at the end of every page walk the docs in order, across sections, and end where they started.
Three ways in:
- To see the arrangement: How it works, then The seven rules.
- To set up the harness: The minimal setup, with its commands run as you read.
- To take an issue today: start at Size the issue and follow the routine block at the end of each lifecycle page.