Skip to content

Commit f9df8d2

Browse files
authored
Merge branch 'master' into simeonoff/dtcg-pipeline
2 parents f36b798 + 2366747 commit f9df8d2

204 files changed

Lines changed: 5546 additions & 5173 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/commands/opsx/apply.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Working on task 4/7: <task description>
111111
- [x] Task 2
112112
...
113113
114-
All tasks complete! Ready to archive this change.
114+
All tasks complete! You can archive this change with `/opsx:archive`.
115115
```
116116

117117
**Output On Pause (Issue Encountered)**

.claude/commands/opsx/archive.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Archive a completed change in the experimental workflow.
5959
- If changes needed: "Sync now (recommended)", "Archive without syncing"
6060
- If already synced: "Archive now", "Sync anyway", "Cancel"
6161

62-
If user chooses sync, execute `/opsx:sync` logic. Proceed to archive regardless of choice.
62+
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.
6363

6464
5. **Perform the archive**
6565

@@ -153,5 +153,5 @@ Target archive directory already exists.
153153
- Don't block archive on warnings - just inform and confirm
154154
- Preserve .openspec.yaml when moving to archive (it moves with the directory)
155155
- Show clear summary of what happened
156-
- If sync is requested, use /opsx:sync approach (agent-driven)
156+
- If sync is requested, use the Skill tool to invoke `openspec-sync-specs` (agent-driven)
157157
- If delta specs exist, always run the sync assessment and show the combined summary before prompting

.claude/commands/opsx/bulk-archive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Failed K changes:
225225
```
226226
## No Changes to Archive
227227

228-
No active changes found. Use `/opsx:new` to create a new change.
228+
No active changes found. Create a new change to get started.
229229
```
230230
231231
**Guardrails**

.claude/commands/opsx/continue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Continue working on a change by creating the next artifact.
4141
**If all artifacts are complete (`isComplete: true`)**:
4242
- Congratulate the user
4343
- Show final status including the schema used
44-
- Suggest: "All artifacts created! You can now implement this change or archive it."
44+
- Suggest: "All artifacts created! You can now implement this change with `/opsx:apply` or archive it with `/opsx:archive`."
4545
- STOP
4646

4747
---

.claude/commands/opsx/explore.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tags: [workflow, explore, experimental, thinking]
77

88
Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
99

10-
**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 (e.g., start a change with `/opsx:new` or `/opsx:ff`). You MAY create OpenSpec artifacts (proposals, designs, specs) if the user asks—that's capturing thinking, not implementing.
10+
**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.
1111

1212
**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.
1313

@@ -100,8 +100,7 @@ If the user mentioned a specific change name, read its artifacts for context.
100100

101101
Think freely. When insights crystallize, you might offer:
102102

103-
- "This feels solid enough to start a change. Want me to create one?"
104-
→ Can transition to `/opsx:new` or `/opsx:ff`
103+
- "This feels solid enough to start a change. Want me to create a proposal?"
105104
- Or keep exploring - no pressure to formalize
106105

107106
### When a change exists
@@ -153,7 +152,7 @@ If the user mentions a change or you detect one is relevant:
153152

154153
There's no required ending. Discovery might:
155154

156-
- **Flow into action**: "Ready to start? `/opsx:new` or `/opsx:ff`"
155+
- **Flow into a proposal**: "Ready to start? I can create a change proposal."
157156
- **Result in artifact updates**: "Updated design.md with these decisions"
158157
- **Just provide clarity**: User has what they need, moves on
159158
- **Continue later**: "We can pick this up anytime"

.claude/commands/opsx/ff.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ After completing all artifacts, summarize:
8484
- Follow the `instruction` field from `openspec instructions` for each artifact type
8585
- The schema defines what each artifact should contain - follow it
8686
- Read dependency artifacts for context before creating new ones
87-
- Use the `template` as a starting point, filling in based on context
87+
- Use `template` as the structure for your output file - fill in its sections
88+
- **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
89+
- Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
90+
- These guide what you write, but should never appear in the output
8891
8992
**Guardrails**
9093
- Create ALL artifacts needed for implementation (as defined by schema's `apply.requires`)

.claude/commands/opsx/onboard.md

Lines changed: 39 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ Guide the user through their first complete OpenSpec workflow cycle. This is a t
1111

1212
## Preflight
1313

14-
Before starting, check if OpenSpec is initialized:
14+
Before starting, check if the OpenSpec CLI is installed:
1515

1616
```bash
17-
openspec status --json 2>&1 || echo "NOT_INITIALIZED"
17+
# Unix/macOS
18+
openspec --version 2>&1 || echo "CLI_NOT_INSTALLED"
19+
# Windows (PowerShell)
20+
# if (Get-Command openspec -ErrorAction SilentlyContinue) { openspec --version } else { echo "CLI_NOT_INSTALLED" }
1821
```
1922

20-
**If not initialized:**
21-
> OpenSpec isn't set up in this project yet. Run `openspec init` first, then come back to `/opsx:onboard`.
23+
**If CLI not installed:**
24+
> OpenSpec CLI is not installed. Install it first, then come back to `/opsx:onboard`.
2225
23-
Stop here if not initialized.
26+
Stop here if not installed.
2427

2528
---
2629

@@ -63,7 +66,10 @@ Scan the codebase for small improvement opportunities. Look for:
6366

6467
Also check recent git activity:
6568
```bash
69+
# Unix/macOS
6670
git log --oneline -10 2>/dev/null || echo "No git history"
71+
# Windows (PowerShell)
72+
# git log --oneline -10 2>$null; if ($LASTEXITCODE -ne 0) { echo "No git history" }
6773
```
6874

6975
### Present Suggestions
@@ -258,7 +264,10 @@ For a small task like this, we might only need one spec file.
258264

259265
**DO:** Create the spec file:
260266
```bash
267+
# Unix/macOS
261268
mkdir -p openspec/changes/<name>/specs/<capability-name>
269+
# Windows (PowerShell)
270+
# New-Item -ItemType Directory -Force -Path "openspec/changes/<name>/specs/<capability-name>"
262271
```
263272

264273
Draft the spec content:
@@ -453,21 +462,29 @@ This same rhythm works for any size change—a small fix or a major feature.
453462
454463
## Command Reference
455464
465+
**Core workflow:**
466+
456467
| Command | What it does |
457468
|---------|--------------|
469+
| `/opsx:propose` | Create a change and generate all artifacts |
458470
| `/opsx:explore` | Think through problems before/during work |
459-
| `/opsx:new` | Start a new change, step through artifacts |
460-
| `/opsx:ff` | Fast-forward: create all artifacts at once |
461-
| `/opsx:continue` | Continue working on an existing change |
462471
| `/opsx:apply` | Implement tasks from a change |
463-
| `/opsx:verify` | Verify implementation matches artifacts |
464472
| `/opsx:archive` | Archive a completed change |
465473
474+
**Additional commands:**
475+
476+
| Command | What it does |
477+
|---------|--------------|
478+
| `/opsx:new` | Start a new change, step through artifacts one at a time |
479+
| `/opsx:continue` | Continue working on an existing change |
480+
| `/opsx:ff` | Fast-forward: create all artifacts at once |
481+
| `/opsx:verify` | Verify implementation matches artifacts |
482+
466483
---
467484
468485
## What's Next?
469486
470-
Try `/opsx:new` or `/opsx:ff` on something you actually want to build. You've got the rhythm now!
487+
Try `/opsx:propose` on something you actually want to build. You've got the rhythm now!
471488
```
472489

473490
---
@@ -497,17 +514,25 @@ If the user says they just want to see the commands or skip the tutorial:
497514
```
498515
## OpenSpec Quick Reference
499516
517+
**Core workflow:**
518+
500519
| Command | What it does |
501520
|---------|--------------|
521+
| `/opsx:propose <name>` | Create a change and generate all artifacts |
502522
| `/opsx:explore` | Think through problems (no code changes) |
523+
| `/opsx:apply <name>` | Implement tasks |
524+
| `/opsx:archive <name>` | Archive when done |
525+
526+
**Additional commands:**
527+
528+
| Command | What it does |
529+
|---------|--------------|
503530
| `/opsx:new <name>` | Start a new change, step by step |
504-
| `/opsx:ff <name>` | Fast-forward: all artifacts at once |
505531
| `/opsx:continue <name>` | Continue an existing change |
506-
| `/opsx:apply <name>` | Implement tasks |
532+
| `/opsx:ff <name>` | Fast-forward: all artifacts at once |
507533
| `/opsx:verify <name>` | Verify implementation |
508-
| `/opsx:archive <name>` | Archive when done |
509534
510-
Try `/opsx:new` to start your first change, or `/opsx:ff` if you want to move fast.
535+
Try `/opsx:propose` to start your first change.
511536
```
512537

513538
Exit gracefully.

.claude/skills/openspec-apply-change/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ compatibility: Requires openspec CLI.
66
metadata:
77
author: openspec
88
version: "1.0"
9-
generatedBy: "1.0.2"
9+
generatedBy: "1.2.0"
1010
---
1111

1212
Implement tasks from an OpenSpec change.

.claude/skills/openspec-archive-change/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ compatibility: Requires openspec CLI.
66
metadata:
77
author: openspec
88
version: "1.0"
9-
generatedBy: "1.0.2"
9+
generatedBy: "1.2.0"
1010
---
1111

1212
Archive a completed change in the experimental workflow.
@@ -63,7 +63,7 @@ Archive a completed change in the experimental workflow.
6363
- If changes needed: "Sync now (recommended)", "Archive without syncing"
6464
- If already synced: "Archive now", "Sync anyway", "Cancel"
6565

66-
If user chooses sync, execute /opsx:sync logic (use the openspec-sync-specs skill). Proceed to archive regardless of choice.
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.
6767

6868
5. **Perform the archive**
6969

.claude/skills/openspec-bulk-archive-change/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ compatibility: Requires openspec CLI.
66
metadata:
77
author: openspec
88
version: "1.0"
9-
generatedBy: "1.0.2"
9+
generatedBy: "1.2.0"
1010
---
1111

1212
Archive multiple completed changes in a single operation.
@@ -229,7 +229,7 @@ Failed K changes:
229229
```
230230
## No Changes to Archive
231231

232-
No active changes found. Use `/opsx:new` to create a new change.
232+
No active changes found. Create a new change to get started.
233233
```
234234
235235
**Guardrails**

0 commit comments

Comments
 (0)