Execute implementation specs with batched checkpoints. Follows specs exactly, stops on blockers, supports parallelization.
Executes implementation specs (typically created by the spec-writer skill). Follows specs exactly with batched execution, checkpoints for user feedback, and parallelization support.
spec-file (required): Path to the spec file to execute--batch-size=<n>: Steps per checkpoint (overrides config)--no-checkpoint: Run without pausing for checkpoints--dry-run: Show what would be done without making changes--resume: Resume from last checkpoint--parallel=<true|false>: Enable/disable parallelizationCheck for .claude/spec-workflow/config.yaml:
paths:
worktrees: "./worktrees"
services:
backend:
path: "./backend"
build: "npm run build"
test: "npm test"
lint: "npm run lint"
frontend:
path: "./frontend"
build: "npm run build"
test: "npm test"
execution:
batchSize: 5
checkpoint:
behavior: "smart" # "pause" | "continue" | "smart"
parallel:
enabled: true
maxAgents: 3
If no config, auto-detect services and use defaults.
Follow the spec. Stop on blockers. Never guess.
This skill prioritizes:
Before executing, verify the environment is ready:
If spec frontmatter contains worktree:
./worktrees/[name])If worktree doesn't exist:
/create-worktree [name] --spec=[spec-path]Proceed in current directory, but warn user that changes won't be isolated.
Read the full spec file
Parse the spec
Review critically before starting
Present a summary:
**Spec Review: [Feature Name]**
**Tasks:** [N] implementation steps
**Parallelization:** [Yes/No - describe groups if present]
**Dependencies:** [List any external dependencies]
**Estimated scope:** [Small/Medium/Large based on task count]
**Concerns before starting:**
- [Any unclear instructions]
- [Any unresolved Open Questions from spec]
- [Any missing information]
**Parallelization Plan:**
[Describe how tasks will be parallelized if applicable]
Ready to proceed?
If --dry-run, stop here after showing the plan.
For each task in the current batch:
If spec includes a Sub-agent Parallelization Plan:
Launching parallel execution for Group 1:
Agent 1: Task 1.1 - [Description]
Agent 2: Task 1.2 - [Description]
Waiting for completion...
Respect execution.parallel.maxAgents from config.
DO:
DON'T:
After each batch (based on batchSize):
**Checkpoint: Batch [N] Complete**
**Completed tasks:**
- [x] Task 1: [Brief description of what was done]
- [x] Task 2: [Brief description of what was done]
**Verification results:**
- Tests: [Pass/Fail - details]
- Lint: [Pass/Fail]
- Build: [Pass/Fail]
**Files modified:**
- `path/to/file1` - [What changed]
- `path/to/file2` - [What changed]
**Next batch:** Tasks [N+1] through [N+3]
Checkpoint behavior (from config or argument):
pause: Always pause for user reviewcontinue: Auto-continue if no issuessmart: Pause on warnings/errors, continue otherwiseAfter all tasks complete:
Run full validation
For each service in spec's services frontmatter (or all configured services if not specified):
# Use commands from config, or auto-detect
[service.build command]
[service.lint command]
[service.test command]
Update spec status
Final summary
**Spec Execution Complete: [Feature Name]**
**Tasks completed:** [N] of [N]
**Files modified:** [Count]
**Tests:** [Pass/Fail]
**Build:** [Pass/Fail]
**Summary of changes:**
- [High-level description of what was implemented]
**Next steps:**
- [ ] Manual testing per spec's Validation Plan
- [ ] Code review
- [ ] Commit and PR
STOP and ask the user when:
Blockers encountered
Spec gaps
Scope questions
**Execution Paused: [Reason]**
**Context:** [What I was trying to do]
**Issue:** [What went wrong or is unclear]
**Question:** [Specific question for user]
Options:
A) [Suggested resolution 1]
B) [Suggested resolution 2]
C) Skip this task and continue
D) Stop execution entirely
How should I proceed?
Mirror spec's Implementation Steps in todo list:
Todos:
- [x] Step 1: [Task from spec]
- [x] Step 2: [Task from spec]
- [ ] Step 3: [Task from spec] (in_progress)
- [ ] Step 4: [Task from spec] (pending)
Update checkboxes in spec's Validation & Testing Plan as tests are written/pass.
spec-file
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 1: ENVIRONMENT SETUP โ
โ โข Check/create worktree โ
โ โข Verify environment ready โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 2: LOAD & REVIEW โ
โ โข Parse spec โ
โ โข Flag concerns โ
โ โข Confirm ready to proceed โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 3: EXECUTE BATCH โ
โ โข Follow spec exactly โ
โ โข Use sub-agents if parallel โ
โ โข Track tasks โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 4: CHECKPOINT โ
โ โข Report progress โ
โ โข Show verification results โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 5: CONTINUE โ
โ โข Next batch โ Phase 3 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 6: FINALIZE โ
โ โข Full validation โ
โ โข Update spec status โ
โ โข Summary & next steps โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
Feature Implemented