OpenSpec Apply
Implement approved changes by following the task list exactly.
Announce: "I'm using openspec-apply to implement change [id] following the approved tasks."
Iron Law
FOLLOW THE TASK LIST EXACTLY - NO ADDITIONS, NO SKIPS
The tasks were approved. Your job is to execute them, not improve them.
Process
Phase 1: Load Context
- •
Read the proposal:
bashopenspec show [change-id]
- •
Read
tasks.mdcompletely before starting - •
Identify current progress:
- •Which tasks are
[x]complete? - •Which is the next
[ ]pending task?
- •Which tasks are
Phase 2: Execute Tasks
For EACH task:
Step 1: Announce
Starting Task N.M: [task description]
Step 2: Load TDD skill
→ REQUIRED SUB-SKILL: Load test-tdd for any code task
Step 3: Follow task steps exactly
- •Create/modify the exact files listed
- •Write the exact code specified
- •Run the exact verification commands
Step 4: Verify
- •Test passes?
- •No other tests broken?
- •Types check?
Step 5: Mark complete
Update tasks.md: - [ ] → - [x]
Step 6: Commit
git add [files] git commit -m "[type](scope): [description]"
Phase 3: Report Progress
After each task:
Completed Task N.M: [description] - Files changed: [list] - Tests: PASS - Next: Task N.M+1
Phase 4: Completion
When all tasks are [x]:
- •
Run full verification:
bashbun run type-check bun run lint bun test supabase test db
- •
Report:
codeAll tasks complete for change [id]. - [X] tasks completed - All tests passing - Ready for code review
- •
Load
code-reviewskill for final review
Working with Subagents
If dispatching domain experts:
- •Load
subagent-workflowskill - •Give them the specific task from tasks.md
- •Track their session_id
- •Verify their output
- •If issues found, recall their session for fixes
REQUIRED SUB-SKILL
- •For any code task → Load
test-tdd - •For subagent orchestration → Load
subagent-workflow - •After completion → Load
code-review
Red Flags - STOP
If you catch yourself:
- •Adding features not in tasks
- •Skipping tasks "to save time"
- •Implementing differently than specified
- •Not running verification steps
- •Marking tasks complete without verification
STOP. Follow the task list.
Common Rationalizations
| Excuse | Reality |
|---|---|
| "I see a better way" | The plan was approved. Follow it. |
| "This task is unnecessary" | The plan was approved. Do it anyway. |
| "I'll combine these tasks" | Tasks are sized deliberately. Do them separately. |
| "Tests are passing, skip verification" | Run ALL verification. Every time. |
What To Do When Stuck
If a task is unclear or blocked:
- •STOP - do not guess
- •State what's unclear
- •Ask for clarification
- •Wait for response
Do NOT proceed with assumptions.