Mehedi Hasan Shuvo.
← All case studies
AI-assisted engineering · Test-first · Independent review
In active use

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.

Claude Code /wf · phase sessions, model roles and approval gates
Ticket artifacts + git state carry the work between phases; each phase stays warm from start to finish. 01 / UNDERSTANDOPUSClassify · analyse · reproduce · planSonnet prepares the concise briefHUMAN GATE 1Approve the brief before build approved plan 02 / BUILD · LINKED SESSIONSONNETWrite tests first · user reviews + commitsImplement small, reviewable incrementsUser accepts + commits each incrementVERIFYTests · coverage · E2E checks complete diff 03 / SHIP · ACCOUNT #2OPUSFresh, independent diff reviewSonnet applies decided review fixesSonnet finalises + prepares change reportHUMAN GATE 3Explain-back · final approval Test-first · compact handoffs · independent review · accountable production decisions

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.

← More case studies

Let’s talk