Skill: run
Full SWARM SDLC pipeline with phase gating. Runs all phases in sequence with confirmation between each phase. If any phase fails, reports the failure and stops.
Inputs
- Story file: Path to a
.swarm/backlog/{ID}.mdfile indraftstatus - Optional:
--autoflag to skip confirmations between phases
Steps
Phase 1: Ideate
- Execute the
swarm:ideateskill on the story. - Gate check: Use the
swarm_validatetool withpathset to the absolute path of.swarm/backlog/${STORY_ID}.md. Verify the story has:- At least 3 acceptance criteria defined
- Complexity estimated
- Status is
ideating(notawaiting_input)
- If the gate fails:
- Report what is missing.
- If status is
awaiting_input, stop and tell the user to answer questions in.swarm/pending-questions/. - Exit with failure.
- If the gate passes and
--autois not set, ask for confirmation to proceed.
Phase 2: Plan
- Execute the
swarm:planskill on the story. - Gate check: Use the
swarm_transitiontool withpathandtarget_statusset toplanned. Verify the story has:- At least one task defined
- All ACs covered by at least one task
- No circular task dependencies
- Status is
planned(notawaiting_input)
- If the gate fails:
- Report what is missing.
- Exit with failure.
- If the gate passes and
--autois not set, ask for confirmation to proceed.
Phase 3: Execute
- Execute the
swarm:executeskill on the story. - Gate check: Verify:
- All tasks are
doneorskipped - Code compiles:
bun run typecheck - Tests pass:
bun test - Linting passes:
bunx biome check .
- All tasks are
- Use the
swarm_transitiontool withtarget_statusset toverifying. - If the gate fails:
- Report which checks failed.
- Exit with failure.
- If the gate passes and
--autois not set, ask for confirmation to proceed.
Phase 4: Verify
- Execute the
swarm:verifyskill on the story. - Gate check: Use the
swarm_transitiontool withtarget_statusset todone. Verify:- All ACs have status
passing - Story status is
done
- All ACs have status
- If the gate fails:
- Report which ACs are not passing.
- Exit with failure.
- If the gate passes and
--autois not set, ask for confirmation to proceed.
Phase 5: Close
- Execute the
swarm:closeskill on the story. - Gate check: Verify:
- Retrospective file exists at
.swarm/retrospectives/{ID}-retro.md - Story has been moved to
.swarm/archive/{ID}.md - Knowledge items extracted (if knowledge_extraction enabled in WoW)
- Retrospective file exists at
- If the gate fails:
- Report what is missing.
- Exit with failure.
Final Report
Output a summary:
## SWARM Pipeline Complete: {ID}
| Phase | Status | Duration |
|-------|--------|----------|
| Ideate | PASS | Xs |
| Plan | PASS | Xs |
| Execute | PASS | Xs |
| Verify | PASS | Xs |
| Close | PASS | Xs |
**Total time:** X minutes
**ACs:** N/N passing
**Tasks:** N/N completed
**Knowledge items:** N extracted
Outputs
- Fully processed story from draft to archived
- Retrospective file with metrics
- Knowledge items extracted and filed
- Agent memory updated
- Pipeline summary report
