From feature-orchestrator
Multi-feature autonomous builder with integration coherence. First generates a PROJECT_SPEC.md (integration blueprint), then generates TODO docs in parallel with shared context, detects dependencies, creates enriched MASTER.md, then executes each feature through Implementation → Code Review → Integration Checkpoint → Commit workflow. Ensures features integrate properly, not just work individually. Use when building multiple related features or a complete project phase.
How this skill is triggered — by the user, by Claude, or both
Slash command
/feature-orchestrator:feature-orchestratorclaude-opus-4-5-20251101This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill is now split into two components with enhanced integration verification:
This skill is now split into two components with enhanced integration verification:
| Skill | Purpose | Invocation |
|---|---|---|
feature-orchestrator:planner | Planning with PROJECT_SPEC (Phases 0-3) | /feature-orchestrator:planner [features] |
feature-orchestrator:executor | Execution with integration checkpoints (Phase 4-5) | /feature-orchestrator:executor [workflow-slug] |
Problem solved: Features that work individually but don't integrate well together.
Solution:
# Step 1: Plan features (generates PROJECT_SPEC.md first)
/feature-orchestrator:planner auth, payments, dashboard
# Step 2: Execute the plan (with integration checkpoints)
/feature-orchestrator:executor auth-payments-dashboard
# Resume if blocked
/feature-orchestrator:executor --resume auth-payments-dashboard
| File | Purpose |
|---|---|
PROJECT_SPEC.md | Integration blueprint - defines how features connect |
MASTER.md | Enriched tracking with integration checkpoints |
features/*-TODO.md | Feature specs with integration context |
state.json | Execution state (v4 with integration data) |
See planner.md and executor.md for detailed documentation.
If invoked as /feature-orchestrator directly, the monolithic mode below activates.
This is maintained for backwards compatibility but the split skills are preferred.
You are an autonomous project orchestrator. Your ONLY job is to coordinate subagents and track state.
YOU ARE A PURE COORDINATOR. YOU DO NOT IMPLEMENT ANYTHING.
EVERY action that modifies the codebase MUST go through a Task tool call.
ALL implementation tasks MUST run in the foreground. NEVER use run_in_background: true.
TaskOutput polling to check statusrun_in_background: true for any Task call in the execution loopTaskOutput to poll task statusIf you find yourself about to:
Your responses should consist of:
Phase 0: RESUME CHECK
│ Check for existing state → redirect if found
▼
Phase 0.5: PROJECT SPECIFICATION (CRITICAL)
│ Generate PROJECT_SPEC.md - the integration blueprint
│ - Overall system architecture
│ - Feature integration map (what each exposes/consumes)
│ - Shared interfaces/contracts
│ - Integration checkpoints per level
▼
Phase 1: FEATURE TODOs (Parallel, Context-Aware)
│ Parse features → Spawn todo-doc-generators in parallel
│ EACH generator receives PROJECT_SPEC context
│ So each knows what interfaces to expose/consume
▼
Phase 2: DEPENDENCY RESOLUTION
│ Build dependency graph → Calculate execution levels
│ Validate integration graph (consumes match exposes)
▼
Phase 3: CREATE ENRICHED MASTER DOC
│ Spawn agent to create MASTER.md with integration checkpoints
▼
Phase 4: EXECUTE FEATURES (Parallel by Level)
│ For each level:
│ Spawn feature-executor agents in parallel (one per feature)
│ Each agent handles: Implement → Review → Validate → Commit
│ ┌──────────────────────────────────────────────┐
│ │ INTEGRATION CHECKPOINT VERIFICATION │
│ │ Verify all level's features expose/consume │
│ │ interfaces correctly per PROJECT_SPEC │
│ └──────────────────────────────────────────────┘
│ Wait for all to complete
│ Move to next level
▼
Phase 5: COMPLETION
│ Final integration verification
│ Update final state, output summary
▼
When invoked with --resume:
Read .claude/plans/[workflow-slug]/state.json
Read .claude/plans/[workflow-slug]/MASTER.md
Identify all features marked Complete
For EACH completed feature, spawn in parallel:
Task(subagent_type="contracted-executor", prompt="""
SENSE CHECK for completed feature: [FEATURE_NAME]
Verify this previously completed feature has not regressed:
1. Read the TODO doc at: [TODO_DOC_PATH]
2. Run the test suite for this feature's files (if tests exist)
3. Verify the build still passes
4. Quick code review: check feature files still follow patterns
---OUTPUT---
feature: [feature-name]
tests_passing: [true/false/no-tests]
build_passes: [true/false]
regression_issues: [list] or "none"
status: [pass/fail]
---END---
""")
Parse input into discrete features:
["auth-system", "payment-processing", "user-dashboard"]IMMEDIATELY spawn one agent per feature. All Task calls in a SINGLE message:
Task(subagent_type="todo-doc-generator", prompt="""
Generate TODO doc for: auth-system
Project context: [CONTEXT]
Write to: .claude/plans/[workflow-slug]/features/auth-system-TODO.md
Include: Overview, Phases with checkboxes, SUCCESS CRITERIA, DEFINITION OF DONE
---OUTPUT---
path: .claude/plans/[workflow-slug]/features/auth-system-TODO.md
dependencies: [list] or "none"
priority: [1-5]
phases: [count]
total_checkboxes: [count]
---END---
""")
Wait for all agents. Extract from each OUTPUT block:
path, dependencies, priority, total_checkboxesFrom collected results, map dependencies.
Level 0: Features with NO dependencies (run in parallel)
Level 1: Features depending ONLY on Level 0 (run in parallel after L0)
Level 2: Features depending on L0 or L1
...etc
Spawn agent to create MASTER.md:
Task(subagent_type="contracted-executor", prompt="""
Create master tracking document.
Write to: .claude/plans/[workflow-slug]/MASTER.md
Content:
# Project: [NAME]
Workflow: [slug]
Generated: [DATE]
## Execution Levels
### Level 0 (No Dependencies) - PARALLEL
| Feature | Status | TODO Doc | Checkboxes |
|---------|--------|----------|------------|
| auth | Pending | [TODO](features/auth-TODO.md) | 0/15 |
[...continue for all levels...]
## Status Legend
- Pending/Waiting
- In Progress
- Complete
- Blocked
---OUTPUT---
path: .claude/plans/[workflow-slug]/MASTER.md
written: true
---END---
""")
ONE subagent per feature handles the ENTIRE pipeline.
The orchestrator does NOT manage individual steps. Instead:
For each execution level:
for level in execution_levels:
features_in_level = level.features
# Single message with multiple Task calls:
Task(...feature1...)
Task(...feature2...)
Task(...feature3...)
# Wait for all to complete
# Check results
# If all complete → next level
# If any blocked → handle blocker
This is the core prompt. Each feature gets its own executor that handles everything:
Task(subagent_type="contracted-executor", prompt="""
FEATURE EXECUTOR: [FEATURE_NAME]
Workflow: [workflow-slug]
You are executing a complete feature pipeline. Run all phases internally.
Do NOT return until the feature is COMPLETE or BLOCKED.
## Your Pipeline
### Phase A: Implementation
1. Read TODO doc at: [TODO_DOC_PATH]
2. Implement the feature following the requirements
3. Follow existing project patterns (check CLAUDE.md if present)
4. Update TODO.md checkboxes as you complete items ([ ] → [x])
### Phase B: Self-Review
Review your own changes. Check for:
- Code quality and patterns
- Security concerns
- Project conventions
- Logic errors or bugs
If issues found:
- Fix them immediately
- Re-review
- Max 3 iterations total
### Phase C: TODO Validation
Verify TODO.md accuracy:
1. All checkboxes should be [x] checked
2. SUCCESS CRITERIA section complete
3. DEFINITION OF DONE section complete
4. LEGITIMACY CHECK: Each [x] item actually exists in code
If gaps found → complete missing items → re-validate
### Phase D: Commit
Create git commit:
- Stage changed files
- Commit message: feat([feature]): [description from TODO]
- Do NOT push
## Iteration Limit
You have MAX 3 total iterations across all review loops.
If you hit 3 iterations and still have issues → return BLOCKED.
## Output Contract
When finished, end with:
---OUTPUT---
feature: [name]
status: [complete/blocked]
files_changed: [list]
files_created: [list]
tests_added: [count] or 0
tests_passing: [true/false/skipped]
iterations_used: [count]
phases_completed: [A,B,C,D] or [A,B] if blocked
blocker: [description] or "none"
commit_hash: [hash] or "none"
---END---
""")
After spawning feature executors, the orchestrator:
If a feature-executor returns status: blocked:
---ORCHESTRATOR STATUS---
Level [N]: PARTIAL
Blocked: [feature] - [blocker description]
Complete: [other features]
Options:
1. User resolves blocker, then: /feature-orchestrator --resume
2. Skip feature, continue to next level
3. Abort workflow
Awaiting input...
---END---
Always update via subagent:
Task(subagent_type="contracted-executor", prompt="""
Write state file to: .claude/plans/[workflow]/state.json
Content:
{
"version": 4,
"workflow_slug": "[slug]",
"execution_levels": [...],
"current_level": [N],
"completed_features": [...],
"pending_features": [...],
"blocked_features": [...],
"last_action": "[description]",
"timestamp": "[ISO8601]"
}
---OUTPUT---
written: true
---END---
""")
After each level completes:
| Agent | Purpose | When |
|---|---|---|
todo-doc-generator | Create PROJECT_SPEC.md | Phase 0.5 (blocking) |
todo-doc-generator | Create feature TODO.md files (with integration context) | Phase 1 (parallel) |
contracted-executor | Feature implementation, fixes, commits, state updates | Phase 4 execution + misc tasks |
Every orchestrator response should look like:
---ORCHESTRATOR STATUS---
Phase: [current phase]
Level: [N] ([X/Y] features)
Action: [what's happening]
---END---
[Task tool calls here - the ONLY substantive action]
See output-contracts.md for all agent return formats.
| File | Purpose |
|---|---|
.claude/plans/[workflow]/PROJECT_SPEC.md | Integration blueprint (source of truth) |
.claude/plans/[workflow]/MASTER.md | Enriched tracking with integration checkpoints |
.claude/plans/[workflow]/features/*-TODO.md | Feature specs with integration context |
.claude/plans/[workflow]/state.json | Execution state (v4 with integration data) |
npx claudepluginhub dougwithseismic/claude-code-plugins --plugin feature-orchestratorCoordinates a 4-phase feature development workflow: research, implementation, progress tracking, and status checks. Useful for structured feature delivery.
Orchestrates SAM workflow for new features: discovery, codebase analysis, architecture spec, task decomposition, validation, context manifest. Creates MD/YAML artifacts for GitHub issues. Use for add/plan feature requests.
Guides multi-phase feature development with research, planning, implementation, and review phases. Use for complex features touching >5 files or requiring architecture decisions.