@kylindc/ccxray 1.2.0 → 1.2.1

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.
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: /opsx-propose
3
+ id: opsx-propose
4
+ category: Workflow
5
+ description: Propose a new change - create it and generate all artifacts in one step
6
+ ---
7
+
8
+ Propose a new change - create the change and generate all artifacts in one step.
9
+
10
+ I'll create a change with artifacts:
11
+ - proposal.md (what & why)
12
+ - design.md (how)
13
+ - tasks.md (implementation steps)
14
+
15
+ When ready to implement, run /opsx:apply
16
+
17
+ ---
18
+
19
+ **Input**: The argument after `/opsx:propose` is the change name (kebab-case), OR a description of what the user wants to build.
20
+
21
+ **Steps**
22
+
23
+ 1. **If no input provided, ask what they want to build**
24
+
25
+ Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
26
+ > "What change do you want to work on? Describe what you want to build or fix."
27
+
28
+ From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
29
+
30
+ **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
31
+
32
+ 2. **Create the change directory**
33
+ ```bash
34
+ openspec new change "<name>"
35
+ ```
36
+ This creates a scaffolded change at `openspec/changes/<name>/` with `.openspec.yaml`.
37
+
38
+ 3. **Get the artifact build order**
39
+ ```bash
40
+ openspec status --change "<name>" --json
41
+ ```
42
+ Parse the JSON to get:
43
+ - `applyRequires`: array of artifact IDs needed before implementation (e.g., `["tasks"]`)
44
+ - `artifacts`: list of all artifacts with their status and dependencies
45
+
46
+ 4. **Create artifacts in sequence until apply-ready**
47
+
48
+ Use the **TodoWrite tool** to track progress through the artifacts.
49
+
50
+ Loop through artifacts in dependency order (artifacts with no pending dependencies first):
51
+
52
+ a. **For each artifact that is `ready` (dependencies satisfied)**:
53
+ - Get instructions:
54
+ ```bash
55
+ openspec instructions <artifact-id> --change "<name>" --json
56
+ ```
57
+ - The instructions JSON includes:
58
+ - `context`: Project background (constraints for you - do NOT include in output)
59
+ - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
60
+ - `template`: The structure to use for your output file
61
+ - `instruction`: Schema-specific guidance for this artifact type
62
+ - `outputPath`: Where to write the artifact
63
+ - `dependencies`: Completed artifacts to read for context
64
+ - Read any completed dependency files for context
65
+ - Create the artifact file using `template` as the structure
66
+ - Apply `context` and `rules` as constraints - but do NOT copy them into the file
67
+ - Show brief progress: "Created <artifact-id>"
68
+
69
+ b. **Continue until all `applyRequires` artifacts are complete**
70
+ - After creating each artifact, re-run `openspec status --change "<name>" --json`
71
+ - Check if every artifact ID in `applyRequires` has `status: "done"` in the artifacts array
72
+ - Stop when all `applyRequires` artifacts are done
73
+
74
+ c. **If an artifact requires user input** (unclear context):
75
+ - Use **AskUserQuestion tool** to clarify
76
+ - Then continue with creation
77
+
78
+ 5. **Show final status**
79
+ ```bash
80
+ openspec status --change "<name>"
81
+ ```
82
+
83
+ **Output**
84
+
85
+ After completing all artifacts, summarize:
86
+ - Change name and location
87
+ - List of artifacts created with brief descriptions
88
+ - What's ready: "All artifacts created! Ready for implementation."
89
+ - Prompt: "Run `/opsx:apply` to start implementing."
90
+
91
+ **Artifact Creation Guidelines**
92
+
93
+ - Follow the `instruction` field from `openspec instructions` for each artifact type
94
+ - The schema defines what each artifact should contain - follow it
95
+ - Read dependency artifacts for context before creating new ones
96
+ - Use `template` as the structure for your output file - fill in its sections
97
+ - **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
98
+ - Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
99
+ - These guide what you write, but should never appear in the output
100
+
101
+ **Guardrails**
102
+ - Create ALL artifacts needed for implementation (as defined by schema's `apply.requires`)
103
+ - Always read dependency artifacts before creating a new one
104
+ - If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
105
+ - If a change with that name already exists, ask if user wants to continue it or create a new one
106
+ - Verify each artifact file exists after writing before proceeding to next
@@ -0,0 +1,134 @@
1
+ ---
2
+ name: /opsx-sync
3
+ id: opsx-sync
4
+ category: Workflow
5
+ description: Sync delta specs from a change to main specs
6
+ ---
7
+
8
+ Sync delta specs from a change to main specs.
9
+
10
+ This is an **agent-driven** operation - you will read delta specs and directly edit main specs to apply the changes. This allows intelligent merging (e.g., adding a scenario without copying the entire requirement).
11
+
12
+ **Input**: Optionally specify a change name after `/opsx:sync` (e.g., `/opsx:sync add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
13
+
14
+ **Steps**
15
+
16
+ 1. **If no change name provided, prompt for selection**
17
+
18
+ Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
19
+
20
+ Show changes that have delta specs (under `specs/` directory).
21
+
22
+ **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
23
+
24
+ 2. **Find delta specs**
25
+
26
+ Look for delta spec files in `openspec/changes/<name>/specs/*/spec.md`.
27
+
28
+ Each delta spec file contains sections like:
29
+ - `## ADDED Requirements` - New requirements to add
30
+ - `## MODIFIED Requirements` - Changes to existing requirements
31
+ - `## REMOVED Requirements` - Requirements to remove
32
+ - `## RENAMED Requirements` - Requirements to rename (FROM:/TO: format)
33
+
34
+ If no delta specs found, inform user and stop.
35
+
36
+ 3. **For each delta spec, apply changes to main specs**
37
+
38
+ For each capability with a delta spec at `openspec/changes/<name>/specs/<capability>/spec.md`:
39
+
40
+ a. **Read the delta spec** to understand the intended changes
41
+
42
+ b. **Read the main spec** at `openspec/specs/<capability>/spec.md` (may not exist yet)
43
+
44
+ c. **Apply changes intelligently**:
45
+
46
+ **ADDED Requirements:**
47
+ - If requirement doesn't exist in main spec → add it
48
+ - If requirement already exists → update it to match (treat as implicit MODIFIED)
49
+
50
+ **MODIFIED Requirements:**
51
+ - Find the requirement in main spec
52
+ - Apply the changes - this can be:
53
+ - Adding new scenarios (don't need to copy existing ones)
54
+ - Modifying existing scenarios
55
+ - Changing the requirement description
56
+ - Preserve scenarios/content not mentioned in the delta
57
+
58
+ **REMOVED Requirements:**
59
+ - Remove the entire requirement block from main spec
60
+
61
+ **RENAMED Requirements:**
62
+ - Find the FROM requirement, rename to TO
63
+
64
+ d. **Create new main spec** if capability doesn't exist yet:
65
+ - Create `openspec/specs/<capability>/spec.md`
66
+ - Add Purpose section (can be brief, mark as TBD)
67
+ - Add Requirements section with the ADDED requirements
68
+
69
+ 4. **Show summary**
70
+
71
+ After applying all changes, summarize:
72
+ - Which capabilities were updated
73
+ - What changes were made (requirements added/modified/removed/renamed)
74
+
75
+ **Delta Spec Format Reference**
76
+
77
+ ```markdown
78
+ ## ADDED Requirements
79
+
80
+ ### Requirement: New Feature
81
+ The system SHALL do something new.
82
+
83
+ #### Scenario: Basic case
84
+ - **WHEN** user does X
85
+ - **THEN** system does Y
86
+
87
+ ## MODIFIED Requirements
88
+
89
+ ### Requirement: Existing Feature
90
+ #### Scenario: New scenario to add
91
+ - **WHEN** user does A
92
+ - **THEN** system does B
93
+
94
+ ## REMOVED Requirements
95
+
96
+ ### Requirement: Deprecated Feature
97
+
98
+ ## RENAMED Requirements
99
+
100
+ - FROM: `### Requirement: Old Name`
101
+ - TO: `### Requirement: New Name`
102
+ ```
103
+
104
+ **Key Principle: Intelligent Merging**
105
+
106
+ Unlike programmatic merging, you can apply **partial updates**:
107
+ - To add a scenario, just include that scenario under MODIFIED - don't copy existing scenarios
108
+ - The delta represents *intent*, not a wholesale replacement
109
+ - Use your judgment to merge changes sensibly
110
+
111
+ **Output On Success**
112
+
113
+ ```
114
+ ## Specs Synced: <change-name>
115
+
116
+ Updated main specs:
117
+
118
+ **<capability-1>**:
119
+ - Added requirement: "New Feature"
120
+ - Modified requirement: "Existing Feature" (added 1 scenario)
121
+
122
+ **<capability-2>**:
123
+ - Created new spec file
124
+ - Added requirement: "Another Feature"
125
+
126
+ Main specs are now updated. The change remains active - archive when implementation is complete.
127
+ ```
128
+
129
+ **Guardrails**
130
+ - Read both delta and main specs before making changes
131
+ - Preserve existing content not mentioned in delta
132
+ - If something is unclear, ask for clarification
133
+ - Show what you're changing as you go
134
+ - The operation should be idempotent - running twice should give same result
@@ -0,0 +1,156 @@
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.2.0"
10
+ ---
11
+
12
+ Implement tasks from an OpenSpec change.
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. **Select the change**
19
+
20
+ If a name is provided, use it. Otherwise:
21
+ - Infer from conversation context if the user mentioned a change
22
+ - Auto-select if only one active change exists
23
+ - If ambiguous, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select
24
+
25
+ Always announce: "Using change: <name>" and how to override (e.g., `/opsx:apply <other>`).
26
+
27
+ 2. **Check status to understand the schema**
28
+ ```bash
29
+ openspec status --change "<name>" --json
30
+ ```
31
+ Parse the JSON to understand:
32
+ - `schemaName`: The workflow being used (e.g., "spec-driven")
33
+ - Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
34
+
35
+ 3. **Get apply instructions**
36
+
37
+ ```bash
38
+ openspec instructions apply --change "<name>" --json
39
+ ```
40
+
41
+ This returns:
42
+ - Context file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)
43
+ - Progress (total, complete, remaining)
44
+ - Task list with status
45
+ - Dynamic instruction based on current state
46
+
47
+ **Handle states:**
48
+ - If `state: "blocked"` (missing artifacts): show message, suggest using openspec-continue-change
49
+ - If `state: "all_done"`: congratulate, suggest archive
50
+ - Otherwise: proceed to implementation
51
+
52
+ 4. **Read context files**
53
+
54
+ Read the files listed in `contextFiles` from the apply instructions output.
55
+ The files depend on the schema being used:
56
+ - **spec-driven**: proposal, specs, design, tasks
57
+ - Other schemas: follow the contextFiles from CLI output
58
+
59
+ 5. **Show current progress**
60
+
61
+ Display:
62
+ - Schema being used
63
+ - Progress: "N/M tasks complete"
64
+ - Remaining tasks overview
65
+ - Dynamic instruction from CLI
66
+
67
+ 6. **Implement tasks (loop until done or blocked)**
68
+
69
+ For each pending task:
70
+ - Show which task is being worked on
71
+ - Make the code changes required
72
+ - Keep changes minimal and focused
73
+ - Mark task complete in the tasks file: `- [ ]` → `- [x]`
74
+ - Continue to next task
75
+
76
+ **Pause if:**
77
+ - Task is unclear → ask for clarification
78
+ - Implementation reveals a design issue → suggest updating artifacts
79
+ - Error or blocker encountered → report and wait for guidance
80
+ - User interrupts
81
+
82
+ 7. **On completion or pause, show status**
83
+
84
+ Display:
85
+ - Tasks completed this session
86
+ - Overall progress: "N/M tasks complete"
87
+ - If all done: suggest archive
88
+ - If paused: explain why and wait for guidance
89
+
90
+ **Output During Implementation**
91
+
92
+ ```
93
+ ## Implementing: <change-name> (schema: <schema-name>)
94
+
95
+ Working on task 3/7: <task description>
96
+ [...implementation happening...]
97
+ ✓ Task complete
98
+
99
+ Working on task 4/7: <task description>
100
+ [...implementation happening...]
101
+ ✓ Task complete
102
+ ```
103
+
104
+ **Output On Completion**
105
+
106
+ ```
107
+ ## Implementation Complete
108
+
109
+ **Change:** <change-name>
110
+ **Schema:** <schema-name>
111
+ **Progress:** 7/7 tasks complete ✓
112
+
113
+ ### Completed This Session
114
+ - [x] Task 1
115
+ - [x] Task 2
116
+ ...
117
+
118
+ All tasks complete! Ready to archive this change.
119
+ ```
120
+
121
+ **Output On Pause (Issue Encountered)**
122
+
123
+ ```
124
+ ## Implementation Paused
125
+
126
+ **Change:** <change-name>
127
+ **Schema:** <schema-name>
128
+ **Progress:** 4/7 tasks complete
129
+
130
+ ### Issue Encountered
131
+ <description of the issue>
132
+
133
+ **Options:**
134
+ 1. <option 1>
135
+ 2. <option 2>
136
+ 3. Other approach
137
+
138
+ What would you like to do?
139
+ ```
140
+
141
+ **Guardrails**
142
+ - Keep going through tasks until done or blocked
143
+ - Always read context files before starting (from the apply instructions output)
144
+ - If task is ambiguous, pause and ask before implementing
145
+ - If implementation reveals issues, pause and suggest artifact updates
146
+ - Keep code changes minimal and scoped to each task
147
+ - Update task checkbox immediately after completing each task
148
+ - Pause on errors, blockers, or unclear requirements - don't guess
149
+ - Use contextFiles from CLI output, don't assume specific file names
150
+
151
+ **Fluid Workflow Integration**
152
+
153
+ This skill supports the "actions on a change" model:
154
+
155
+ - **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
156
+ - **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly
@@ -0,0 +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.2.0"
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. 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
+ - Use **AskUserQuestion tool** to confirm user wants to proceed
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
+ - Use **AskUserQuestion tool** to confirm user wants to proceed
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
+ - 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
@@ -0,0 +1,118 @@
1
+ ---
2
+ name: openspec-continue-change
3
+ description: Continue working on an OpenSpec change by creating the next artifact. Use when the user wants to progress their change, create the next artifact, or continue their workflow.
4
+ license: MIT
5
+ compatibility: Requires openspec CLI.
6
+ metadata:
7
+ author: openspec
8
+ version: "1.0"
9
+ generatedBy: "1.2.0"
10
+ ---
11
+
12
+ Continue working on a change by creating the next artifact.
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 sorted by most recently modified. Then use the **AskUserQuestion tool** to let the user select which change to work on.
21
+
22
+ Present the top 3-4 most recently modified changes as options, showing:
23
+ - Change name
24
+ - Schema (from `schema` field if present, otherwise "spec-driven")
25
+ - Status (e.g., "0/5 tasks", "complete", "no tasks")
26
+ - How recently it was modified (from `lastModified` field)
27
+
28
+ Mark the most recently modified change as "(Recommended)" since it's likely what the user wants to continue.
29
+
30
+ **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
31
+
32
+ 2. **Check current status**
33
+ ```bash
34
+ openspec status --change "<name>" --json
35
+ ```
36
+ Parse the JSON to understand current state. The response includes:
37
+ - `schemaName`: The workflow schema being used (e.g., "spec-driven")
38
+ - `artifacts`: Array of artifacts with their status ("done", "ready", "blocked")
39
+ - `isComplete`: Boolean indicating if all artifacts are complete
40
+
41
+ 3. **Act based on status**:
42
+
43
+ ---
44
+
45
+ **If all artifacts are complete (`isComplete: true`)**:
46
+ - Congratulate the user
47
+ - Show final status including the schema used
48
+ - Suggest: "All artifacts created! You can now implement this change or archive it."
49
+ - STOP
50
+
51
+ ---
52
+
53
+ **If artifacts are ready to create** (status shows artifacts with `status: "ready"`):
54
+ - Pick the FIRST artifact with `status: "ready"` from the status output
55
+ - Get its instructions:
56
+ ```bash
57
+ openspec instructions <artifact-id> --change "<name>" --json
58
+ ```
59
+ - Parse the JSON. The key fields are:
60
+ - `context`: Project background (constraints for you - do NOT include in output)
61
+ - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
62
+ - `template`: The structure to use for your output file
63
+ - `instruction`: Schema-specific guidance
64
+ - `outputPath`: Where to write the artifact
65
+ - `dependencies`: Completed artifacts to read for context
66
+ - **Create the artifact file**:
67
+ - Read any completed dependency files for context
68
+ - Use `template` as the structure - fill in its sections
69
+ - Apply `context` and `rules` as constraints when writing - but do NOT copy them into the file
70
+ - Write to the output path specified in instructions
71
+ - Show what was created and what's now unlocked
72
+ - STOP after creating ONE artifact
73
+
74
+ ---
75
+
76
+ **If no artifacts are ready (all blocked)**:
77
+ - This shouldn't happen with a valid schema
78
+ - Show status and suggest checking for issues
79
+
80
+ 4. **After creating an artifact, show progress**
81
+ ```bash
82
+ openspec status --change "<name>"
83
+ ```
84
+
85
+ **Output**
86
+
87
+ After each invocation, show:
88
+ - Which artifact was created
89
+ - Schema workflow being used
90
+ - Current progress (N/M complete)
91
+ - What artifacts are now unlocked
92
+ - Prompt: "Want to continue? Just ask me to continue or tell me what to do next."
93
+
94
+ **Artifact Creation Guidelines**
95
+
96
+ The artifact types and their purpose depend on the schema. Use the `instruction` field from the instructions output to understand what to create.
97
+
98
+ Common artifact patterns:
99
+
100
+ **spec-driven schema** (proposal → specs → design → tasks):
101
+ - **proposal.md**: Ask user about the change if not clear. Fill in Why, What Changes, Capabilities, Impact.
102
+ - The Capabilities section is critical - each capability listed will need a spec file.
103
+ - **specs/<capability>/spec.md**: Create one spec per capability listed in the proposal's Capabilities section (use the capability name, not the change name).
104
+ - **design.md**: Document technical decisions, architecture, and implementation approach.
105
+ - **tasks.md**: Break down implementation into checkboxed tasks.
106
+
107
+ For other schemas, follow the `instruction` field from the CLI output.
108
+
109
+ **Guardrails**
110
+ - Create ONE artifact per invocation
111
+ - Always read dependency artifacts before creating a new one
112
+ - Never skip artifacts or create out of order
113
+ - If context is unclear, ask the user before creating
114
+ - Verify the artifact file exists after writing before marking progress
115
+ - Use the schema's artifact sequence, don't assume specific artifact names
116
+ - **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
117
+ - Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
118
+ - These guide what you write, but should never appear in the output