Spec Kit Parallel Orchestrator
Overview
Transforms spec kit workflows from "single-threaded execution" to "3-6 Sub Agent parallel + stage aggregation". Prioritizes parallel execution for independent nodes, strictly serial execution for strong dependency chains.
Trigger Conditions (Must Match)
Invoke this skill when any condition is met:
- User explicitly enters
/speckit.prefixed commands, e.g.,/speckit.specify,/speckit.plan,/speckit.tasks,/speckit.implement - Codex CLI compatible form
/prompts:speckit.also matches - User mentions "spec kit workflow / spec-driven" and requests breakdown, planning, implementation
- User requests "parallel task splitting" or "multi-agent concurrent + stage aggregation"
State Machine
pending → in_progress → verifying → passing
↓ ↓
blocked ← failed
| Status | Trigger |
|---|---|
pending | Initial state |
in_progress | harness-start.sh selects task |
verifying | harness-end.sh begins verification |
passing | All gates passed |
failed | E2E test failed |
blocked | Dependency incomplete or environment check failed |
Harness Artifacts
specs/harness/
├── feature_list.json # Feature definitions + status
├── progress.log.md # Session history
├── session_state.json # Current context
└── init.sh # Environment check
Stage Alignment (github/spec-kit)
- Stage order:
constitution -> specify -> clarify -> plan -> tasks -> implement /speckit.tasksparallel semantics: only parallelizable tasks run concurrently/speckit.implementmust respect task dependencies
Execution Rules
- Validate stage and dependency analysis first
- Split into 3-6 subtasks (3 for medium, 4-6 for complex)
- Each subtask specifies: goal, input, output, boundary, file scope
- Only parallelizable nodes execute concurrently
- No write conflicts between subtasks
- Aggregate results, then proceed to next round
Gate Enforcement
| Gate | Verification |
|---|---|
| Working Tree Clean | git status |
| New Commit Exists | Compare commits |
| E2E Passed | Custom command |
Output Template
Each round outputs:
- Parallel task list (3-6)
- Completion status and outputs
- Conflicts/blockers
- Aggregation conclusion
- Next round plan
Scripts Reference
| Script | Purpose |
|---|---|
harness-lib.sh | Common functions |
harness-init.sh | Initialize |
harness-start.sh | Start session |
harness-end.sh | End session |
harness-pick-next.sh | Select task |
harness-commit.sh | Commit progress |
harness-verify-e2e.sh | E2E verify |
harness-status.sh | Status view |
References
references/examples.md- Prompt templatesreferences/best-practices.md- Best practices- Anthropic: Effective Harnesses