Most Claude Code sessions die in the middle — not because the model is weak, but because the brief was vague and the scope kept growing.
Here's the six-step loop I use so a feature lands as a reviewable PR instead of a sprawling rewrite:
01 BRIEF — write the win condition, in-scope files, and what must not change
02 MAP — explore the call graph; confirm the plan before any edit
03 SLICE — one vertical cut that proves the behavior; defer refactors
04 PROVE — failing test first, then implement until green
05 GUARD — diff the change against the original brief; reject drive-bys
06 LAND — conventional commit + risk note; human still owns merge
If scope drifts, return to MAP. Never keep editing blind.
#Claude #ClaudeCode #AIAutomation