Use when implementing complete features - coordinates brainstorming, planning, architecture, implementation, review, and testing phases with parallel agent execution and feedback loops
Systematically guide feature development through sixteen phases with parallel agent execution, explicit feedback loops, and structured feature directories.
This skill orchestrates complete feature development from concept to tested code through a standardized 16-phase workflow with feature-specific customizations.
Orchestration is NOT implementation. The orchestrator's responsibilities are:
Use this skill when you need to:
Symptoms this skill addresses:
MUST use TodoWrite BEFORE starting any orchestration workflow.
Multi-phase orchestration involves coordinating multiple agents. Without external state tracking, context drift causes forgotten phases, repeated spawns, and missed verification steps.
Create TodoWrite items for each phase BEFORE spawning any agents.
| Phase | Name | Purpose | Conditional | Gate |
|---|---|---|---|---|
| 1 | Setup | Worktree creation, output directory, MANIFEST.yaml | Always | |
| 2 | Triage | Classify work type, select phases to execute | Always | |
| 3 | Codebase Discovery | Explore codebase patterns, detect technologies | Always | ⛔ 1 |
| 4 | Skill Discovery | Map technologies to skills, write manifest | Always | |
| 5 | Complexity | Technical complexity assessment, execution strategy | Always | |
| 6 | Brainstorming | Design refinement with human-in-loop | LARGE only | |
| 7 | Architecture Plan | Technical design AND task decomposition | MEDIUM+ | |
| 8 | Implementation | Code development | Always | ⛔ 2 |
| 9 | Design Verification | Verify implementation matches plan | MEDIUM+ | |
| 10 | Domain Compliance | Feature-specific mandatory patterns validation | Always | |
| 11 | Code Quality | Code review for maintainability | Always | |
| 12 | Test Planning | Test strategy and plan creation | MEDIUM+ | |
| 13 | Testing | Test implementation and execution | Always | ⛔ 3 |
| 14 | Coverage Verification | Verify test coverage meets threshold | Always | |
| 15 | Test Quality | No low-value tests, correct assertions, all pass | Always | |
| 16 | Completion | Final verification, PR, cleanup | Always |
⛔ = Compaction Gate - BLOCKING checkpoint requiring compaction-gates.md protocol before next phase.
Work Types: BUGFIX, SMALL, MEDIUM, LARGE (determined in Phase 2: Triage)
Phase Skip Matrix:
| Work Type | Skipped Phases |
|---|---|
| BUGFIX | 5, 6, 7, 9, 12 |
| SMALL | 5, 6, 7, 9 |
| MEDIUM | None |
| LARGE | None (all 16 phases) |
| Phase | Agents | Execution | Checkpoint |
|---|---|---|---|
| 1 | - | Setup | - |
| 2 | - | Triage | - |
| 3 | Explore (1-10 via discovering-codebases) | PARALLEL | - |
| 4 | - | Skill mapping | - |
| 5 | - | Assessment | - |
| 6 | brainstorming skill | Sequential | 🛑 Human |
| 7 | {domain}-lead + security-lead | PARALLEL | 🛑 Human |
| 8 | {domain}-developer | Mode-dependent | Per-task if 4+ |
| 9 | - | Verification | - |
| 10 | - | Compliance check | Violations → Human |
| 11 | {domain}-reviewer + {domain}-security | PARALLEL | 2+1 retry → escalate |
| 12 | test-lead | Sequential | - |
| 13 | {domain}-tester ×3 | PARALLEL | - |
| 14 | - | Coverage check | - |
| 15 | test-lead | Sequential | 1 retry → escalate |
| 16 | - | Final verification | - |
This skill uses .claude/config/orchestration-limits.yaml:
| Section | Scope | Used For |
|---|---|---|
inter_phase | Implementation→Review→Test cycles | tight-feedback-loop pattern |
orchestrator | Re-invoking entire patterns | Retry limits in Orchestration Guards |
No Unilateral Overrides: Agents MUST NOT override config values. To change limits, update the config file or get user approval via AskUserQuestion.
This skill includes all necessary orchestration patterns inline:
| Pattern | Location | Purpose |
|---|---|---|
| Task Decomposition | Phase 7 (architecture-plan.md) | Break features into agent tasks |
| Delegation Protocol | Agent Matrix + Prompt Templates | Structured agent spawning |
| Parallel Execution | Parallel Execution | Concurrent agent coordination |
| Verification | Phase 9, 11, 14, 15 | Multi-stage quality gates |
| Quality Scoring | Phase 11, 15 | Review and test quality metrics |
| Orchestration Guards | Checkpoint Configuration | Retry limits and escalation |
| Error Recovery | Emergency Abort | Safe workflow termination |
| Context Management | Compaction Gates | Token budget management |
| P0 Compliance | p0-compliance.md | Feature-specific requirements |
BLOCKING checkpoints at phase transitions where context accumulates:
| Gate | After Phase | Before Phase | Trigger Threshold |
|---|---|---|---|
| 1 | 3 | 4 | 70% (140k tokens) |
| 2 | 8 | 9 | 70% (140k tokens) |
| 3 | 13 | 14 | 70% (140k tokens) |
Protocol: See compaction-gates.md for:
See references/agent-matrix.md for complete agent selection guide with:
Quick Reference by Feature Type:
| Feature Type | Phase 7 | Phase 8 | Phase 11 | Phase 13 |
|---|---|---|---|---|
| Frontend | 2 agents | 1 agent | 2 agents | 3 agents |
| Backend | 2 agents | 1 agent | 2 agents | 3 agents |
| Full-Stack | 3 agents | 2 agents | 4 agents | 6 agents |
Feature development has specific P0 requirements:
| Check | Description | Severity |
|---|---|---|
| Type Safety | All new functions have TypeScript types | P0 |
| Component Patterns | React components follow project patterns | P0 |
| State Management | Uses approved state management (TanStack Query, Zustand) | P0 |
| Error Boundaries | Components have error boundaries where appropriate | P1 |
| Accessibility | Interactive elements are keyboard accessible | P1 |
| Test Coverage | New code has corresponding tests | P0 |
See Phase 10: Domain Compliance for full checklist.
Implementation→Review→Test cycle with automatic iteration when review or tests fail.
orchestration-limits.yaml{OUTPUT_DIR}/feedback-scratchpad.mdPattern: See tight-feedback-loop.md
Human approval required at specific phases based on work type:
| Work Type | Checkpoints (Phases) |
|---|---|
| BUGFIX | 8 (implementation), 16 |
| SMALL | 8 (implementation), 16 |
| MEDIUM | 7 (plan), 8, 16 |
| LARGE | 6 (design), 7, 8, 16 |
For large plans (>5 tasks), add intermediate checkpoints during implementation.
See checkpoint-configuration.md for feature-specific configuration.
When tasks are independent, spawn in a SINGLE message:
// Phase 7: Architecture - spawn leads in parallel
Task("frontend-lead", "Design frontend architecture...");
Task("security-lead", "Security assessment...");
// Phase 13: Testing - spawn testers in parallel
Task("frontend-tester", "Unit tests for components...");
Task("frontend-tester", "Integration tests for API hooks...");
Task("frontend-tester", "E2E tests for user flows...");
Do NOT spawn sequentially when tasks are independent.
When spawning parallel agents:
| Agent | Scope |
|---|---|
| frontend-developer | src/sections/, src/components/ (UI code) |
| backend-developer | modules/chariot/backend/pkg/ (Go code) |
| frontend-reviewer | READ-ONLY on frontend paths |
| backend-reviewer | READ-ONLY on backend paths |
| frontend-tester | test files only (_.test.tsx, _.spec.ts) |
| backend-tester | test files only (*_test.go) |
See file-scope-boundaries.md for conflict detection protocol.
MANDATORY at every phase transition:
Read(.claude/skill-library/development/orchestrating-feature-development/references/compaction-gate-counters.md)
This file contains counters for:
MANDATORY at gates:
Read(.claude/skill-library/development/orchestrating-feature-development/references/rationalization-table.md)
This file contains anti-rationalization counters for "Momentum Bias", "Context Seems Fine", and other compaction gate bypass patterns.
Phase Transition Protocol:
See rationalization-table.md for feature-specific rationalizations. See compaction-gate-counters.md for phase transition counters.
See emergency-abort.md for abort triggers, cleanup options, and procedures.
Quick Triggers:
Flow: Stop work → Capture state → Present cleanup options → Execute cleanup → Report final state.
.worktrees/{feature-name}/
├── .feature-development/
│ ├── MANIFEST.yaml # Feature metadata, status, metrics
│ ├── progress.md # Session progress tracking
│ ├── skill-manifest.yaml # Phase 4 output: technology-to-skill mapping
│ ├── discovery.md # Phase 3 output: codebase patterns
│ ├── architecture.md # Phase 7 output: technical design
│ ├── plan.md # Phase 7 output: implementation tasks
│ ├── feedback-scratchpad.md # Iteration history for tight feedback loop
│ └── agents/ # Agent output files
│ ├── frontend-lead.md
│ ├── frontend-developer.md
│ └── ...
└── [feature code] # Actual implementation
Feature development is complete when:
/feature command - Primary entry point for usersusing-git-worktrees (LIBRARY) - Phase 1
Read(".claude/skill-library/workflow/using-git-worktrees/SKILL.md")persisting-agent-outputs (CORE) - Phase 1
discovering-codebases-for-planning (CORE) - Phase 3
brainstorming (CORE) - Phase 6
writing-plans (CORE) - Phase 7
finishing-a-development-branch (LIBRARY) - Phase 16
Read(".claude/skill-library/workflow/finishing-a-development-branch/SKILL.md"){domain}-lead + security-lead - Phase 7
{domain}-developer - Phase 8
{domain}-reviewer + {domain}-security - Phase 11
test-lead - Phase 12, 15{domain}-tester ×3 - Phase 13
developing-with-subagents (CORE) - Plan has >3 independent tasks
dispatching-parallel-agents (CORE) - 3+ independent failures
verifying-before-completion (CORE) - Phase 16 completion
debugging-systematically (CORE) - Review/test failures
| Pattern | Source |
|---|---|
| Context Compaction | https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents |
| Effort Scaling | https://www.anthropic.com/engineering/multi-agent-research-system |
| GitHub Flow (branch completion) | https://docs.github.com/en/get-started/using-github/github-flow |
| REQUIRED SUB-SKILL pattern | https://github.com/obra/superpowers |
| Tight Feedback Loop | https://awesomeclaude.ai/ralph-wiggum |