A three-phase AI workflow with engineering gates
I designed and use Claude Code’s /wf process to carry complex changes from system analysis through test-first implementation to independent review, with a human approval gate at every critical step.
Context
AI can speed up code work, but a live product needs traceable decisions, reliable tests and a reviewer who is independent from implementation. The workflow also needs to preserve enough context to move a ticket between phases without repeating discovery.
My role
I designed the /wf operating model: three purpose-built phase sessions, phase-specific model roles, compact ticket artifacts as the handoff, warm sessions within each phase, and explicit test, implementation and release gates.
Key decisions
- Understand: use Opus for classification, root-cause analysis and system design, then Sonnet for the concise brief; implementation waits for human approval.
- Build: use one linked, warm Sonnet session for tests-first work, incremental implementation, test verification and E2E checks; I review and commit tests and accept and commit each increment.
- Ship: use a fresh Opus session on a dedicated reviewer account for independent diff review; Sonnet handles decided refactors and final checks, ending with an explain-back and final approval.
- Pass only the ticket artifacts and git state between phases; keep normal ticket work sequential to avoid unnecessary agent cold starts.
Outcome
Warm sessions and concise ticket handoffs reduce repeated context loading. AI accelerates analysis and implementation while I remain accountable for system design, scope and production outcomes. Test-first gates and an independent reviewer check the change before release.