ostacky 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,167 +1,167 @@
1
- ---
2
- name: openspec-apply-change
3
- description: Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
4
- license: MIT
5
- compatibility: Requires openspec CLI.
6
- metadata:
7
- author: openspec
8
- version: "1.0"
9
- generatedBy: "1.3.1"
10
- ---
11
-
12
- **IMPORTANT:** Engram is an **MCP server**, not a skill. Tools `mem_save`, `mem_search`, `mem_context` are MCP tools. Do NOT use `skill("engram")` — it doesn't exist.
13
-
14
- Implement tasks from an OpenSpec change.
15
-
16
- **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.
17
-
18
- **Steps**
19
-
20
- 1. **Check Engram for past implementation patterns**
21
-
22
- Before implementing, `mem_search` with keywords from the change name and affected modules. Look for:
23
- - Similar changes implemented before (approaches that worked or failed)
24
- - Known gotchas or edge cases in related areas
25
- - Model selection patterns for similar task complexity
26
-
27
- Surface relevant findings to inform implementation decisions.
28
-
29
- 2. **Select the change**
30
-
31
- If a name is provided, use it. Otherwise:
32
- - Infer from conversation context if the user mentioned a change
33
- - Auto-select if only one active change exists
34
- - If ambiguous, run `openspec list --json` to get available changes and ask the user in natural language to select one, then stop and wait for the answer.
35
-
36
- Always announce: "Using change: <name>" and how to override (e.g., `/opsx-apply <other>`).
37
-
38
- 3. **Check status to understand the schema**
39
- ```bash
40
- openspec status --change "<name>" --json
41
- ```
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)
45
-
46
- 4. **Get apply instructions**
47
-
48
- ```bash
49
- openspec instructions apply --change "<name>" --json
50
- ```
51
-
52
- This returns:
53
- - `contextFiles`: artifact ID -> array of concrete 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 status
56
- - Dynamic instruction based on current state
57
-
58
- **Handle states:**
59
- - If `state: "blocked"` (missing artifacts): show message, suggest using openspec-continue-change
60
- - If `state: "all_done"`: congratulate, suggest archive
61
- - Otherwise: proceed to implementation
62
-
63
- 5. **Read context files**
64
-
65
- Use **CodeGraph** (`codegraph_explore`) to understand the code structure before reading files directly. Then read every file path listed under `contextFiles` from the apply instructions output.
66
- The files depend on the schema being used:
67
- - **spec-driven**: proposal, specs, design, tasks
68
- - Other schemas: follow the contextFiles from CLI output
69
-
70
- 6. **Show current progress**
71
-
72
- Display:
73
- - Schema being used
74
- - Progress: "N/M tasks complete"
75
- - Remaining tasks overview
76
- - Dynamic instruction from CLI
77
-
78
- 7. **Implement tasks (loop until done or blocked)**
79
-
80
- For each pending task:
81
- - Show which task is being worked on
82
- - Make the code changes required
83
- - Keep changes minimal and focused
84
- - Mark task complete in the tasks file: `- [ ]` → `- [x]`
85
- - Continue to next task
86
-
87
- **Pause if:**
88
- - Task is unclear → ask for clarification
89
- - Implementation reveals a design issue → suggest updating artifacts
90
- - Error or blocker encountered → report and wait for guidance
91
- - User interrupts
92
-
93
- 8. **On completion or pause, show status**
94
-
95
- Display:
96
- - Tasks completed this session
97
- - Overall progress: "N/M tasks complete"
98
- - If all done: suggest archive
99
- - If paused: explain why and wait for guidance
100
-
101
- **Output During Implementation**
102
-
103
- ```
104
- ## Implementing: <change-name> (schema: <schema-name>)
105
-
106
- Working on task 3/7: <task description>
107
- [...implementation happening...]
108
- ✓ Task complete
109
-
110
- Working on task 4/7: <task description>
111
- [...implementation happening...]
112
- ✓ Task complete
113
- ```
114
-
115
- **Output On Completion**
116
-
117
- ```
118
- ## Implementation Complete
119
-
120
- **Change:** <change-name>
121
- **Schema:** <schema-name>
122
- **Progress:** 7/7 tasks complete ✓
123
-
124
- ### Completed This Session
125
- - [x] Task 1
126
- - [x] Task 2
127
- ...
128
-
129
- All tasks complete! Ready to archive this change.
130
- ```
131
-
132
- **Output On Pause (Issue Encountered)**
133
-
134
- ```
135
- ## Implementation Paused
136
-
137
- **Change:** <change-name>
138
- **Schema:** <schema-name>
139
- **Progress:** 4/7 tasks complete
140
-
141
- ### Issue Encountered
142
- <description of the issue>
143
-
144
- **Options:**
145
- 1. <option 1>
146
- 2. <option 2>
147
- 3. Other approach
148
-
149
- What would you like to do?
150
- ```
151
-
152
- **Guardrails**
153
- - Keep going through tasks until done or blocked
154
- - Always read context files before starting (from the apply instructions output)
155
- - If task is ambiguous, pause and ask before implementing
156
- - If implementation reveals issues, pause and suggest artifact updates
157
- - Keep code changes minimal and scoped to each task
158
- - Update task checkbox immediately after completing each task
159
- - Pause on errors, blockers, or unclear requirements - don't guess
160
- - Use contextFiles from CLI output, don't assume specific file names
161
-
162
- **Fluid Workflow Integration**
163
-
164
- This skill supports the "actions on a change" model:
165
-
166
- - **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
167
- - **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly
1
+ ---
2
+ name: openspec-apply-change
3
+ description: Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
4
+ license: MIT
5
+ compatibility: Requires openspec CLI.
6
+ metadata:
7
+ author: openspec
8
+ version: "1.0"
9
+ generatedBy: "1.3.1"
10
+ ---
11
+
12
+ **IMPORTANT:** Engram is an **MCP server**, not a skill. Tools `mem_save`, `mem_search`, `mem_context` are MCP tools. Do NOT use `skill("engram")` — it doesn't exist.
13
+
14
+ Implement tasks from an OpenSpec change.
15
+
16
+ **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.
17
+
18
+ **Steps**
19
+
20
+ 1. **Check Engram for past implementation patterns**
21
+
22
+ Before implementing, `mem_search` with keywords from the change name and affected modules. Look for:
23
+ - Similar changes implemented before (approaches that worked or failed)
24
+ - Known gotchas or edge cases in related areas
25
+ - Model selection patterns for similar task complexity
26
+
27
+ Surface relevant findings to inform implementation decisions.
28
+
29
+ 2. **Select the change**
30
+
31
+ If a name is provided, use it. Otherwise:
32
+ - Infer from conversation context if the user mentioned a change
33
+ - Auto-select if only one active change exists
34
+ - If ambiguous, run `openspec list --json` to get available changes and ask the user in natural language to select one, then stop and wait for the answer.
35
+
36
+ Always announce: "Using change: <name>" and how to override (e.g., `/opsx-apply <other>`).
37
+
38
+ 3. **Check status to understand the schema**
39
+ ```bash
40
+ openspec status --change "<name>" --json
41
+ ```
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)
45
+
46
+ 4. **Get apply instructions**
47
+
48
+ ```bash
49
+ openspec instructions apply --change "<name>" --json
50
+ ```
51
+
52
+ This returns:
53
+ - `contextFiles`: artifact ID -> array of concrete 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 status
56
+ - Dynamic instruction based on current state
57
+
58
+ **Handle states:**
59
+ - If `state: "blocked"` (missing artifacts): show message, suggest using openspec-continue-change
60
+ - If `state: "all_done"`: congratulate, suggest archive
61
+ - Otherwise: proceed to implementation
62
+
63
+ 5. **Read context files**
64
+
65
+ Use **CodeGraph** (`codegraph_explore`) to understand the code structure before reading files directly. Then read every file path listed under `contextFiles` from the apply instructions output.
66
+ The files depend on the schema being used:
67
+ - **spec-driven**: proposal, specs, design, tasks
68
+ - Other schemas: follow the contextFiles from CLI output
69
+
70
+ 6. **Show current progress**
71
+
72
+ Display:
73
+ - Schema being used
74
+ - Progress: "N/M tasks complete"
75
+ - Remaining tasks overview
76
+ - Dynamic instruction from CLI
77
+
78
+ 7. **Implement tasks (loop until done or blocked)**
79
+
80
+ For each pending task:
81
+ - Show which task is being worked on
82
+ - Make the code changes required
83
+ - Keep changes minimal and focused
84
+ - Mark task complete in the tasks file: `- [ ]` → `- [x]`
85
+ - Continue to next task
86
+
87
+ **Pause if:**
88
+ - Task is unclear → ask for clarification
89
+ - Implementation reveals a design issue → suggest updating artifacts
90
+ - Error or blocker encountered → report and wait for guidance
91
+ - User interrupts
92
+
93
+ 8. **On completion or pause, show status**
94
+
95
+ Display:
96
+ - Tasks completed this session
97
+ - Overall progress: "N/M tasks complete"
98
+ - If all done: suggest archive
99
+ - If paused: explain why and wait for guidance
100
+
101
+ **Output During Implementation**
102
+
103
+ ```
104
+ ## Implementing: <change-name> (schema: <schema-name>)
105
+
106
+ Working on task 3/7: <task description>
107
+ [...implementation happening...]
108
+ ✓ Task complete
109
+
110
+ Working on task 4/7: <task description>
111
+ [...implementation happening...]
112
+ ✓ Task complete
113
+ ```
114
+
115
+ **Output On Completion**
116
+
117
+ ```
118
+ ## Implementation Complete
119
+
120
+ **Change:** <change-name>
121
+ **Schema:** <schema-name>
122
+ **Progress:** 7/7 tasks complete ✓
123
+
124
+ ### Completed This Session
125
+ - [x] Task 1
126
+ - [x] Task 2
127
+ ...
128
+
129
+ All tasks complete! Ready to archive this change.
130
+ ```
131
+
132
+ **Output On Pause (Issue Encountered)**
133
+
134
+ ```
135
+ ## Implementation Paused
136
+
137
+ **Change:** <change-name>
138
+ **Schema:** <schema-name>
139
+ **Progress:** 4/7 tasks complete
140
+
141
+ ### Issue Encountered
142
+ <description of the issue>
143
+
144
+ **Options:**
145
+ 1. <option 1>
146
+ 2. <option 2>
147
+ 3. Other approach
148
+
149
+ What would you like to do?
150
+ ```
151
+
152
+ **Guardrails**
153
+ - Keep going through tasks until done or blocked
154
+ - Always read context files before starting (from the apply instructions output)
155
+ - If task is ambiguous, pause and ask before implementing
156
+ - If implementation reveals issues, pause and suggest artifact updates
157
+ - Keep code changes minimal and scoped to each task
158
+ - Update task checkbox immediately after completing each task
159
+ - Pause on errors, blockers, or unclear requirements - don't guess
160
+ - Use contextFiles from CLI output, don't assume specific file names
161
+
162
+ **Fluid Workflow Integration**
163
+
164
+ This skill supports the "actions on a change" model:
165
+
166
+ - **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
167
+ - **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly
@@ -1,114 +1,114 @@
1
- ---
2
- name: openspec-archive-change
3
- description: Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
4
- license: MIT
5
- compatibility: Requires openspec CLI.
6
- metadata:
7
- author: openspec
8
- version: "1.0"
9
- generatedBy: "1.3.1"
10
- ---
11
-
12
- Archive a completed change in the experimental workflow.
13
-
14
- **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.
15
-
16
- **Steps**
17
-
18
- 1. **If no change name provided, prompt for selection**
19
-
20
- Run `openspec list --json` to get available changes. Ask the user in natural language to select one, then stop and wait for the answer.
21
-
22
- Show only active changes (not already archived).
23
- Include the schema used for each change if available.
24
-
25
- **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
26
-
27
- 2. **Check artifact completion status**
28
-
29
- Run `openspec status --change "<name>" --json` to check artifact completion.
30
-
31
- Parse the JSON to understand:
32
- - `schemaName`: The workflow being used
33
- - `artifacts`: List of artifacts with their status (`done` or other)
34
-
35
- **If any artifacts are not `done`:**
36
- - Display warning listing incomplete artifacts
37
- - Ask the user in natural language to confirm they want to proceed, then stop and wait
38
- - Proceed if user confirms
39
-
40
- 3. **Check task completion status**
41
-
42
- Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
43
-
44
- Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
45
-
46
- **If incomplete tasks found:**
47
- - Display warning showing count of incomplete tasks
48
- - Ask the user in natural language to confirm they want to proceed, then stop and wait
49
- - Proceed if user confirms
50
-
51
- **If no tasks file exists:** Proceed without task-related warning.
52
-
53
- 4. **Assess delta spec sync state**
54
-
55
- Check for delta specs at `openspec/changes/<name>/specs/`. If none exist, proceed without sync prompt.
56
-
57
- **If delta specs exist:**
58
- - Compare each delta spec with its corresponding main spec at `openspec/specs/<capability>/spec.md`
59
- - Determine what changes would be applied (adds, modifications, removals, renames)
60
- - Show a combined summary before prompting
61
-
62
- **Prompt options:**
63
- - If changes needed: "Sync now (recommended)", "Archive without syncing"
64
- - If already synced: "Archive now", "Sync anyway", "Cancel"
65
-
66
- If user chooses sync, use the orchestrator to sync specs before archiving. Proceed to archive regardless of choice.
67
-
68
- 5. **Perform the archive**
69
-
70
- Create the archive directory if it doesn't exist:
71
- ```bash
72
- mkdir -p openspec/changes/archive
73
- ```
74
-
75
- Generate target name using current date: `YYYY-MM-DD-<change-name>`
76
-
77
- **Check if target already exists:**
78
- - If yes: Fail with error, suggest renaming existing archive or using different date
79
- - If no: Move the change directory to archive
80
-
81
- ```bash
82
- mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>
83
- ```
84
-
85
- 6. **Display summary**
86
-
87
- Show archive completion summary including:
88
- - Change name
89
- - Schema that was used
90
- - Archive location
91
- - Whether specs were synced (if applicable)
92
- - Note about any warnings (incomplete artifacts/tasks)
93
-
94
- **Output On Success**
95
-
96
- ```
97
- ## Archive Complete
98
-
99
- **Change:** <change-name>
100
- **Schema:** <schema-name>
101
- **Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
102
- **Specs:** ✓ Synced to main specs (or "No delta specs" or "Sync skipped")
103
-
104
- All artifacts complete. All tasks complete.
105
- ```
106
-
107
- **Guardrails**
108
- - Always prompt for change selection if not provided
109
- - Use artifact graph (openspec status --json) for completion checking
110
- - Don't block archive on warnings - just inform and confirm
111
- - Preserve .openspec.yaml when moving to archive (it moves with the directory)
112
- - Show clear summary of what happened
113
- - If sync is requested, use openspec-sync-specs approach (agent-driven)
114
- - If delta specs exist, always run the sync assessment and show the combined summary before prompting
1
+ ---
2
+ name: openspec-archive-change
3
+ description: Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
4
+ license: MIT
5
+ compatibility: Requires openspec CLI.
6
+ metadata:
7
+ author: openspec
8
+ version: "1.0"
9
+ generatedBy: "1.3.1"
10
+ ---
11
+
12
+ Archive a completed change in the experimental workflow.
13
+
14
+ **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.
15
+
16
+ **Steps**
17
+
18
+ 1. **If no change name provided, prompt for selection**
19
+
20
+ Run `openspec list --json` to get available changes. Ask the user in natural language to select one, then stop and wait for the answer.
21
+
22
+ Show only active changes (not already archived).
23
+ Include the schema used for each change if available.
24
+
25
+ **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
26
+
27
+ 2. **Check artifact completion status**
28
+
29
+ Run `openspec status --change "<name>" --json` to check artifact completion.
30
+
31
+ Parse the JSON to understand:
32
+ - `schemaName`: The workflow being used
33
+ - `artifacts`: List of artifacts with their status (`done` or other)
34
+
35
+ **If any artifacts are not `done`:**
36
+ - Display warning listing incomplete artifacts
37
+ - Ask the user in natural language to confirm they want to proceed, then stop and wait
38
+ - Proceed if user confirms
39
+
40
+ 3. **Check task completion status**
41
+
42
+ Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
43
+
44
+ Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
45
+
46
+ **If incomplete tasks found:**
47
+ - Display warning showing count of incomplete tasks
48
+ - Ask the user in natural language to confirm they want to proceed, then stop and wait
49
+ - Proceed if user confirms
50
+
51
+ **If no tasks file exists:** Proceed without task-related warning.
52
+
53
+ 4. **Assess delta spec sync state**
54
+
55
+ Check for delta specs at `openspec/changes/<name>/specs/`. If none exist, proceed without sync prompt.
56
+
57
+ **If delta specs exist:**
58
+ - Compare each delta spec with its corresponding main spec at `openspec/specs/<capability>/spec.md`
59
+ - Determine what changes would be applied (adds, modifications, removals, renames)
60
+ - Show a combined summary before prompting
61
+
62
+ **Prompt options:**
63
+ - If changes needed: "Sync now (recommended)", "Archive without syncing"
64
+ - If already synced: "Archive now", "Sync anyway", "Cancel"
65
+
66
+ If user chooses sync, use the orchestrator to sync specs before archiving. Proceed to archive regardless of choice.
67
+
68
+ 5. **Perform the archive**
69
+
70
+ Create the archive directory if it doesn't exist:
71
+ ```bash
72
+ mkdir -p openspec/changes/archive
73
+ ```
74
+
75
+ Generate target name using current date: `YYYY-MM-DD-<change-name>`
76
+
77
+ **Check if target already exists:**
78
+ - If yes: Fail with error, suggest renaming existing archive or using different date
79
+ - If no: Move the change directory to archive
80
+
81
+ ```bash
82
+ mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>
83
+ ```
84
+
85
+ 6. **Display summary**
86
+
87
+ Show archive completion summary including:
88
+ - Change name
89
+ - Schema that was used
90
+ - Archive location
91
+ - Whether specs were synced (if applicable)
92
+ - Note about any warnings (incomplete artifacts/tasks)
93
+
94
+ **Output On Success**
95
+
96
+ ```
97
+ ## Archive Complete
98
+
99
+ **Change:** <change-name>
100
+ **Schema:** <schema-name>
101
+ **Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
102
+ **Specs:** ✓ Synced to main specs (or "No delta specs" or "Sync skipped")
103
+
104
+ All artifacts complete. All tasks complete.
105
+ ```
106
+
107
+ **Guardrails**
108
+ - Always prompt for change selection if not provided
109
+ - Use artifact graph (openspec status --json) for completion checking
110
+ - Don't block archive on warnings - just inform and confirm
111
+ - Preserve .openspec.yaml when moving to archive (it moves with the directory)
112
+ - Show clear summary of what happened
113
+ - If sync is requested, use openspec-sync-specs approach (agent-driven)
114
+ - If delta specs exist, always run the sync assessment and show the combined summary before prompting