Skip to content

Commit 1f774ca

Browse files
committed
docs(openspec): 更新技能文档中的版本和说明文本
- 将多个技能文档中的 generatedBy 版本从 1.1.1 更新至 1.2.0 - 改进错误信息文本,将 "Use `/opsx:new` to create a new change" 改为更友好的 "Create a new change to get started" - 在 ff.md 中澄清模板使用说明,强调 context 和 rules 是约束而非输出内容 - 更新 archive 相关文档,将同步操作改为使用 Task 工具调用技能 - 修改 explore 模式文档,移除直接命令引用,强调创建提案的流程 - 更新 onboard 文档,将初始化检查改为 CLI 安装检查,并添加跨平台命令支持 - 重新组织命令参考部分,突出核心工作流命令
1 parent 40c3ec6 commit 1f774ca

25 files changed

Lines changed: 159 additions & 86 deletions

File tree

.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/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.1.1"
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.1.1"
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.1.1"
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**

.claude/skills/openspec-continue-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.1.1"
9+
generatedBy: "1.2.0"
1010
---
1111

1212
Continue working on a change by creating the next artifact.

.claude/skills/openspec-explore/SKILL.md

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

1212
Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
1313

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 (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.
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.
1515

1616
**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.
1717

@@ -95,8 +95,7 @@ This tells you:
9595

9696
Think freely. When insights crystallize, you might offer:
9797

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

102101
### When a change exists
@@ -252,7 +251,7 @@ You: That changes everything.
252251

253252
There's no required ending. Discovery might:
254253

255-
- **Flow into action**: "Ready to start? /opsx:new or /opsx:ff"
254+
- **Flow into a proposal**: "Ready to start? I can create a change proposal."
256255
- **Result in artifact updates**: "Updated design.md with these decisions"
257256
- **Just provide clarity**: User has what they need, moves on
258257
- **Continue later**: "We can pick this up anytime"
@@ -269,8 +268,7 @@ When it feels like things are crystallizing, you might summarize:
269268
**Open questions**: [if any remain]
270269
271270
**Next steps** (if ready):
272-
- Create a change: /opsx:new <name>
273-
- Fast-forward to tasks: /opsx:ff <name>
271+
- Create a change proposal
274272
- Keep exploring: just keep talking
275273
```
276274

0 commit comments

Comments
 (0)