You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/commands/opsx/archive.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,18 @@ Archive a completed change in the experimental workflow.
11
11
12
12
**Steps**
13
13
14
-
1.**If no change name provided, prompt for selection**
14
+
1.**Resolve change name**
15
15
16
-
Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
16
+
If a change name was provided, use it.
17
17
18
-
Show only active changes (not already archived).
19
-
Include the schema used for each change if available.
18
+
If no change name was provided:
19
+
- First, try to infer the change name from the conversation context.
20
+
- If exactly one active change can be confidently inferred, auto-select it.
21
+
- If inference is vague, ambiguous, or no active change can be inferred, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select.
20
22
21
-
**IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
23
+
When prompting, show only active changes (not already archived) and include the schema used for each change if available.
24
+
25
+
**IMPORTANT**: Do NOT guess or auto-select a change when inference is vague or ambiguous. Always let the user choose in that case.
22
26
23
27
2.**Check artifact completion status**
24
28
@@ -38,7 +42,7 @@ Archive a completed change in the experimental workflow.
38
42
39
43
3.**Check task completion status**
40
44
41
-
Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
45
+
Derive the actual task artifact path from the OpenSpec metadata (for example, from `openspec status --change "<name>" --json` or `openspec instructions archive --change "<name>" --json` output, or from `contextFiles`) before reading the file and counting checkboxes.
42
46
43
47
Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
Copy file name to clipboardExpand all lines: .claude/skills/openspec-archive-change/SKILL.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,18 @@ Archive a completed change in the experimental workflow.
15
15
16
16
**Steps**
17
17
18
-
1.**If no change name provided, prompt for selection**
18
+
1.**Resolve change name**
19
19
20
-
Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
20
+
If a change name was provided, use it.
21
21
22
-
Show only active changes (not already archived).
23
-
Include the schema used for each change if available.
22
+
If no change name was provided:
23
+
- First, try to infer the change name from the conversation context.
24
+
- If exactly one active change can be confidently inferred, auto-select it.
25
+
- If inference is vague, ambiguous, or no active change can be inferred, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select.
24
26
25
-
**IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
27
+
When prompting, show only active changes (not already archived) and include the schema used for each change if available.
28
+
29
+
**IMPORTANT**: Do NOT guess or auto-select a change when inference is vague or ambiguous. Always let the user choose in that case.
26
30
27
31
2.**Check artifact completion status**
28
32
@@ -42,7 +46,7 @@ Archive a completed change in the experimental workflow.
42
46
43
47
3.**Check task completion status**
44
48
45
-
Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
49
+
Derive the actual task artifact path from the OpenSpec metadata (for example, from `openspec status --change "<name>" --json` or `openspec instructions archive --change "<name>" --json` output, or from `contextFiles`) before reading the file and counting checkboxes.
46
50
47
51
Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
48
52
@@ -108,7 +112,7 @@ All artifacts complete. All tasks complete.
108
112
```
109
113
110
114
**Guardrails**
111
-
-Always prompt for change selection if not provided
115
+
-Prompt for change selection only when the change name is not provided and cannot be inferred, or when inference is ambiguous
112
116
- Use artifact graph (openspec status --json) for completion checking
113
117
- Don't block archive on warnings - just inform and confirm
114
118
- Preserve .openspec.yaml when moving to archive (it moves with the directory)
Copy file name to clipboardExpand all lines: .opencode/commands/opsx-archive.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,18 @@ Archive a completed change in the experimental workflow.
8
8
9
9
**Steps**
10
10
11
-
1.**If no change name provided, prompt for selection**
11
+
1.**Resolve change name**
12
12
13
-
Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
13
+
If a change name was provided, use it.
14
14
15
-
Show only active changes (not already archived).
16
-
Include the schema used for each change if available.
15
+
If no change name was provided:
16
+
- First, try to infer the change name from the conversation context.
17
+
- If exactly one active change can be confidently inferred, auto-select it.
18
+
- If inference is vague, ambiguous, or no active change can be inferred, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select.
17
19
18
-
**IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
20
+
When prompting, show only active changes (not already archived) and include the schema used for each change if available.
21
+
22
+
**IMPORTANT**: Do NOT guess or auto-select a change when inference is vague or ambiguous. Always let the user choose in that case.
19
23
20
24
2.**Check artifact completion status**
21
25
@@ -35,7 +39,7 @@ Archive a completed change in the experimental workflow.
35
39
36
40
3.**Check task completion status**
37
41
38
-
Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
42
+
Derive the actual task artifact path from the OpenSpec metadata (for example, from `openspec status --change "<name>" --json` or `openspec instructions archive --change "<name>" --json` output, or from `contextFiles`) before reading the file and counting checkboxes.
39
43
40
44
Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
0 commit comments