Skill: plan
Transition a story from ideating to planned.
Inputs
- Story file: Path to a
.swarm/backlog/{ID}.mdfile inideatingstatus
Steps
Step 1: Read Context
- Read
.swarm/config.mdfor agent roles, WoW, and effort model. - Read the story file — understand ACs and the problem.
- Review the codebase structure to understand where changes are needed.
- Read relevant knowledge items from
.swarm/knowledge/.
Step 2: Validate Story
Use the swarm_validate tool with path set to the absolute path of .swarm/backlog/${STORY_ID}.md.
If ok: false, fix the issues listed in details before proceeding.
Step 3: Design Technical Approach
- Sketch the technical approach in the story body.
- Identify files to create, modify, or delete.
- Note architectural patterns to follow.
Step 4: Create Task Breakdown
- Create tasks that collectively satisfy all ACs.
- Each task should map to one or more ACs via
ac_coverage. - Assign each task to the appropriate agent.
- Estimate effort using the project's effort model (T-shirt sizes by default).
- Define task dependencies via
depends_on. - Use the format:
- id: "T-1" title: "Implement API endpoint for..." agent: "backend-dev" status: "pending" depends_on: [] effort_estimate: "M" ac_coverage: ["AC-1", "AC-2"]
Step 5: Validate Coverage
- Ensure every AC is covered by at least one task.
- Ensure no circular dependencies exist in the task graph.
- Check that total effort is reasonable for the complexity estimate.
Step 6: Transition to Planned
Use the swarm_transition tool with path set to the absolute path of .swarm/backlog/${STORY_ID}.md and target_status set to planned.
If ok: false, fix the issues listed in details (e.g., missing acceptance criteria or problem statement).
Step 7: Handle Questions (if any)
If clarification is needed during planning:
- Create a question file at
.swarm/pending-questions/{ID}-plan.md. - Set story status to
awaiting_input.
Outputs
- Updated story file with tasks, technical approach
- Story status:
planned(orawaiting_input) - Optional: question file in
.swarm/pending-questions/
