ethan-agent-skills 0.1.0

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.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +140 -0
  3. package/agents/skills/openspec-apply-change/SKILL.md +156 -0
  4. package/agents/skills/openspec-apply-change/skill.json +5 -0
  5. package/agents/skills/openspec-archive-change/SKILL.md +114 -0
  6. package/agents/skills/openspec-archive-change/skill.json +5 -0
  7. package/agents/skills/openspec-explore/SKILL.md +288 -0
  8. package/agents/skills/openspec-explore/skill.json +5 -0
  9. package/agents/skills/openspec-propose/SKILL.md +110 -0
  10. package/agents/skills/openspec-propose/skill.json +5 -0
  11. package/agents/skills/source-command-opsx-apply/SKILL.md +156 -0
  12. package/agents/skills/source-command-opsx-apply/skill.json +5 -0
  13. package/agents/skills/source-command-opsx-archive/SKILL.md +161 -0
  14. package/agents/skills/source-command-opsx-archive/skill.json +5 -0
  15. package/agents/skills/source-command-opsx-explore/SKILL.md +177 -0
  16. package/agents/skills/source-command-opsx-explore/skill.json +5 -0
  17. package/agents/skills/source-command-opsx-propose/SKILL.md +110 -0
  18. package/agents/skills/source-command-opsx-propose/skill.json +5 -0
  19. package/bin/skills.mjs +38 -0
  20. package/claude/commands/opsx/apply.md +152 -0
  21. package/claude/commands/opsx/archive.md +157 -0
  22. package/claude/commands/opsx/explore.md +173 -0
  23. package/claude/commands/opsx/propose.md +106 -0
  24. package/claude/skills/openspec-apply-change/SKILL.md +156 -0
  25. package/claude/skills/openspec-apply-change/skill.json +5 -0
  26. package/claude/skills/openspec-archive-change/SKILL.md +114 -0
  27. package/claude/skills/openspec-archive-change/skill.json +5 -0
  28. package/claude/skills/openspec-explore/SKILL.md +288 -0
  29. package/claude/skills/openspec-explore/skill.json +5 -0
  30. package/claude/skills/openspec-propose/SKILL.md +110 -0
  31. package/claude/skills/openspec-propose/skill.json +5 -0
  32. package/codex/skills/openspec-apply-change/SKILL.md +156 -0
  33. package/codex/skills/openspec-apply-change/skill.json +5 -0
  34. package/codex/skills/openspec-archive-change/SKILL.md +114 -0
  35. package/codex/skills/openspec-archive-change/skill.json +5 -0
  36. package/codex/skills/openspec-explore/SKILL.md +288 -0
  37. package/codex/skills/openspec-explore/skill.json +5 -0
  38. package/codex/skills/openspec-propose/SKILL.md +110 -0
  39. package/codex/skills/openspec-propose/skill.json +5 -0
  40. package/lib/discover.mjs +60 -0
  41. package/lib/list.mjs +22 -0
  42. package/lib/update.mjs +144 -0
  43. package/lib/utils.mjs +120 -0
  44. package/package.json +46 -0
  45. package/skills/pdf-extract/SKILL.md +214 -0
  46. package/skills/pdf-extract/scripts/pdf_extract.py +112 -0
  47. package/skills/pdf-extract/skill.json +5 -0
@@ -0,0 +1,161 @@
1
+ ---
2
+ name: "source-command-opsx-archive"
3
+ description: "Archive a completed change in the experimental workflow"
4
+ ---
5
+
6
+ # source-command-opsx-archive
7
+
8
+ Use this skill when the user asks to run the migrated source command `opsx-archive`.
9
+
10
+ ## Command Template
11
+
12
+ Archive a completed change in the experimental workflow.
13
+
14
+ **Input**: Optionally specify a change name after `/opsx:archive` (e.g., `/opsx:archive add-auth`). 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. Use the **AskUserQuestion tool** to let the user select.
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
+ - Prompt user for confirmation to continue
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
+ - Prompt user for confirmation to continue
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 Task tool (subagent_type: "general-purpose", prompt: "Use Skill tool to invoke openspec-sync-specs for change '<name>'. Delta spec analysis: <include the analyzed delta spec summary>"). 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
+ - Spec sync status (synced / sync skipped / no delta specs)
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
103
+
104
+ All artifacts complete. All tasks complete.
105
+ ```
106
+
107
+ **Output On Success (No Delta Specs)**
108
+
109
+ ```
110
+ ## Archive Complete
111
+
112
+ **Change:** <change-name>
113
+ **Schema:** <schema-name>
114
+ **Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
115
+ **Specs:** No delta specs
116
+
117
+ All artifacts complete. All tasks complete.
118
+ ```
119
+
120
+ **Output On Success With Warnings**
121
+
122
+ ```
123
+ ## Archive Complete (with warnings)
124
+
125
+ **Change:** <change-name>
126
+ **Schema:** <schema-name>
127
+ **Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
128
+ **Specs:** Sync skipped (user chose to skip)
129
+
130
+ **Warnings:**
131
+ - Archived with 2 incomplete artifacts
132
+ - Archived with 3 incomplete tasks
133
+ - Delta spec sync was skipped (user chose to skip)
134
+
135
+ Review the archive if this was not intentional.
136
+ ```
137
+
138
+ **Output On Error (Archive Exists)**
139
+
140
+ ```
141
+ ## Archive Failed
142
+
143
+ **Change:** <change-name>
144
+ **Target:** openspec/changes/archive/YYYY-MM-DD-<name>/
145
+
146
+ Target archive directory already exists.
147
+
148
+ **Options:**
149
+ 1. Rename the existing archive
150
+ 2. Delete the existing archive if it's a duplicate
151
+ 3. Wait until a different date to archive
152
+ ```
153
+
154
+ **Guardrails**
155
+ - Always prompt for change selection if not provided
156
+ - Use artifact graph (openspec status --json) for completion checking
157
+ - Don't block archive on warnings - just inform and confirm
158
+ - Preserve .openspec.yaml when moving to archive (it moves with the directory)
159
+ - Show clear summary of what happened
160
+ - If sync is requested, use the Skill tool to invoke `openspec-sync-specs` (agent-driven)
161
+ - If delta specs exist, always run the sync assessment and show the combined summary before prompting
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "source-command-opsx-archive",
3
+ "version": "0.1.0",
4
+ "description": "Archive a completed change in the experimental workflow"
5
+ }
@@ -0,0 +1,177 @@
1
+ ---
2
+ name: "source-command-opsx-explore"
3
+ description: "Enter explore mode - think through ideas, investigate problems, clarify requirements"
4
+ ---
5
+
6
+ # source-command-opsx-explore
7
+
8
+ Use this skill when the user asks to run the migrated source command `opsx-explore`.
9
+
10
+ ## Command Template
11
+
12
+ Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
13
+
14
+ **IMPORTANT: Explore mode is for thinking, not implementing.** You may read files, search code, and investigate the codebase, but you must NEVER write code or implement features. If the user asks you to implement something, remind them to exit explore mode first and create a change proposal. You MAY create OpenSpec artifacts (proposals, designs, specs) if the user asks—that's capturing thinking, not implementing.
15
+
16
+ **This is a stance, not a workflow.** There are no fixed steps, no required sequence, no mandatory outputs. You're a thinking partner helping the user explore.
17
+
18
+ **Input**: The argument after `/opsx:explore` is whatever the user wants to think about. Could be:
19
+ - A vague idea: "real-time collaboration"
20
+ - A specific problem: "the auth system is getting unwieldy"
21
+ - A change name: "add-dark-mode" (to explore in context of that change)
22
+ - A comparison: "postgres vs sqlite for this"
23
+ - Nothing (just enter explore mode)
24
+
25
+ ---
26
+
27
+ ## The Stance
28
+
29
+ - **Curious, not prescriptive** - Ask questions that emerge naturally, don't follow a script
30
+ - **Open threads, not interrogations** - Surface multiple interesting directions and let the user follow what resonates. Don't funnel them through a single path of questions.
31
+ - **Visual** - Use ASCII diagrams liberally when they'd help clarify thinking
32
+ - **Adaptive** - Follow interesting threads, pivot when new information emerges
33
+ - **Patient** - Don't rush to conclusions, let the shape of the problem emerge
34
+ - **Grounded** - Explore the actual codebase when relevant, don't just theorize
35
+
36
+ ---
37
+
38
+ ## What You Might Do
39
+
40
+ Depending on what the user brings, you might:
41
+
42
+ **Explore the problem space**
43
+ - Ask clarifying questions that emerge from what they said
44
+ - Challenge assumptions
45
+ - Reframe the problem
46
+ - Find analogies
47
+
48
+ **Investigate the codebase**
49
+ - Map existing architecture relevant to the discussion
50
+ - Find integration points
51
+ - Identify patterns already in use
52
+ - Surface hidden complexity
53
+
54
+ **Compare options**
55
+ - Brainstorm multiple approaches
56
+ - Build comparison tables
57
+ - Sketch tradeoffs
58
+ - Recommend a path (if asked)
59
+
60
+ **Visualize**
61
+ ```
62
+ ┌─────────────────────────────────────────┐
63
+ │ Use ASCII diagrams liberally │
64
+ ├─────────────────────────────────────────┤
65
+ │ │
66
+ │ ┌────────┐ ┌────────┐ │
67
+ │ │ State │────────▶│ State │ │
68
+ │ │ A │ │ B │ │
69
+ │ └────────┘ └────────┘ │
70
+ │ │
71
+ │ System diagrams, state machines, │
72
+ │ data flows, architecture sketches, │
73
+ │ dependency graphs, comparison tables │
74
+ │ │
75
+ └─────────────────────────────────────────┘
76
+ ```
77
+
78
+ **Surface risks and unknowns**
79
+ - Identify what could go wrong
80
+ - Find gaps in understanding
81
+ - Suggest spikes or investigations
82
+
83
+ ---
84
+
85
+ ## OpenSpec Awareness
86
+
87
+ You have full context of the OpenSpec system. Use it naturally, don't force it.
88
+
89
+ ### Check for context
90
+
91
+ At the start, quickly check what exists:
92
+ ```bash
93
+ openspec list --json
94
+ ```
95
+
96
+ This tells you:
97
+ - If there are active changes
98
+ - Their names, schemas, and status
99
+ - What the user might be working on
100
+
101
+ If the user mentioned a specific change name, read its artifacts for context.
102
+
103
+ ### When no change exists
104
+
105
+ Think freely. When insights crystallize, you might offer:
106
+
107
+ - "This feels solid enough to start a change. Want me to create a proposal?"
108
+ - Or keep exploring - no pressure to formalize
109
+
110
+ ### When a change exists
111
+
112
+ If the user mentions a change or you detect one is relevant:
113
+
114
+ 1. **Read existing artifacts for context**
115
+ - `openspec/changes/<name>/proposal.md`
116
+ - `openspec/changes/<name>/design.md`
117
+ - `openspec/changes/<name>/tasks.md`
118
+ - etc.
119
+
120
+ 2. **Reference them naturally in conversation**
121
+ - "Your design mentions using Redis, but we just realized SQLite fits better..."
122
+ - "The proposal scopes this to premium users, but we're now thinking everyone..."
123
+
124
+ 3. **Offer to capture when decisions are made**
125
+
126
+ | Insight Type | Where to Capture |
127
+ |--------------|------------------|
128
+ | New requirement discovered | `specs/<capability>/spec.md` |
129
+ | Requirement changed | `specs/<capability>/spec.md` |
130
+ | Design decision made | `design.md` |
131
+ | Scope changed | `proposal.md` |
132
+ | New work identified | `tasks.md` |
133
+ | Assumption invalidated | Relevant artifact |
134
+
135
+ Example offers:
136
+ - "That's a design decision. Capture it in design.md?"
137
+ - "This is a new requirement. Add it to specs?"
138
+ - "This changes scope. Update the proposal?"
139
+
140
+ 4. **The user decides** - Offer and move on. Don't pressure. Don't auto-capture.
141
+
142
+ ---
143
+
144
+ ## What You Don't Have To Do
145
+
146
+ - Follow a script
147
+ - Ask the same questions every time
148
+ - Produce a specific artifact
149
+ - Reach a conclusion
150
+ - Stay on topic if a tangent is valuable
151
+ - Be brief (this is thinking time)
152
+
153
+ ---
154
+
155
+ ## Ending Discovery
156
+
157
+ There's no required ending. Discovery might:
158
+
159
+ - **Flow into a proposal**: "Ready to start? I can create a change proposal."
160
+ - **Result in artifact updates**: "Updated design.md with these decisions"
161
+ - **Just provide clarity**: User has what they need, moves on
162
+ - **Continue later**: "We can pick this up anytime"
163
+
164
+ When things crystallize, you might offer a summary - but it's optional. Sometimes the thinking IS the value.
165
+
166
+ ---
167
+
168
+ ## Guardrails
169
+
170
+ - **Don't implement** - Never write code or implement features. Creating OpenSpec artifacts is fine, writing application code is not.
171
+ - **Don't fake understanding** - If something is unclear, dig deeper
172
+ - **Don't rush** - Discovery is thinking time, not task time
173
+ - **Don't force structure** - Let patterns emerge naturally
174
+ - **Don't auto-capture** - Offer to save insights, don't just do it
175
+ - **Do visualize** - A good diagram is worth many paragraphs
176
+ - **Do explore the codebase** - Ground discussions in reality
177
+ - **Do question assumptions** - Including the user's and your own
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "source-command-opsx-explore",
3
+ "version": "0.1.0",
4
+ "description": "Enter explore mode - think through ideas, investigate problems, clarify requirements"
5
+ }
@@ -0,0 +1,110 @@
1
+ ---
2
+ name: "source-command-opsx-propose"
3
+ description: "Propose a new change - create it and generate all artifacts in one step"
4
+ ---
5
+
6
+ # source-command-opsx-propose
7
+
8
+ Use this skill when the user asks to run the migrated source command `opsx-propose`.
9
+
10
+ ## Command Template
11
+
12
+ Propose a new change - create the change and generate all artifacts in one step.
13
+
14
+ I'll create a change with artifacts:
15
+ - proposal.md (what & why)
16
+ - design.md (how)
17
+ - tasks.md (implementation steps)
18
+
19
+ When ready to implement, run /opsx:apply
20
+
21
+ ---
22
+
23
+ **Input**: The argument after `/opsx:propose` is the change name (kebab-case), OR a description of what the user wants to build.
24
+
25
+ **Steps**
26
+
27
+ 1. **If no input provided, ask what they want to build**
28
+
29
+ Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
30
+ > "What change do you want to work on? Describe what you want to build or fix."
31
+
32
+ From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
33
+
34
+ **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
35
+
36
+ 2. **Create the change directory**
37
+ ```bash
38
+ openspec new change "<name>"
39
+ ```
40
+ This creates a scaffolded change at `openspec/changes/<name>/` with `.openspec.yaml`.
41
+
42
+ 3. **Get the artifact build order**
43
+ ```bash
44
+ openspec status --change "<name>" --json
45
+ ```
46
+ Parse the JSON to get:
47
+ - `applyRequires`: array of artifact IDs needed before implementation (e.g., `["tasks"]`)
48
+ - `artifacts`: list of all artifacts with their status and dependencies
49
+
50
+ 4. **Create artifacts in sequence until apply-ready**
51
+
52
+ Use the **TodoWrite tool** to track progress through the artifacts.
53
+
54
+ Loop through artifacts in dependency order (artifacts with no pending dependencies first):
55
+
56
+ a. **For each artifact that is `ready` (dependencies satisfied)**:
57
+ - Get instructions:
58
+ ```bash
59
+ openspec instructions <artifact-id> --change "<name>" --json
60
+ ```
61
+ - The instructions JSON includes:
62
+ - `context`: Project background (constraints for you - do NOT include in output)
63
+ - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
64
+ - `template`: The structure to use for your output file
65
+ - `instruction`: Schema-specific guidance for this artifact type
66
+ - `outputPath`: Where to write the artifact
67
+ - `dependencies`: Completed artifacts to read for context
68
+ - Read any completed dependency files for context
69
+ - Create the artifact file using `template` as the structure
70
+ - Apply `context` and `rules` as constraints - but do NOT copy them into the file
71
+ - Show brief progress: "Created <artifact-id>"
72
+
73
+ b. **Continue until all `applyRequires` artifacts are complete**
74
+ - After creating each artifact, re-run `openspec status --change "<name>" --json`
75
+ - Check if every artifact ID in `applyRequires` has `status: "done"` in the artifacts array
76
+ - Stop when all `applyRequires` artifacts are done
77
+
78
+ c. **If an artifact requires user input** (unclear context):
79
+ - Use **AskUserQuestion tool** to clarify
80
+ - Then continue with creation
81
+
82
+ 5. **Show final status**
83
+ ```bash
84
+ openspec status --change "<name>"
85
+ ```
86
+
87
+ **Output**
88
+
89
+ After completing all artifacts, summarize:
90
+ - Change name and location
91
+ - List of artifacts created with brief descriptions
92
+ - What's ready: "All artifacts created! Ready for implementation."
93
+ - Prompt: "Run `/opsx:apply` to start implementing."
94
+
95
+ **Artifact Creation Guidelines**
96
+
97
+ - Follow the `instruction` field from `openspec instructions` for each artifact type
98
+ - The schema defines what each artifact should contain - follow it
99
+ - Read dependency artifacts for context before creating new ones
100
+ - Use `template` as the structure for your output file - fill in its sections
101
+ - **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
102
+ - Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
103
+ - These guide what you write, but should never appear in the output
104
+
105
+ **Guardrails**
106
+ - Create ALL artifacts needed for implementation (as defined by schema's `apply.requires`)
107
+ - Always read dependency artifacts before creating a new one
108
+ - If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
109
+ - If a change with that name already exists, ask if user wants to continue it or create a new one
110
+ - Verify each artifact file exists after writing before proceeding to next
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "source-command-opsx-propose",
3
+ "version": "0.1.0",
4
+ "description": "Propose a new change - create it and generate all artifacts in one step"
5
+ }
package/bin/skills.mjs ADDED
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env node
2
+ import { Command } from 'commander';
3
+ import { readFileSync } from 'node:fs';
4
+ import { dirname, join } from 'node:path';
5
+ import { fileURLToPath } from 'node:url';
6
+ import { list } from '../lib/list.mjs';
7
+ import { update } from '../lib/update.mjs';
8
+
9
+ const __dirname = dirname(fileURLToPath(import.meta.url));
10
+ const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
11
+
12
+ const program = new Command();
13
+
14
+ program
15
+ .name('skills')
16
+ .description('Agent skill manager')
17
+ .version(pkg.version);
18
+
19
+ program
20
+ .command('list')
21
+ .alias('ls')
22
+ .description('List bundled skills in this package')
23
+ .option('--client <name>', 'Client: common | claude | codex | agents | all', 'all')
24
+ .action(list);
25
+
26
+ program
27
+ .command('update')
28
+ .description('Sync bundled skills to local agent skill directories')
29
+ .option('-f, --force', 'Rewrite package-managed skills even when versions match')
30
+ .option('--dry-run', 'Preview changes without writing')
31
+ .option('--target <dir>', 'Target skill directory override')
32
+ .option('--client <name>', 'Client: claude | codex | all', 'claude')
33
+ .action(update);
34
+
35
+ program.parseAsync(process.argv).catch((err) => {
36
+ console.error(err.message);
37
+ process.exit(1);
38
+ });
@@ -0,0 +1,152 @@
1
+ ---
2
+ name: "OPSX: Apply"
3
+ description: Implement tasks from an OpenSpec change (Experimental)
4
+ category: Workflow
5
+ tags: [workflow, artifacts, experimental]
6
+ ---
7
+
8
+ Implement tasks from an OpenSpec change.
9
+
10
+ **Input**: Optionally specify a change name (e.g., `/opsx:apply add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
11
+
12
+ **Steps**
13
+
14
+ 1. **Select the change**
15
+
16
+ If a name is provided, use it. Otherwise:
17
+ - Infer from conversation context if the user mentioned a change
18
+ - Auto-select if only one active change exists
19
+ - If ambiguous, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select
20
+
21
+ Always announce: "Using change: <name>" and how to override (e.g., `/opsx:apply <other>`).
22
+
23
+ 2. **Check status to understand the schema**
24
+ ```bash
25
+ openspec status --change "<name>" --json
26
+ ```
27
+ Parse the JSON to understand:
28
+ - `schemaName`: The workflow being used (e.g., "spec-driven")
29
+ - Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
30
+
31
+ 3. **Get apply instructions**
32
+
33
+ ```bash
34
+ openspec instructions apply --change "<name>" --json
35
+ ```
36
+
37
+ This returns:
38
+ - `contextFiles`: artifact ID -> array of concrete file paths (varies by schema)
39
+ - Progress (total, complete, remaining)
40
+ - Task list with status
41
+ - Dynamic instruction based on current state
42
+
43
+ **Handle states:**
44
+ - If `state: "blocked"` (missing artifacts): show message, suggest using `/opsx:continue`
45
+ - If `state: "all_done"`: congratulate, suggest archive
46
+ - Otherwise: proceed to implementation
47
+
48
+ 4. **Read context files**
49
+
50
+ Read every file path listed under `contextFiles` from the apply instructions output.
51
+ The files depend on the schema being used:
52
+ - **spec-driven**: proposal, specs, design, tasks
53
+ - Other schemas: follow the contextFiles from CLI output
54
+
55
+ 5. **Show current progress**
56
+
57
+ Display:
58
+ - Schema being used
59
+ - Progress: "N/M tasks complete"
60
+ - Remaining tasks overview
61
+ - Dynamic instruction from CLI
62
+
63
+ 6. **Implement tasks (loop until done or blocked)**
64
+
65
+ For each pending task:
66
+ - Show which task is being worked on
67
+ - Make the code changes required
68
+ - Keep changes minimal and focused
69
+ - Mark task complete in the tasks file: `- [ ]` → `- [x]`
70
+ - Continue to next task
71
+
72
+ **Pause if:**
73
+ - Task is unclear → ask for clarification
74
+ - Implementation reveals a design issue → suggest updating artifacts
75
+ - Error or blocker encountered → report and wait for guidance
76
+ - User interrupts
77
+
78
+ 7. **On completion or pause, show status**
79
+
80
+ Display:
81
+ - Tasks completed this session
82
+ - Overall progress: "N/M tasks complete"
83
+ - If all done: suggest archive
84
+ - If paused: explain why and wait for guidance
85
+
86
+ **Output During Implementation**
87
+
88
+ ```
89
+ ## Implementing: <change-name> (schema: <schema-name>)
90
+
91
+ Working on task 3/7: <task description>
92
+ [...implementation happening...]
93
+ ✓ Task complete
94
+
95
+ Working on task 4/7: <task description>
96
+ [...implementation happening...]
97
+ ✓ Task complete
98
+ ```
99
+
100
+ **Output On Completion**
101
+
102
+ ```
103
+ ## Implementation Complete
104
+
105
+ **Change:** <change-name>
106
+ **Schema:** <schema-name>
107
+ **Progress:** 7/7 tasks complete ✓
108
+
109
+ ### Completed This Session
110
+ - [x] Task 1
111
+ - [x] Task 2
112
+ ...
113
+
114
+ All tasks complete! You can archive this change with `/opsx:archive`.
115
+ ```
116
+
117
+ **Output On Pause (Issue Encountered)**
118
+
119
+ ```
120
+ ## Implementation Paused
121
+
122
+ **Change:** <change-name>
123
+ **Schema:** <schema-name>
124
+ **Progress:** 4/7 tasks complete
125
+
126
+ ### Issue Encountered
127
+ <description of the issue>
128
+
129
+ **Options:**
130
+ 1. <option 1>
131
+ 2. <option 2>
132
+ 3. Other approach
133
+
134
+ What would you like to do?
135
+ ```
136
+
137
+ **Guardrails**
138
+ - Keep going through tasks until done or blocked
139
+ - Always read context files before starting (from the apply instructions output)
140
+ - If task is ambiguous, pause and ask before implementing
141
+ - If implementation reveals issues, pause and suggest artifact updates
142
+ - Keep code changes minimal and scoped to each task
143
+ - Update task checkbox immediately after completing each task
144
+ - Pause on errors, blockers, or unclear requirements - don't guess
145
+ - Use contextFiles from CLI output, don't assume specific file names
146
+
147
+ **Fluid Workflow Integration**
148
+
149
+ This skill supports the "actions on a change" model:
150
+
151
+ - **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
152
+ - **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly