// Comprehensive 9-step development workflow ensuring quality through planning, implementation, review, testing, and documentation with worktree isolation. Includes agent assignments, quality gates, and AskUserQuestion usage. Use when orchestrating feature development or understanding the development process.
| name | nine-step-workflow |
| description | Comprehensive 9-step development workflow ensuring quality through planning, implementation, review, testing, and documentation with worktree isolation. Includes agent assignments, quality gates, and AskUserQuestion usage. Use when orchestrating feature development or understanding the development process. |
Standardized 9-step development workflow ensures all feature development goes through planning, review, implementation, testing, and documentation.
Step 1: Plan → Step 2: Review → Step 2.5: User Approval ⭐
↓ (worktree creation)
Step 3: Code → Step 4: Review → Step 5: Docs → Step 6: Review
↓
Step 7: Test → Step 8: Review → Step 9: Commit
Core Principle: Steps 3-9 all execute within the same worktree.
| Step | Agent | Model | Location |
|---|---|---|---|
| 1 | project-planner | Sonnet | Main |
| 2 | plan-reviewer | Sonnet | Main |
| 2.5 | User + git-worktree-manager | - / Haiku | Main |
| 3 | backend/frontend-developer | Dynamic | Worktree |
| 4 | code-reviewer | Sonnet | Worktree |
| 5 | documentation-manager | Haiku | Worktree |
| 6 | documentation-reviewer | Haiku | Worktree |
| 7 | feature-tester | Haiku | Worktree |
| 8 | test-reviewer | Dynamic | Worktree |
| 9 | git-worktree-manager | Haiku | Worktree |
| Agent | Constraint |
|---|---|
| documentation-manager | {{MAX_DOC_LINES}} line response limit - Batch work required |
| feature-tester | {{TEMP_TEST_DIR}}/ cleanup required - Remove temp files after testing |
| test-reviewer | {{PERM_TEST_DIR}}/ immutability guardian - Approve {{PERM_TEST_DIR}}/ modifications extremely strictly |
| git-worktree-manager | 4-step cleanup sequence - plan→services→worktree→branch |
Required Usage Scenarios:
Standard Question Format: 3-5 options, pros/cons + estimated effort, recommended option
📍 Working Context
- Worktree Path: .worktree/{{feature-name}}/
- Branch: feature/{{feature-name}}
- Current Phase: Phase X - {{Phase description}}
- Current Step: Step Y ({{Step name}})
- Work Scope: {{Specific files/directories list}}
Other Skills Used:
@worktree-path-policy - Steps 3-9 working directory policy@phase-decomposition - Phase breakdown strategy (1-3h units)@code-minimization - Code addition justification criteria@git-workflow-policy - Git commit, merge, cleanup policy@interactive-questions - When user decision needed@test-file-management - {{PERM_TEST_DIR}}/ vs {{TEMP_TEST_DIR}}/ managementModel Selection:
@agent-model-selection - Sonnet vs Haiku selection criteriaResponsibilities:
Deliverable: .plan/{{feature_name}}_plan.md
Skills Used:
Responsibilities:
Deliverable: Approval status (4-tier: APPROVED, APPROVED_WITH_CONDITIONS, NEEDS_REVISION, REJECTED)
Skills Used:
Responsibilities:
Deliverable: .worktree/{{feature-name}}/ directory, feature/{{feature-name}} branch
Critical: No Step 3 without this approval
Responsibilities:
Deliverable: Working code for current phase
Skills Used:
Responsibilities:
Deliverable: Approval status with detailed feedback
Skills Used:
Responsibilities:
Deliverable: Complete documentation (< {{MAX_DOC_LINES}} lines)
Skills Used:
Constraint: {{MAX_DOC_LINES}}-line response limit - batch large docs
Responsibilities:
Deliverable: Approval status
Skills Used:
Responsibilities:
Deliverable: Test results report
Skills Used:
Constraint: Must clean {{TEMP_TEST_DIR}}/ after completion
Responsibilities:
Deliverable: Approval status
Skills Used:
Critical: {{PERM_TEST_DIR}}/ modifications approved extremely strictly
Responsibilities:
Deliverable: Git commit for current phase
Skills Used:
Note: Commit message includes rationale and scope
Phase = Feature/component implementation unit (Phase 1, Phase 2, ...) Step = Workflow stage within each phase (Step 1-9)
Structure:
Phase 1: {{Component Name}}
Step 1-9 (Complete 9-step workflow)
Phase 2: {{Component Name}}
Step 1-9 (Repeat 9-step workflow)
Phase 3: {{Component Name}}
Step 1-9 (Repeat 9-step workflow)
Execution:
After all Phases complete:
rm .plan/{{feature_name}}_plan.md
cd .worktree/{{feature-name}} && {{cleanup_command}}
git worktree remove .worktree/{{feature-name}}
git branch -d feature/{{feature-name}}
For detailed step-by-step guide, see reference.md For practical examples, see examples.md