/specweave:do Command
The /specweave:do command is SpecWeave's primary implementation command that executes tasks from tasks.md with smart auto-resume.
What It Does
Key actions:
- Auto-finds active increment
- Resumes from last incomplete task
- Executes tasks sequentially
- Runs hooks after each task
- Updates living docs automatically
- Syncs to external tools (GitHub, JIRA, ADO)
Usage
# Auto-find active increment
/specweave:do
# Execute specific increment
/specweave:do 0007
Smart Features
Auto-Resume
The command automatically resumes from the last incomplete task:
# First session: Tasks T-001 through T-005 completed
$ /specweave:do 0007
# Second session: Automatically resumes at T-006
$ /specweave:do 0007
→ Resuming from T-006...
Cost Optimization
Uses smaller models for simple tasks:
- Haiku: Simple edits, file moves (3x faster, 20x cheaper)
- Sonnet: Complex logic, architecture decisions
- Opus: Strategic planning, complex refactoring
Hook Integration
After EVERY task completion:
- Updates tasks.md status
- Syncs to external tools
- Plays completion sound
- Updates CLAUDE.md, README, CHANGELOG
Workflow
Related
- tasks.md - Task format
- Hooks - Automation hooks
- Increments - Work units
- /specweave:progress - Check progress
- /specweave:done - Close increment