@jspg-ai/coding-bb 0.0.3-beta.6 → 0.0.3-beta.8

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 (92) hide show
  1. package/cbb/dev-standards/rules/cbb-ai-behavior.md +1 -1
  2. package/cbb/lib/install/claude-code.js +1 -3
  3. package/cbb/lib/install/codebuddy.js +0 -2
  4. package/cbb/lib/install/init.js +115 -85
  5. package/cbb/lib/install/opencode.js +1 -5
  6. package/cbb/lib/install/qoder.js +1 -3
  7. package/cbb/lib/install/trae.js +0 -2
  8. package/cbb/lib/openspec/index.js +337 -554
  9. package/cbb/lib/superpowers/index.js +246 -265
  10. package/cbb/lib/utils/tar.js +92 -0
  11. package/cbb/lib/utils/upstream.js +90 -0
  12. package/cbb/worktrees/skills/cbb-worktree-close/SKILL.md +31 -22
  13. package/cbb/worktrees/skills/cbb-worktree-init/SKILL.md +21 -22
  14. package/cbb/worktrees/skills/cbb-worktree-push/SKILL.md +66 -30
  15. package/config/openspec/schemas/spec-driven/schema.yaml +21 -30
  16. package/config/openspec/schemas/spec-driven/templates/design.md +0 -18
  17. package/config/openspec/schemas/spec-driven/templates/proposal.md +4 -3
  18. package/config/upstream-mirrors.json +12 -0
  19. package/config/workspace-agents.sample.md +6 -6
  20. package/openspec/.version +2 -3
  21. package/openspec/commands/apply.md +189 -175
  22. package/openspec/commands/archive.md +237 -216
  23. package/openspec/commands/bulk-archive.md +355 -327
  24. package/openspec/commands/continue.md +116 -105
  25. package/openspec/commands/explore.md +230 -199
  26. package/openspec/commands/ff.md +115 -104
  27. package/openspec/commands/new.md +74 -63
  28. package/openspec/commands/onboard.md +557 -548
  29. package/openspec/commands/propose.md +161 -150
  30. package/openspec/commands/sync.md +277 -249
  31. package/openspec/commands/update.md +92 -80
  32. package/openspec/commands/verify.md +175 -162
  33. package/openspec/skills/openspec-apply-change/SKILL.md +20 -5
  34. package/openspec/skills/openspec-archive-change/SKILL.md +30 -8
  35. package/openspec/skills/openspec-bulk-archive-change/SKILL.md +36 -6
  36. package/openspec/skills/openspec-continue-change/SKILL.md +14 -2
  37. package/openspec/skills/openspec-explore/SKILL.md +21 -9
  38. package/openspec/skills/openspec-ff-change/SKILL.md +14 -2
  39. package/openspec/skills/openspec-new-change/SKILL.md +13 -1
  40. package/openspec/skills/openspec-onboard/SKILL.md +49 -39
  41. package/openspec/skills/openspec-propose/SKILL.md +15 -3
  42. package/openspec/skills/openspec-sync-specs/SKILL.md +31 -2
  43. package/openspec/skills/openspec-update-change/SKILL.md +27 -14
  44. package/openspec/skills/openspec-verify-change/SKILL.md +17 -3
  45. package/package.json +1 -1
  46. package/superpowers/.version +4 -4
  47. package/superpowers/skills/brainstorming/SKILL.md +47 -12
  48. package/superpowers/skills/brainstorming/scripts/frame-template.html +213 -213
  49. package/superpowers/skills/brainstorming/scripts/server.cjs +723 -723
  50. package/superpowers/skills/brainstorming/visual-companion.md +6 -6
  51. package/superpowers/skills/diagnosing-superpowers/SKILL.md +120 -0
  52. package/superpowers/skills/diagnosing-superpowers/prompts/analyst-common.md +38 -0
  53. package/superpowers/skills/diagnosing-superpowers/prompts/cost-and-time.md +28 -0
  54. package/superpowers/skills/diagnosing-superpowers/prompts/plan-adherence.md +29 -0
  55. package/superpowers/skills/diagnosing-superpowers/prompts/quality-evidence.md +26 -0
  56. package/superpowers/skills/diagnosing-superpowers/prompts/repeated-work.md +30 -0
  57. package/superpowers/skills/diagnosing-superpowers/prompts/request-conflicts.md +20 -0
  58. package/superpowers/skills/diagnosing-superpowers/prompts/scrub-audit.md +33 -0
  59. package/superpowers/skills/diagnosing-superpowers/prompts/scrub.md +29 -0
  60. package/superpowers/skills/diagnosing-superpowers/prompts/similar-session.md +38 -0
  61. package/superpowers/skills/diagnosing-superpowers/prompts/skill-timeline.md +30 -0
  62. package/superpowers/skills/diagnosing-superpowers/prompts/stumbles.md +28 -0
  63. package/superpowers/skills/diagnosing-superpowers/references/context-safety.md +22 -0
  64. package/superpowers/skills/diagnosing-superpowers/references/github-issues.md +47 -0
  65. package/superpowers/skills/diagnosing-superpowers/references/redaction-policy.md +34 -0
  66. package/superpowers/skills/diagnosing-superpowers/references/session-discovery.md +31 -0
  67. package/superpowers/skills/diagnosing-superpowers/templates/bundle-README.md +77 -0
  68. package/superpowers/skills/diagnosing-superpowers/templates/case.md +64 -0
  69. package/superpowers/skills/diagnosing-superpowers/templates/issue.md +51 -0
  70. package/superpowers/skills/diagnosing-superpowers/templates/report.md +82 -0
  71. package/superpowers/skills/executing-plans/SKILL.md +350 -41
  72. package/superpowers/skills/executing-plans/scripts/task-done +52 -0
  73. package/superpowers/skills/executing-plans/scripts/task-start +28 -0
  74. package/superpowers/skills/requesting-code-review/SKILL.md +1 -1
  75. package/superpowers/skills/requesting-code-review/code-reviewer.md +17 -0
  76. package/superpowers/skills/subagent-driven-development/SKILL.md +18 -18
  77. package/superpowers/skills/subagent-driven-development/re-review-prompt.md +1 -1
  78. package/superpowers/skills/subagent-driven-development/scripts/review-package +53 -46
  79. package/superpowers/skills/subagent-driven-development/scripts/sdd-workspace +82 -40
  80. package/superpowers/skills/subagent-driven-development/scripts/task-brief +43 -41
  81. package/superpowers/skills/subagent-driven-development/task-reviewer-prompt.md +2 -2
  82. package/superpowers/skills/systematic-debugging/root-cause-tracing.md +1 -1
  83. package/superpowers/skills/test-driven-development/SKILL.md +10 -0
  84. package/superpowers/skills/using-superpowers/SKILL.md +2 -0
  85. package/superpowers/skills/using-superpowers/references/claude-code-tools.md +29 -0
  86. package/superpowers/skills/using-superpowers/references/muse-tools.md +35 -0
  87. package/superpowers/skills/writing-plans/SKILL.md +30 -9
  88. package/superpowers/skills/writing-skills/SKILL.md +4 -2
  89. package/superpowers/skills/writing-skills/graphviz-conventions.dot +171 -171
  90. package/cbb/worktrees/commands/worktree-close.md +0 -63
  91. package/cbb/worktrees/commands/worktree-init.md +0 -50
  92. package/cbb/worktrees/commands/worktree-push.md +0 -42
@@ -1,18 +1,30 @@
1
1
  ---
2
2
  name: openspec-onboard
3
- description: Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
3
+ description: Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work. Also use when the user says "openspec onboard" or "opsx onboard".
4
4
  allowed-tools: Bash(openspec:*)
5
5
  license: MIT
6
6
  compatibility: Requires openspec CLI.
7
7
  metadata:
8
8
  author: openspec
9
9
  version: "1.0"
10
+ generatedBy: "1.13.1"
10
11
  ---
11
12
 
12
13
  Guide the user through their first complete OpenSpec workflow cycle. This is a teaching experience—you'll do real work in their codebase while explaining each step.
13
14
 
14
15
  **Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
15
16
 
17
+ **Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
18
+
19
+ One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
20
+
21
+ Otherwise, with no root, what happens next depends on how this workflow was reached:
22
+
23
+ - **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or running its slash command. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
24
+ - **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or ran its slash command. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
25
+
26
+ In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
27
+
16
28
  ---
17
29
 
18
30
  ## Preflight
@@ -27,7 +39,7 @@ openspec --version 2>&1 || echo "CLI_NOT_INSTALLED"
27
39
  ```
28
40
 
29
41
  **If CLI not installed:**
30
- > OpenSpec CLI is not installed. Install it first, then come back to `/openspec-onboard`.
42
+ > OpenSpec CLI is not installed. Install it first, then come back to `/opsx:onboard`.
31
43
 
32
44
  Stop here if not installed.
33
45
 
@@ -154,7 +166,7 @@ Spend 1-2 minutes investigating the relevant code:
154
166
  │ [Optional: ASCII diagram if helpful] │
155
167
  └─────────────────────────────────────────┘
156
168
 
157
- Explore mode (`/openspec-explore`) is for this kind of thinking—investigating before implementing. You can use it anytime you need to think through a problem.
169
+ Explore mode (`/opsx:explore`) is for this kind of thinking—investigating before implementing. You can use it anytime you need to think through a problem.
158
170
 
159
171
  Now let's create a change to hold our work.
160
172
  ```
@@ -220,6 +232,8 @@ Here's a draft proposal:
220
232
 
221
233
  ---
222
234
 
235
+ # Proposal
236
+
223
237
  ## Why
224
238
 
225
239
  [1-2 sentences explaining the problem/opportunity]
@@ -287,6 +301,8 @@ Here's the spec:
287
301
 
288
302
  ---
289
303
 
304
+ # Spec Delta
305
+
290
306
  ## ADDED Requirements
291
307
 
292
308
  ### Requirement: <Name>
@@ -326,6 +342,8 @@ Here's the design:
326
342
 
327
343
  ---
328
344
 
345
+ # Design
346
+
329
347
  ## Context
330
348
 
331
349
  [Brief context about the current state]
@@ -371,6 +389,8 @@ Here are the implementation tasks:
371
389
 
372
390
  ---
373
391
 
392
+ # Tasks
393
+
374
394
  ## 1. [Category or file]
375
395
 
376
396
  - [ ] 1.1 [Specific task] — verify: [test, command, observable behavior, or delivered artifact]
@@ -472,29 +492,24 @@ This same rhythm works for any size change—a small fix or a major feature.
472
492
 
473
493
  ## Command Reference
474
494
 
475
- **Core workflow:**
476
-
477
- | Command | What it does |
478
- |-------------------|--------------------------------------------|
479
- | `/openspec-propose` | Create a change and generate all artifacts |
480
- | `/openspec-explore` | Think through problems before/during work |
481
- | `/openspec-apply-change` | Implement tasks from a change |
482
- | `/openspec-archive-change` | Archive a completed change |
483
-
484
- **Additional commands** (only if installed - availability depends on your profile):
495
+ **The commands you have installed:**
485
496
 
486
- | Command | What it does |
487
- |--------------------|----------------------------------------------------------|
488
- | `/openspec-new-change` | Start a new change, step through artifacts one at a time |
489
- | `/openspec-continue-change` | Continue working on an existing change |
490
- | `/openspec-ff-change` | Fast-forward: create all artifacts at once |
491
- | `/openspec-verify-change` | Verify implementation matches artifacts |
497
+ | Command | What it does |
498
+ |------------------|--------------------------------------------|
499
+ | `/opsx:propose` | Create a change and generate all artifacts |
500
+ | `/opsx:explore` | Think through problems before/during work |
501
+ | `/opsx:apply` | Implement tasks from a change |
502
+ | `/opsx:archive` | Archive a completed change |
503
+ | `/opsx:new` | Start a new change, one artifact at a time |
504
+ | `/opsx:continue` | Continue working on an existing change |
505
+ | `/opsx:ff` | Fast-forward: create all artifacts at once |
506
+ | `/opsx:verify` | Verify implementation matches artifacts |
492
507
 
493
508
  ---
494
509
 
495
510
  ## What's Next?
496
511
 
497
- Try `/openspec-propose` on something you actually want to build. You've got the rhythm now!
512
+ Try `/opsx:propose` on something you actually want to build. You've got the rhythm now!
498
513
  ```
499
514
 
500
515
  ---
@@ -508,9 +523,9 @@ If the user says they need to stop, want to pause, or seem disengaged:
508
523
  ```
509
524
  No problem! Your change is saved at the `changeRoot` reported by `openspec status --change "<name>" --json`.
510
525
 
511
- To pick up where we left off later:
512
- - `/openspec-continue-change <name>` - Resume artifact creation (if installed; otherwise `openspec status --change "<name>" --json` shows the next artifact)
513
- - `/openspec-apply-change <name>` - Jump to implementation (if tasks exist)
526
+ To pick up where we left off later, `openspec status --change "<name>" --json` shows exactly where the change stands.
527
+ - `/opsx:continue <name>` - Resume artifact creation
528
+ - `/opsx:apply <name>` - Jump to implementation (if tasks exist)
514
529
 
515
530
  The work won't be lost. Come back whenever you're ready.
516
531
  ```
@@ -524,25 +539,20 @@ If the user says they just want to see the commands or skip the tutorial:
524
539
  ```
525
540
  ## OpenSpec Quick Reference
526
541
 
527
- **Core workflow:**
542
+ **The commands you have installed:**
528
543
 
529
544
  | Command | What it does |
530
545
  |--------------------------|--------------------------------------------|
531
- | `/openspec-propose <name>` | Create a change and generate all artifacts |
532
- | `/openspec-explore` | Think through problems (no code changes) |
533
- | `/openspec-apply-change <name>` | Implement tasks |
534
- | `/openspec-archive-change <name>` | Archive when done |
535
-
536
- **Additional commands** (only if installed - availability depends on your profile):
537
-
538
- | Command | What it does |
539
- |---------------------------|-------------------------------------|
540
- | `/openspec-new-change <name>` | Start a new change, step by step |
541
- | `/openspec-continue-change <name>` | Continue an existing change |
542
- | `/openspec-ff-change <name>` | Fast-forward: all artifacts at once |
543
- | `/openspec-verify-change <name>` | Verify implementation |
544
-
545
- Try `/openspec-propose` to start your first change.
546
+ | `/opsx:propose <name>` | Create a change and generate all artifacts |
547
+ | `/opsx:explore` | Think through problems (no code changes) |
548
+ | `/opsx:apply <name>` | Implement tasks |
549
+ | `/opsx:archive <name>` | Archive when done |
550
+ | `/opsx:new <name>` | Start a new change, step by step |
551
+ | `/opsx:continue <name>` | Continue an existing change |
552
+ | `/opsx:ff <name>` | Fast-forward: all artifacts at once |
553
+ | `/opsx:verify <name>` | Verify implementation |
554
+
555
+ Try `/opsx:propose` to start your first change.
546
556
  ```
547
557
 
548
558
  Exit gracefully.
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: openspec-propose
3
- description: Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
3
+ description: Propose a new OpenSpec change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation. Also use when the user says "openspec propose" or "opsx propose".
4
4
  allowed-tools: Bash(openspec:*)
5
5
  license: MIT
6
6
  compatibility: Requires openspec CLI.
7
7
  metadata:
8
8
  author: openspec
9
9
  version: "1.0"
10
+ generatedBy: "1.13.1"
10
11
  ---
11
12
 
12
13
  Propose a new change - create the change and generate all artifacts in one step.
@@ -27,6 +28,17 @@ When the user is ready to implement, they must start the apply workflow explicit
27
28
 
28
29
  **Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
29
30
 
31
+ **Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
32
+
33
+ One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
34
+
35
+ Otherwise, with no root, what happens next depends on how this workflow was reached:
36
+
37
+ - **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or running its slash command. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
38
+ - **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or ran its slash command. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
39
+
40
+ In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
41
+
30
42
  **Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
31
43
 
32
44
  **Steps**
@@ -44,7 +56,7 @@ When the user is ready to implement, they must start the apply workflow explicit
44
56
 
45
57
  2. **Load project context**
46
58
 
47
- Run `openspec context --json` from the current working directory (or `openspec context --json --store "<store-id>"` when a registered store was explicitly selected). Use the returned `root.path` as the authoritative OpenSpec root. If context reports `no_openspec_root`, stop without creating or changing any files. Offer `openspec init` and wait for the user to request initialization. Do not initialize automatically or run `openspec new change`. After initialization, rerun this context check before continuing. For any other context failure, stop and report the error; do not fall back to the current directory or run later OpenSpec commands without the selected store.
59
+ Run `openspec context --json` from the current working directory (or `openspec context --json --store "<store-id>"` when a registered store was explicitly selected). Use the returned `root.path` as the authoritative OpenSpec root. If context reports `no_openspec_root`, stop without creating or changing any files and follow the **Project check** above for how this workflow was reached. Offer `openspec init` only for an explicit OpenSpec request, and wait for the user to request initialization. Do not initialize automatically or run `openspec new change`. After initialization, rerun this context check before continuing. For any other context failure, stop and report the error; do not fall back to the current directory or run later OpenSpec commands without the selected store.
48
60
 
49
61
  Only when context returns a resolved `root.path`, read `<root.path>/openspec/config.yaml`. Use `config.yml` only when `config.yaml` does not exist. If neither file exists, continue without project context. Do not fall back to `config.yml` if `config.yaml` is unreadable or invalid.
50
62
 
@@ -140,7 +152,7 @@ After completing all artifacts, summarize:
140
152
  - Change name and location
141
153
  - List of artifacts created with brief descriptions, plus any conditional artifact you skipped and why
142
154
  - What's ready: "All artifacts needed for implementation are ready."
143
- - Prompt: "The artifacts are ready for review. When you are ready, run `/openspec-apply-change` or ask me to apply this change."
155
+ - Prompt: "The artifacts are ready for review. When you are ready, run `/opsx:apply` or ask me to apply this change."
144
156
 
145
157
  **Artifact Creation Guidelines**
146
158
 
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: openspec-sync-specs
3
- description: Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change.
3
+ description: Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change. Also use when the user says "openspec sync" or "opsx sync".
4
4
  allowed-tools: Bash(openspec:*)
5
5
  license: MIT
6
6
  compatibility: Requires openspec CLI.
7
7
  metadata:
8
8
  author: openspec
9
9
  version: "1.0"
10
+ generatedBy: "1.13.1"
10
11
  ---
11
12
 
12
13
  Sync delta specs from a change to main specs.
@@ -15,6 +16,17 @@ This is an **agent-driven** operation - you will read delta specs and directly e
15
16
 
16
17
  **Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
17
18
 
19
+ **Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
20
+
21
+ One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
22
+
23
+ Otherwise, with no root, what happens next depends on how this workflow was reached:
24
+
25
+ - **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or running its slash command. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
26
+ - **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or ran its slash command. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
27
+
28
+ In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
29
+
18
30
  `<capability-path>` is the spec directory relative to `specs/` (for example, `user-auth` or `identity/user-auth`). Preserve the full path from each delta spec when resolving its main spec.
19
31
 
20
32
  **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.
@@ -30,7 +42,7 @@ This is an **agent-driven** operation - you will read delta specs and directly e
30
42
 
31
43
  When prompting, show changes that have delta specs (under `specs/` directory).
32
44
 
33
- Always announce: "Using change: <name>" and how to override (e.g., `/openspec-sync-specs <other>`).
45
+ Always announce: "Using change: <name>" and how to override (e.g., `/opsx:sync <other>`).
34
46
 
35
47
  2. **Resolve change context**
36
48
 
@@ -95,6 +107,13 @@ This is an **agent-driven** operation - you will read delta specs and directly e
95
107
 
96
108
  b. **Read the main spec** at `<planningHome.root>/openspec/specs/<capability-path>/spec.md` (may not exist yet)
97
109
 
110
+ **If it does not exist yet** (a new capability), match what `openspec archive` does:
111
+ only ADDED requirements may be applied - step d creates the spec from them.
112
+ MODIFIED and RENAMED have no requirement to act on, so stop the sync for that
113
+ capability and report that its main spec does not exist and only ADDED is allowed
114
+ for a new spec; never invent the missing requirement. REMOVED has nothing to
115
+ remove - skip it and warn.
116
+
98
117
  c. **Apply changes intelligently**:
99
118
 
100
119
  **ADDED Requirements:**
@@ -142,6 +161,14 @@ This is an **agent-driven** operation - you will read delta specs and directly e
142
161
  (this is what `openspec archive` does; it warns and moves on)
143
162
 
144
163
  d. **Create new main spec** if capability doesn't exist yet:
164
+ - Only when the delta has ADDED requirements to put in it and no MODIFIED or
165
+ RENAMED requirements blocked this capability in step b. Otherwise create nothing
166
+ and leave the specs directory untouched. For a REMOVED-only delta, if the change's
167
+ `.openspec.yaml` declares `retire_capabilities: true`, report it as already retired
168
+ and continue without recreating the spec. Without that marker, report the sync as blocked:
169
+ `openspec archive` rejects it with `Spec must have at least one requirement`.
170
+ An empty delta has no operations to sync; report it as blocked too.
171
+ Never write an empty `## Requirements` section.
145
172
  - Create `<planningHome.root>/openspec/specs/<capability-path>/spec.md`
146
173
  - Add Purpose section: copy the delta's `## Purpose` body verbatim when it has one
147
174
  (this is what `openspec archive` does); only write a brief TBD placeholder when it does not
@@ -166,6 +193,8 @@ This is an **agent-driven** operation - you will read delta specs and directly e
166
193
  **Delta Spec Format Reference**
167
194
 
168
195
  ```markdown
196
+ # Spec Delta
197
+
169
198
  ## Purpose
170
199
 
171
200
  Only on a delta that introduces a brand-new capability. Seeds the new main spec.
@@ -1,21 +1,33 @@
1
1
  ---
2
2
  name: openspec-update-change
3
- description: Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the user wants to revise a change's plan, fold new decisions into it, or reconcile its artifacts after an edit. Never edits code.
3
+ description: Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the user wants to revise a change's plan, fold new decisions into it, or reconcile its artifacts after an edit. Also use when the user says "openspec update change" or "opsx update". If the user means the openspec update CLI command, which refreshes generated files, run that command instead. Never edits code.
4
4
  allowed-tools: Bash(openspec:*)
5
5
  license: MIT
6
6
  compatibility: Requires openspec CLI.
7
7
  metadata:
8
8
  author: openspec
9
9
  version: "1.0"
10
+ generatedBy: "1.13.1"
10
11
  ---
11
12
 
12
13
  Revise a change's existing planning artifacts and keep them coherent. Never edit code.
13
14
 
14
15
  **Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
15
16
 
17
+ **Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
18
+
19
+ One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
20
+
21
+ Otherwise, with no root, what happens next depends on how this workflow was reached:
22
+
23
+ - **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or running its slash command. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
24
+ - **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or ran its slash command. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
25
+
26
+ In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
27
+
16
28
  **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.
17
29
 
18
- `/openspec-continue-change` is an optional workflow and may not be installed. Before suggesting it anywhere below, verify that it is available. If it is unavailable, `openspec status --change "<name>" --json` shows the next artifact and `openspec instructions "<artifact-id>" --change "<name>" --json` explains how to create it.
30
+ This workflow revises artifacts that already exist; `/opsx:continue` is what creates the ones that do not.
19
31
 
20
32
  **Steps**
21
33
 
@@ -34,7 +46,7 @@ Revise a change's existing planning artifacts and keep them coherent. Never edit
34
46
 
35
47
  Mark the most recently modified change as "(Recommended)" since it's likely what the user wants to update.
36
48
 
37
- Always announce: "Using change: <name>" and how to override (e.g., `/openspec-update-change <other>`).
49
+ Always announce: "Using change: <name>" and how to override (e.g., `/opsx:update <other>`).
38
50
 
39
51
  2. **Get the change's artifacts**
40
52
  ```bash
@@ -56,13 +68,14 @@ Revise a change's existing planning artifacts and keep them coherent. Never edit
56
68
 
57
69
  4. **Read and reconcile**
58
70
  - Read the artifact(s) the request touches and the change's other existing artifacts.
59
- - Apply the requested edit. Then check every other existing artifact against it - in ANY direction: an edit to a later artifact may require revising an earlier one, not only the other way around. Build order is a useful reading order, not a constraint on which artifacts may be revised.
71
+ - Draft the requested edit in the conversation, not in files. Work out exactly what it changes; step 5 owns every write. Then check every other existing artifact against the drafted edit - in ANY direction: an edit to a later artifact may require revising an earlier one, not only the other way around. Build order is a useful reading order, not a constraint on which artifacts may be revised.
60
72
  - Note everything that is now inconsistent, missing, or contradictory.
61
- - Revise only files that already exist (`existingOutputPaths`). Do NOT create artifacts that don't exist yet, and do NOT invent new files under a glob artifact - note them and point the user to `/openspec-continue-change` to create them.
62
- - If the change is already coherent, say so and make no edits.
73
+ - Propose revisions only to files that already exist (`existingOutputPaths`). Do NOT create artifacts that don't exist yet, and do NOT invent new files under a glob artifact - note them and point the user to `/opsx:continue` to create them.
74
+ - If the change is already coherent, say so and propose no revisions.
63
75
 
64
76
  5. **Confirm and apply, one artifact at a time**
65
- - Show each proposed revision and why. Write only after the user confirms.
77
+ - This step performs every artifact write in this workflow; no earlier step edits an artifact.
78
+ - Show each proposed revision and why - including the requested edit drafted in step 4. Write only after the user confirms.
66
79
  - If the user rejects a revision, do not write it - leave that artifact unchanged.
67
80
  - When a substantial rewrite is needed, get that artifact's rules and template first:
68
81
  ```bash
@@ -70,21 +83,21 @@ Revise a change's existing planning artifacts and keep them coherent. Never edit
70
83
  ```
71
84
 
72
85
  6. **Point to the next step (guidance only - NEVER act on it)**
73
- - Artifacts still missing -> suggest `/openspec-continue-change` to create them.
74
- - Change already implemented (tasks checked off / already applied) -> the code may no longer match the revised plan; suggest `/openspec-apply-change` to carry the delta into code.
75
- - Everything done and implemented -> suggest `/openspec-archive-change`.
86
+ - Artifacts still missing -> suggest `/opsx:continue` to create them.
87
+ - Change already implemented (tasks checked off / already applied) -> the code may no longer match the revised plan; suggest `/opsx:apply` to carry the delta into code.
88
+ - Everything done and implemented -> suggest `/opsx:archive`.
76
89
 
77
90
  **Output**
78
91
 
79
92
  After each invocation, show:
80
93
  - Which artifacts were revised (and which proposed revisions were rejected)
81
- - Anything deferred to `/openspec-continue-change` (not-yet-created artifacts or files)
94
+ - Anything deferred to `/opsx:continue` (not-yet-created artifacts or files)
82
95
  - Where the change stands and the recommended next command
83
96
 
84
97
  **Guardrails**
85
- - Planning artifacts only - NEVER edit implementation code. If the revised plan implies code changes, stop and point to `/openspec-apply-change`.
98
+ - Planning artifacts only - NEVER edit implementation code. If the revised plan implies code changes, stop and point to `/opsx:apply`.
86
99
  - Use the artifact ids and paths reported by `openspec status`; never branch on hardcoded artifact names.
87
100
  - Edit only the concrete files in `existingOutputPaths`; never write to a glob `resolvedOutputPath`.
88
- - Do not advance the build frontier: no new artifacts, no new files under glob artifacts - that is `/openspec-continue-change`'s job.
101
+ - Do not advance the build frontier: no new artifacts, no new files under glob artifacts - that is `/opsx:continue`'s job.
89
102
  - Confirm every edit with the user before writing.
90
- - If the request changes the change's *intent* rather than refining it, first verify whether the optional `/openspec-new-change` workflow is available. If it is, recommend starting fresh with `/openspec-new-change` (the "Update vs. Start Fresh" heuristic). If it is unavailable, ask for a distinct unused change name and recommend `openspec new change "<new-change-name>"` instead.
103
+ - If the request changes the change's *intent* rather than refining it, recommend starting fresh with `/opsx:new` (the "Update vs. Start Fresh" heuristic).
@@ -1,18 +1,30 @@
1
1
  ---
2
2
  name: openspec-verify-change
3
- description: Verify implementation matches change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving.
3
+ description: Verify implementation matches OpenSpec change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving. Also use when the user says "openspec verify" or "opsx verify".
4
4
  allowed-tools: Bash(openspec:*)
5
5
  license: MIT
6
6
  compatibility: Requires openspec CLI.
7
7
  metadata:
8
8
  author: openspec
9
9
  version: "1.0"
10
+ generatedBy: "1.13.1"
10
11
  ---
11
12
 
12
13
  Verify that an implementation matches the change artifacts (specs, tasks, design).
13
14
 
14
15
  **Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
15
16
 
17
+ **Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
18
+
19
+ One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
20
+
21
+ Otherwise, with no root, what happens next depends on how this workflow was reached:
22
+
23
+ - **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or running its slash command. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
24
+ - **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or ran its slash command. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
25
+
26
+ In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
27
+
16
28
  **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.
17
29
 
18
30
  **Steps**
@@ -28,7 +40,7 @@ Verify that an implementation matches the change artifacts (specs, tasks, design
28
40
  Include the schema used for each change if available.
29
41
  Mark changes with incomplete tasks as "(In Progress)".
30
42
 
31
- Always announce: "Using change: <name>" and how to override (e.g., `/openspec-verify-change <other>`).
43
+ Always announce: "Using change: <name>" and how to override (e.g., `/opsx:verify <other>`).
32
44
 
33
45
  2. **Check status to understand the schema**
34
46
  ```bash
@@ -60,7 +72,9 @@ Verify that an implementation matches the change artifacts (specs, tasks, design
60
72
 
61
73
  **Task Completion**:
62
74
  - If `contextFiles.tasks` exists, read every file path in it
63
- - Parse checkboxes: `- [ ]` (incomplete) vs `- [x]` (complete)
75
+ - Parse checkboxes: complete means the box holds only `x`/`X`, ignoring
76
+ spacing (`- [ x]` is complete); every other marker is incomplete
77
+ (`- [ ]`, `- []`, and unfamiliar ones such as `- [~]` or `- [-]`)
64
78
  - Count complete vs total tasks
65
79
  - If incomplete tasks exist:
66
80
  - Add CRITICAL issue for each incomplete task
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jspg-ai/coding-bb",
3
- "version": "0.0.3-beta.6",
3
+ "version": "0.0.3-beta.8",
4
4
  "description": "整合业界热门且高价值的工具、框架与技能,为 AI CODING AGENT 提供统一的行为准则与工作流,辅助开发者将需求高效落地为符合规范的代码",
5
5
  "main": "cbb/lib/install/init.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
- {
2
- "sha": "b36e0829c6d0140e93cfef2ca599b1b07d4a7797",
3
- "branch": "main",
1
+ {
2
+ "tag": "v6.4.1",
3
+ "sha": "b92c4fa87ea1252077a7f7d3bf420e52325dd25e",
4
4
  "repo": "obra/superpowers",
5
- "updatedAt": "2026-09-12T00:00:00.000Z"
5
+ "updatedAt": "2026-09-19T13:23:51.623Z"
6
6
  }
@@ -11,12 +11,48 @@ Start by classifying how much process the request needs, then work
11
11
  through your path: understand the context, refine the idea, present a
12
12
  design, and get your human partner's approval.
13
13
 
14
+ ## Establish Shared Understanding
15
+
16
+ The outcome of brainstorming is an understanding your human partner can
17
+ recognize and correct, grounded in what they want to accomplish.
18
+
19
+ 1. **Discover intent.** Use the request and available context to identify
20
+ the intended outcome, who it is for, and what success looks like. When
21
+ that information is missing, ask one focused question about purpose or
22
+ intended use before proposing features or an approach. Knowing the app
23
+ genre does not tell you why your partner wants it. Gathering missing
24
+ requirements does not ask them to authorize the task again.
25
+ 2. **Write back your understanding.** Summarize the intended outcome,
26
+ relevant constraints, and success criteria in a short note your partner
27
+ can assess. Separate what they said from assumptions. Invite correction
28
+ and incorporate their answer before treating this as the design brief.
29
+ 3. **Carry intent into the design.** Preserve the agreed understanding in
30
+ the selected path's design artifact: the written spec for architectural
31
+ work, or the in-chat design/probe for bounded work and spikes. Check
32
+ proposed features and technical choices against that understanding.
33
+
34
+ When the request already supplies the purpose and constraints, reflect
35
+ that understanding instead of asking the same questions again. Keep the
36
+ note concise; its accuracy and the opportunity to correct it matter.
37
+
14
38
  <HARD-GATE>
15
- Do NOT invoke any implementation skill, write any code, scaffold any
16
- project, or take any implementation action until you have told your
17
- human partner what you intend and they have approved it. This applies
18
- to EVERY task on EVERY path below — the ceremony scales with the task;
19
- the approval gate never does.
39
+ Before taking any implementation action, including invoking an
40
+ implementation skill, writing product code, scaffolding, installing
41
+ product dependencies, or creating an external project, complete the
42
+ selected path's prerequisites:
43
+
44
+ - Spike: the human partner approves the question and probe.
45
+ - Bounded: the human partner approves the short in-chat design.
46
+ - Architectural: the human partner reviews and approves the written spec,
47
+ then reviews the written implementation plan and selects its execution
48
+ method. Conversational design approval only permits writing the spec;
49
+ written-spec approval only permits invoking writing-plans.
50
+
51
+ A reply approves the stage actually presented. Approval of an idea or
52
+ feature scope does not approve artifacts that do not exist yet. Resume
53
+ at the earliest incomplete stage; do not turn one approval into permission
54
+ to skip the rest of the selected path. Read-only project exploration is
55
+ allowed while those prerequisites remain incomplete.
20
56
  </HARD-GATE>
21
57
 
22
58
  ## Three Paths
@@ -53,18 +89,17 @@ stop, say so, and step up. Nothing downgrades mid-task.
53
89
 
54
90
  ## Anti-Pattern: "Too Simple To Need Approval"
55
91
 
56
- Every path ends with your human partner approving your intent before
57
- implementation. A todo list, a single-function utility, a config
58
- change the design may be two sentences in chat, but you MUST present
59
- it and get approval. "Simple" tasks are where unexamined assumptions
60
- cause the most wasted work. What scales with simplicity is the
61
- artifact, never the approval.
92
+ Every path ends with your human partner approving the required design
93
+ before implementation. A bounded change may need only two sentences in
94
+ chat. A new todo-list project is architectural and requires the written
95
+ spec and planning handoffs. Scale the artifact to the selected path;
96
+ complete that path's reviews before implementation.
62
97
 
63
98
  ## Red Flags
64
99
 
65
100
  | Thought | Reality |
66
101
  |---------|---------|
67
- | "This is too simple to need a design" | Simple means a short design, not no design. Two sentences in chat, then approval. |
102
+ | "This is too simple to need a design" | Follow the selected path: a bounded change gets a short chat design; an architectural change gets the written spec and planning handoffs. |
68
103
  | "I'll call it bounded and skip the spec" | Reaching for a label to skip work IS the doubt — take the heavier path. |
69
104
  | "It's bounded and the design is obvious — I'll start while they read it" | The gate is the approval, not the design's length. Present, then stop until you hear yes. |
70
105
  | "I understand this kind of app, so it's bounded" | Bounded measures the repo, not your familiarity. A new project has no existing flow — it is architectural. |