Execute tasks to build the feature according to spec and plan
Executes tasks from your spec's task list in dependency order, marking progress as it builds the feature. Use this to implement a planned feature step-by-step, handling blockers and verifying acceptance criteria along the way.
/plugin marketplace add retsohuang/retso-marketplace/plugin install spec-kit@retso-marketplaceclaude-sonnet-4-5Execute the tasks from the task list to build the feature. Works through tasks in dependency order, checking off completed items as it goes.
/spec-kit:implement
Optionally specify a spec: /spec-kit:implement 001 or /spec-kit:implement user-auth
Use the get-current-spec skill to determine which spec to work with.
The skill will:
After the skill completes, you will have:
Read the complete context:
cat .claude/spec-kit/memory/constitution.md
cat .claude/spec-kit/specs/{NNN}-{feature-name}/spec.md
cat .claude/spec-kit/specs/{NNN}-{feature-name}/plan.md
cat .claude/spec-kit/specs/{NNN}-{feature-name}/tasks.md
If any are missing, direct user to appropriate command.
Remind user to run analysis if they haven't:
⚠️ Recommendation: Run /spec-kit:analyze first to check for consistency issues.
If the user wants to proceed anyway, continue.
Parse tasks.md to find:
Decision Point:
Find the next task to work on:
Show the selected task:
📋 Next Task: Task 1.2 - Set Up Database Schema
Priority: High
Complexity: Medium
Estimated: M (1 day)
Dependencies: ✅ Task 1.1 (completed)
Description:
Create database schema for user authentication with users table and sessions table.
Ready to start? (y/n)
For the selected task:
Mark as In Progress
Review Task Details
Implement the Task
Verify Acceptance Criteria
Run Tests (if applicable)
Mark as Complete
After completing a task:
✅ Task 1.2 Complete: Set Up Database Schema
Files Modified:
- src/database/schema.sql
- src/models/User.ts
- src/models/Session.ts
Tests: ✅ All passing (12 tests)
Progress: 2/15 tasks complete (13%)
Next task available: Task 1.3 - Create Auth Service
Continue? (y/n)
If user says yes, repeat Step 6 for the next task. If user says no, save progress and exit.
If you encounter a blocker:
Technical Blocker:
Requirement Ambiguity:
/spec-kit:clarify to resolveDependency Missing:
When all tasks in a phase are complete:
🎉 Phase 1 Complete: Foundation
Completed Tasks: 5/5
- ✅ Task 1.1: Project setup
- ✅ Task 1.2: Database schema
- ✅ Task 1.3: Auth service
- ✅ Task 1.4: API routes
- ✅ Task 1.5: Basic tests
Next Phase: Phase 2 - Core Features (8 tasks)
Ready to continue with Phase 2? (y/n)
When all tasks are complete:
🎊 Feature Complete: {NNN}-{feature-name}!
Implementation Summary:
- Total Tasks: 15
- Completed: 15
- Time Taken: {actual time if tracked}
- Files Created: {count}
- Files Modified: {count}
- Tests Written: {count}
Final Steps:
1. Review all changes: git diff main
2. Run full test suite: npm test
3. Manual testing of user flows
4. Code review preparation
5. Deployment planning
Recommendations:
- Update spec.md if requirements changed during implementation
- Update plan.md with lessons learned
- Document any deviations from original plan
- Consider writing a post-mortem or summary
Ready to commit? Use /commit to create a commit with the changes.
If a task is taking much longer than estimated:
If requirements change during implementation:
If you find a technical problem not anticipated in the plan:
If tests fail:
/spec-kit:tasks