Skill: verify
Transition a story from verifying to done (or back to executing if issues are found).
Inputs
- Story file: Path to a
.swarm/backlog/{ID}.mdfile inverifyingstatus
Steps
Step 1: Read Context
- Read
.swarm/config.mdfor DoD and conventions. - Read the story file — understand all ACs and their current status.
Step 2: Validate Story Structure
Use the swarm_validate tool with path set to the absolute path of .swarm/backlog/${STORY_ID}.md.
Step 3: Run Automated Checks
- Type check:
bun run typecheck - Lint:
bunx biome check . - Tests:
bun test - Record pass/fail for each check.
Step 4: Verify Acceptance Criteria
For each AC:
- Check if evidence has been provided.
- If automated, run the verification command.
- If manual, review the implementation against the criterion.
- Update AC status to
passingorfailing.
Step 5: Check Definition of Done
- Walk through each DoD item from
.swarm/config.md. - Run automated DoD commands where available.
- Record which items pass and which fail.
Step 6: Handle Failures
If any check fails:
- Set story status back to
executing. - Create new tasks for the failing items.
- Document the failures in the story body.
- Update the
updatedtimestamp.
Step 7: Transition to Done
If all checks pass, use the swarm_transition tool with path set to the absolute path of .swarm/backlog/${STORY_ID}.md and target_status set to done.
If the transition is blocked (e.g., ACs not passing), fix the issues first.
Outputs
- Updated story file with AC evidence and statuses
- Story status:
doneorexecuting(if issues found) - Verification report appended to story body
