Implement tasks from an OpenSpec change.
Input: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
Steps
Verify project initialization
Check if the project is initialized:
acfm spec status --json
If not initialized ("initialized": false):
acfm spec init
If initialized ("initialized": true):
- Note the
dirName field (either .acfm or openspec)
- Continue with the workflow
Select the change
If a name is provided, use it. Otherwise:
- Infer from conversation context if the user mentioned a change
- Auto-select if only one active change exists
- If ambiguous, run
acfm spec list --json to get available changes and use the AskUserQuestion tool to let the user select
Always announce: "Using change: " and how to override (e.g., /opsx:apply <other>).
Check status to understand the schema
acfm spec status --change "<name>" --json
Parse the JSON to understand:
schemaName: The workflow being used (e.g., "spec-driven")
- Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
Get apply instructions
acfm spec instructions apply --change "<name>" --json
This returns:
- Context file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)
- Progress (total, complete, remaining)
- Task list with status
- Dynamic instruction based on current state
Handle states:
- If
state: "blocked" (missing artifacts): show message, suggest using openspec-continue-change
- If
state: "all_done": congratulate, suggest archive
- Otherwise: proceed to implementation
Read context files
Read the files listed in contextFiles from the apply instructions output.
The files depend on the schema being used:
- spec-driven: proposal, specs, design, tasks
- Other schemas: follow the contextFiles from CLI output
Show current progress
Display:
- Schema being used
- Progress: "N/M tasks complete"
- Remaining tasks overview
- Dynamic instruction from CLI
Implement tasks (loop until done or blocked)
For each pending task:
- Show which task is being worked on
- Make the code changes required
- Keep changes minimal and focused
- Mark task complete in the tasks file:
- [ ] → - [x]
- Continue to next task
Pause if:
- Task is unclear → ask for clarification
- Implementation reveals a design issue → suggest updating artifacts
- Error or blocker encountered → report and wait for guidance
- User interrupts
On completion or pause, show status
Display:
- Tasks completed this session
- Overall progress: "N/M tasks complete"
- If all done: suggest archive
- If paused: explain why and wait for guidance
Output During Implementation
## Implementing: <change-name> (schema: <schema-name>)
Working on task 3/7: <task description>
[...implementation happening...]
✓ Task complete
Working on task 4/7: <task description>
[...implementation happening...]
✓ Task complete
Output On Completion
## Implementation Complete
**Change:** <change-name>
**Schema:** <schema-name>
**Progress:** 7/7 tasks complete ✓
### Completed This Session
- [x] Task 1
- [x] Task 2
...
All tasks complete! Ready to archive this change.
Output On Pause (Issue Encountered)
## Implementation Paused
**Change:** <change-name>
**Schema:** <schema-name>
**Progress:** 4/7 tasks complete
### Issue Encountered
<description of the issue>
**Options:**
1. <option 1>
2. <option 2>
3. Other approach
What would you like to do?
Guardrails
- Keep going through tasks until done or blocked
- Always read context files before starting (from the apply instructions output)
- If task is ambiguous, pause and ask before implementing
- If implementation reveals issues, pause and suggest artifact updates
- Keep code changes minimal and scoped to each task
- Update task checkbox immediately after completing each task
- Pause on errors, blockers, or unclear requirements - don't guess
- Use contextFiles from CLI output, don't assume specific file names
Fluid Workflow Integration
This skill supports the "actions on a change" model:
- Can be invoked anytime: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
- Allows artifact updates: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly
1---2name: openspec-apply-change3description: Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.4license: MIT5---67Implement tasks from an OpenSpec change.89**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.1011**Steps**12131. **Verify project initialization**1415 Check if the project is initialized:16 ```bash17 acfm spec status --json18 ```19 20 **If not initialized** (`"initialized": false`):21 ```bash22 acfm spec init23 ```24 25 **If initialized** (`"initialized": true`):26 - Note the `dirName` field (either `.acfm` or `openspec`)27 - Continue with the workflow28292. **Select the change**3031 If a name is provided, use it. Otherwise:32 - Infer from conversation context if the user mentioned a change33 - Auto-select if only one active change exists34 - If ambiguous, run `acfm spec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select3536 Always announce: "Using change: <name>" and how to override (e.g., `/opsx:apply <other>`).37383. **Check status to understand the schema**39 ```bash40 acfm spec status --change "<name>" --json41 ```42 Parse the JSON to understand:43 - `schemaName`: The workflow being used (e.g., "spec-driven")44 - Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)45464. **Get apply instructions**4748 ```bash49 acfm spec instructions apply --change "<name>" --json50 ```5152 This returns:53 - Context file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)54 - Progress (total, complete, remaining)55 - Task list with status56 - Dynamic instruction based on current state5758 **Handle states:**59 - If `state: "blocked"` (missing artifacts): show message, suggest using openspec-continue-change60 - If `state: "all_done"`: congratulate, suggest archive61 - Otherwise: proceed to implementation62635. **Read context files**6465 Read the files listed in `contextFiles` from the apply instructions output.66 The files depend on the schema being used:67 - **spec-driven**: proposal, specs, design, tasks68 - Other schemas: follow the contextFiles from CLI output69706. **Show current progress**7172 Display:73 - Schema being used74 - Progress: "N/M tasks complete"75 - Remaining tasks overview76 - Dynamic instruction from CLI77787. **Implement tasks (loop until done or blocked)**7980 For each pending task:81 - Show which task is being worked on82 - Make the code changes required83 - Keep changes minimal and focused84 - Mark task complete in the tasks file: `- [ ]` → `- [x]`85 - Continue to next task8687 **Pause if:**88 - Task is unclear → ask for clarification89 - Implementation reveals a design issue → suggest updating artifacts90 - Error or blocker encountered → report and wait for guidance91 - User interrupts92938. **On completion or pause, show status**9495 Display:96 - Tasks completed this session97 - Overall progress: "N/M tasks complete"98 - If all done: suggest archive99 - If paused: explain why and wait for guidance100101**Output During Implementation**102103```104## Implementing: <change-name> (schema: <schema-name>)105106Working on task 3/7: <task description>107[...implementation happening...]108✓ Task complete109110Working on task 4/7: <task description>111[...implementation happening...]112✓ Task complete113```114115**Output On Completion**116117```118## Implementation Complete119120**Change:** <change-name>121**Schema:** <schema-name>122**Progress:** 7/7 tasks complete ✓123124### Completed This Session125- [x] Task 1126- [x] Task 2127...128129All tasks complete! Ready to archive this change.130```131132**Output On Pause (Issue Encountered)**133134```135## Implementation Paused136137**Change:** <change-name>138**Schema:** <schema-name>139**Progress:** 4/7 tasks complete140141### Issue Encountered142<description of the issue>143144**Options:**1451. <option 1>1462. <option 2>1473. Other approach148149What would you like to do?150```151152**Guardrails**153- Keep going through tasks until done or blocked154- Always read context files before starting (from the apply instructions output)155- If task is ambiguous, pause and ask before implementing156- If implementation reveals issues, pause and suggest artifact updates157- Keep code changes minimal and scoped to each task158- Update task checkbox immediately after completing each task159- Pause on errors, blockers, or unclear requirements - don't guess160- Use contextFiles from CLI output, don't assume specific file names161162**Fluid Workflow Integration**163164This skill supports the "actions on a change" model:165166- **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions167- **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly