Spec-Implement
Execute implementation plan by processing tasks.md.
Prerequisites: tasks.md must exist (run /spec-tasks first).
Workflow
- •Initialize - Run
.specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks - •Check checklists - Verify all checklists complete (if any)
- •Load context - tasks.md, plan.md, data-model.md, contracts/
- •Setup verification - Create/verify ignore files
- •Parse tasks - Extract phases, dependencies, parallel markers
- •Execute - Phase-by-phase implementation
- •Track progress - Mark completed tasks
[X] - •Validate - Verify completion and test results
Checklist Gate
If FEATURE_DIR/checklists/ exists:
markdown
| Checklist | Total | Completed | Incomplete | Status | |-----------|-------|-----------|------------|--------| | ux.md | 12 | 12 | 0 | ✓ PASS | | test.md | 8 | 5 | 3 | ✗ FAIL |
- •All PASS → Proceed automatically
- •Any FAIL → Ask user confirmation
Ignore Files Setup
Detect and create based on tech stack:
| Detection | Create |
|---|---|
.git exists | .gitignore |
Dockerfile* | .dockerignore |
.eslintrc* | .eslintignore |
package.json | .npmignore |
*.tf files | .terraformignore |
Execution Rules
Phase Order
- •Setup - Project initialization
- •Tests - Write failing tests (if TDD)
- •Core - Models, services, CLI
- •Integration - DB, middleware, external services
- •Polish - Optimization, documentation
Dependency Rules
- •Sequential tasks → In order
- •
[P]tasks → Can run together - •Same file → Sequential
- •Phase complete → Next phase
Progress Tracking
- •Report after each task
- •Halt on non-parallel failure
- •Mark completed:
- [X] T001...
Technology Patterns
Node.js/TypeScript
code
node_modules/, dist/, build/, *.log, .env*
Python
code
__pycache__/, *.pyc, .venv/, dist/, *.egg-info/
Go
code
*.exe, *.test, vendor/, *.out
Rust
code
target/, debug/, release/, *.rs.bk
Completion Validation
- •All required tasks completed
- •Implementation matches specification
- •Tests pass (if applicable)
- •Coverage meets requirements
Next Steps
After /spec-implement:
- •Run tests and verify
- •Create PR or deploy