Skill: execute
Transition a story from planned to executing and work through the task list.
Inputs
- Story file: Path to a
.swarm/backlog/{ID}.mdfile inplannedstatus
Steps
Step 1: Read Context
- Read
.swarm/config.mdfor conventions and WoW. - Read the story file — understand tasks, ACs, and technical approach.
- Read agent memory files from
.claude/agent-memory/for assigned agents. - Read relevant knowledge items from
.swarm/knowledge/.
Step 2: Transition to Executing
Use the swarm_transition tool with path set to the absolute path of .swarm/backlog/${STORY_ID}.md and target_status set to executing.
If ok: false, fix the issues (e.g., no tasks defined).
Step 3: Check Dependencies
Use the swarm_list tool with directory set to the absolute path of .swarm/backlog and status set to executing to check for other stories in progress.
Step 4: Set Up Execution
- Set
execution.started_atto current timestamp. - Update the
updatedtimestamp.
Step 5: Execute Tasks In Order
For each task (respecting dependency order):
- Read the task details and its AC coverage.
- Identify the assigned agent and read their memory.
- Implement the task:
- Write code following project standards.
- Write tests if the WoW requires test-first.
- Run linting after changes:
bunx biome check . - Run tests after changes:
bun test
- Update task status to
in_progress, thendone. - Update related AC statuses as evidence is gathered.
- Update the
updatedtimestamp.
Step 6: Verify As You Go
If auto_verify is enabled in WoW:
- Run tests after each task completes.
- Run the type checker:
bun run typecheck - If verification fails, fix issues before proceeding.
Step 7: Write Mini-Retrospectives
After each task, the assigned agent appends a mini-retrospective:
## Mini-Retrospective: {agent}
- **What worked:** [techniques that were effective]
- **What to remember:** [patterns, gotchas, important context]
- **Suggestion:** [improvements for next time]
- **Knowledge hints:** [E: patterns found | Q: pain points | P: best practices]
Step 8: Update Execution State
- Once all tasks are done, set story status to
verifying(ordoneif auto_verify handled it). - Set
execution.completed_atto current timestamp. - Update the
updatedtimestamp.
Outputs
- Implemented code changes
- Updated story file with task statuses, AC evidence
- Mini-retrospectives appended to story
- Story status:
verifyingordone
