Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

PDCA with Claude

This guide takes one item through Plan, Do, Check and Act. You don’t need to learn any commands:

  • You talk to Claude for everything except decisions and pushes. Use your own words. The ones here are only examples.
  • You decide on the monitor: approvals and sign-offs on the Review page. Claude tells you what is waiting there and links to it. It never records a decision, and it doesn’t ask for one in a plan or a question. What Claude already knows, such as a CI run’s result or what a sign-off covered, arrives filled in beside the button: you check it and click.
  • You can delegate the small decisions. Tell Claude which ones it may take, such as the design review of small defects, and until when. It proposes a delegation; you grant it on the Review page. Whatever Claude decides under it comes back there for you to keep or undo. If Claude Code runs in auto mode, its safety check may stop a delegated command. When you grant a delegation, kanbanr offers the one allow rule that lets it through; say yes to Claude, or run the command it names.
  • You push from your terminal. Nothing reaches your remote server until you do.

Prefer to run the commands yourself? See PDCA from the command line. For the other processes, see the guide index and Processes.

What is particular to PDCA

PDCA is a small cycle. Each item goes round it once: plan the change, make it, check the result against the plan, then act on what you learned.

In PDCA
StagesPlan, Do, Check, Act
DoneAn item is done when it reaches Act. Act is the end of the cycle
ApprovalOnce, to enter Do
Sign-offsdesign-review to enter Do, docs-folded to enter Check, review to enter Act
Sprints and releasesOff by default. There is no release and no cut, so nothing is tagged

Because there are no sprints or releases, the work goes straight to main. Moving to Check is the merge: kanbanr merges the item’s branch into main. It does not push.

flowchart LR
  A["Plan"] -->|"approve, design-review"| B["Do"]
  B -->|"tests green, docs-folded"| C["Check"]
  C -->|"review"| D["Act"]
  B -.->|"branch made"| E["item branch"]
  C -.->|"merge"| F["main"]

Setting it up

Start using kanbanr for this project. Use PDCA.

Claude asks where the board should live and what the project is for. It also asks whether you want sprints and releases. PDCA recommends neither. Claude shows the plan, and accepting the plan applies it.

Agree a charter with me first.

Do the charter first. Gates aren’t enforced until a project has one, and items created before it are exempt. Claude asks for the project’s purpose and goals. Every item then links to a goal.

Open the monitor, with writes on.

Keep it open. Claude gives you the address, and your decisions happen there.

One item, stage by stage

Ask for the work in your own words, and Claude asks only what it can’t work out.

A shopper opens their basket on our shop’s web page, leaves, and comes back the next day to find what they chose still there. Plan it.

Claude asks whether it has a user interface. When you choose the technology (or, if you don’t, when the first item is designed), Claude asks whether the product has screens a person uses, or is a service, library or command-line tool. If it has screens, they become items of their own, designed and approved like the rest. If it has none, that goes into the design, so a missing screen is a decision and not an oversight. If it has screens, Claude also asks how the screens should look, the styling approach and the feel you want, before it designs the first one, and the answer goes into the design.

StageWhat Claude doesWhat you do on the Review page
PlanWrites the change, why, and how you will know it worked: the requirements and a named test for eachNothing yet
DoWrites the design and its task list, makes the item’s branch, builds, commitsSign off design-review, then Approve
CheckRuns the tests, records the results and updates the docs. Moving here merges the branch into mainSign off docs-folded
ActWrites what worked and what the next cycle should changeSign off review

Approve and sign off before Do. Do asks for an approved definition, a ## Design section in the spec and the design-review sign-off. If one is missing, Claude says which, and drafts it or brings it to you.

Adding keeps your approval; changing lapses it. Each approval covers the text you saw. Adding to the definition keeps it, and what was added is reviewed at the next decision. If approved text is changed or removed, the item returns to the Review page. Read what changed, then approve again.

Just ask to move it on:

Take the saved basket to Do.

If something’s missing, Claude tells you what. Nothing moves past a gate unless you say why, and that reason stays on the item.

Check is where the proof goes. An item can’t enter Check until every requirement has a green test. The tests are recorded against the commit they ran on.

Act ends the item. After your Sign off review, ask Claude to move it to Act. Claude also writes what the next cycle should change. To run another cycle on the same item, ask Claude to move it back to Plan.

After the merge your checkout may still be on the item’s branch. main has moved, but your remote server hasn’t until you push.

Handing work to sub-agents

Have a sub-agent build these tasks.

Claude gives each agent a scope, which kanbanr enforces. An agent can record its own tasks and test results and commit on its branch. It can’t move items, approve anything or push. When it finishes, Claude reviews the branch and brings you any decisions.

Claude stays in the project folder while an agent works, and looks inside the agent’s worktree without moving into it (git -C), so a scope never gets in your way or Claude’s. Revoking an agent’s scope stops that agent on its next tool call and never restricts you.

Who does what

YouClaude
DefinitionsAnswer what only you know, then ApproveDraft them, ask, and keep the spec current
DesignSign off design-reviewWrite the design and its task list
Code and testsReview what you want toBuild, or hand to sub-agents, and record results
Merging an itemSign off docs-foldedUpdate the docs and move the item to Check
Closing the cycleSign off reviewWrite what the next cycle should change, and move to Act
Remote serverEvery pushNothing

When things go wrong

You seeIt meansDo this
Moves go through that shouldn’tNo charter, or the item is older than itAsk Claude to agree a charter before creating items
An item is back on the Review pageIts definition changed after you approved itRead the change, then Approve again
Claude says the move to Do is refusedThe definition, the design, the sign-off or the approval is missingDo what Claude names
Claude says the move to Check is refusedA requirement has no green test, or docs-folded is missingAsk Claude to run the tests, then Sign off docs-folded

What Claude runs

You never need these. PDCA from the command line covers them step by step.

You asked forClaude runs
Set up the processkanbanr config workflow --preset pdca
Brancheskanbanr config cadence --git-model on
A new itemkanbanr feature add
The definition and designkanbanr feature define, kanbanr feature edit
Starting the buildkanbanr start
Committingkanbanr commit
Test resultskanbanr test (a manual check waits on the Review page for you to record)
Moving an itemkanbanr move
A sub-agentkanbanr scope issue