@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
@@ -4,109 +4,120 @@ description: Continue working on a change - create the next artifact (Experiment
4
4
  category: Workflow
5
5
  tags: [workflow, artifacts, experimental]
6
6
  ---
7
- Continue working on a change by creating the next artifact.
8
-
9
- **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`). 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.
10
-
11
- **Input**: Optionally specify a change name after `/opsx:continue` (e.g., `/opsx:continue add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
12
-
13
- **Steps**
14
-
15
- 1. **Select the change**
16
-
17
- If a name is provided, use it. Otherwise:
18
- - Infer from conversation context if the user mentioned a change
19
- - Auto-select if only one active change exists
20
- - If ambiguous, run `openspec list --json` to get available changes sorted by most recently modified, and ask the user to select one
21
-
22
- When prompting, 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
- Always announce: "Using change: <name>" and how to override (e.g., `/opsx:continue <other>`).
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", "skipped", "ready", "blocked")
39
- - `isPlanningComplete`: Boolean indicating if all planning artifacts are complete. Older CLI versions expose the same value as `isComplete`.
40
- - `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context. Use these instead of assuming repo-local paths.
41
-
42
- 3. **Act based on status**:
43
-
44
- ---
45
-
46
- **If all planning artifacts are complete (`isPlanningComplete: true`, or legacy `isComplete: true`)**:
47
- - Congratulate the user
48
- - Show final status including the schema used
49
- - Suggest: "Planning is complete! You can now implement this change with `/opsx:apply`. Once implementation and any tracked work are complete, archive it with `/opsx:archive`."
50
- - STOP
51
-
52
- ---
53
-
54
- **If artifacts are ready to create** (status shows artifacts with `status: "ready"`):
55
- - Pick the FIRST artifact with `status: "ready"` from the status output
56
- - Get its instructions:
57
- ```bash
58
- openspec instructions <artifact-id> --change "<name>" --json
59
- ```
60
- - Parse the JSON. The key fields are:
61
- - `context`: Project background (constraints for you - do NOT include in output)
62
- - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
63
- - `template`: The structure to use for your output file
64
- - `instruction`: Schema-specific guidance
65
- - `resolvedOutputPath`: Resolved path or pattern to write the artifact
66
- - `dependencies`: Completed artifacts to read for context (entries with `skipped: true` have no files - do not look for them)
67
- - `skipped`/`warning`: present when the change declares skip_specs and this artifact must NOT be created - pick another artifact
68
- - **Create the artifact file**:
69
- - Read any completed dependency files for context - always re-read them from disk, even if you saw them earlier in the conversation (the user may have edited them)
70
- - If the `instruction` field delegates creation to a specific skill or command, invoke it to produce the artifact instead of writing the file yourself, then verify the artifact file exists at `resolvedOutputPath`
71
- - Otherwise use `template` as the structure - fill in its sections
72
- - Apply `context` and `rules` as constraints when writing - but do NOT copy them into the file
73
- - Write to the `resolvedOutputPath` specified in instructions. If it is a glob pattern, choose the concrete file path using the schema instruction and the change's context
74
- - Show what was created and what's now unlocked
75
- - STOP after creating ONE artifact
76
-
77
- ---
78
-
79
- **If no artifacts are ready (all blocked)**:
80
- - This shouldn't happen with a valid schema
81
- - Show status and suggest checking for issues
82
-
83
- 4. **After creating an artifact, show progress**
84
- ```bash
85
- openspec status --change "<name>"
86
- ```
87
-
88
- **Output**
89
-
90
- After each invocation, show:
91
- - Which artifact was created
92
- - Schema workflow being used
93
- - Current progress (N/M complete)
94
- - What artifacts are now unlocked
95
- - Prompt: "Run `/opsx:continue` to create the next artifact"
96
-
97
- **Artifact Creation Guidelines**
98
-
99
- The artifact types and their purpose depend on the schema. The `instruction` field from the instructions output is the authoritative guidance for each artifact - follow it even when the artifact has a familiar name (proposal.md, tasks.md, etc.), since custom schemas may define different content or a different process for the same file names.
100
-
101
- If the `instruction` field directs you to use a specific skill or command to create the artifact, invoke it instead of writing the artifact directly.
102
-
103
- **Guardrails**
104
- - Create ONE artifact per invocation
105
- - Always read dependency artifacts before creating a new one - re-read from disk, not from conversation memory (files may have changed since you last saw them)
106
- - Never skip artifacts or create out of order
107
- - If context is unclear, ask the user before creating
108
- - Verify the artifact file exists after writing before marking progress
109
- - Use the schema's artifact sequence, don't assume specific artifact names
110
- - **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
111
- - Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
7
+ Continue working on a change by creating the next artifact.
8
+
9
+ **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.
10
+
11
+ **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.
12
+
13
+ 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`.
14
+
15
+ Otherwise, with no root, what happens next depends on how this workflow was reached:
16
+
17
+ - **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.
18
+ - **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.
19
+
20
+ 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.
21
+
22
+ **Input**: Optionally specify a change name after `/opsx:continue` (e.g., `/opsx:continue add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
23
+
24
+ **Steps**
25
+
26
+ 1. **Select the change**
27
+
28
+ If a name is provided, use it. Otherwise:
29
+ - Infer from conversation context if the user mentioned a change
30
+ - Auto-select if only one active change exists
31
+ - If ambiguous, run `openspec list --json` to get available changes sorted by most recently modified, and ask the user to select one
32
+
33
+ When prompting, present the top 3-4 most recently modified changes as options, showing:
34
+ - Change name
35
+ - Schema (from `schema` field if present, otherwise "spec-driven")
36
+ - Status (e.g., "0/5 tasks", "complete", "no tasks")
37
+ - How recently it was modified (from `lastModified` field)
38
+
39
+ Mark the most recently modified change as "(Recommended)" since it's likely what the user wants to continue.
40
+
41
+ Always announce: "Using change: <name>" and how to override (e.g., `/opsx:continue <other>`).
42
+
43
+ 2. **Check current status**
44
+ ```bash
45
+ openspec status --change "<name>" --json
46
+ ```
47
+ Parse the JSON to understand current state. The response includes:
48
+ - `schemaName`: The workflow schema being used (e.g., "spec-driven")
49
+ - `artifacts`: Array of artifacts with their status ("done", "skipped", "ready", "blocked")
50
+ - `isPlanningComplete`: Boolean indicating if all planning artifacts are complete. Older CLI versions expose the same value as `isComplete`.
51
+ - `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context. Use these instead of assuming repo-local paths.
52
+
53
+ 3. **Act based on status**:
54
+
55
+ ---
56
+
57
+ **If all planning artifacts are complete (`isPlanningComplete: true`, or legacy `isComplete: true`)**:
58
+ - Congratulate the user
59
+ - Show final status including the schema used
60
+ - Suggest: "Planning is complete! You can now implement this change with `/opsx:apply`. Once implementation and any tracked work are complete, archive it with `/opsx:archive`."
61
+ - STOP
62
+
63
+ ---
64
+
65
+ **If artifacts are ready to create** (status shows artifacts with `status: "ready"`):
66
+ - Pick the FIRST artifact with `status: "ready"` from the status output
67
+ - Get its instructions:
68
+ ```bash
69
+ openspec instructions <artifact-id> --change "<name>" --json
70
+ ```
71
+ - Parse the JSON. The key fields are:
72
+ - `context`: Project background (constraints for you - do NOT include in output)
73
+ - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
74
+ - `template`: The structure to use for your output file
75
+ - `instruction`: Schema-specific guidance
76
+ - `resolvedOutputPath`: Resolved path or pattern to write the artifact
77
+ - `dependencies`: Completed artifacts to read for context (entries with `skipped: true` have no files - do not look for them)
78
+ - `skipped`/`warning`: present when the change declares skip_specs and this artifact must NOT be created - pick another artifact
79
+ - **Create the artifact file**:
80
+ - Read any completed dependency files for context - always re-read them from disk, even if you saw them earlier in the conversation (the user may have edited them)
81
+ - If the `instruction` field delegates creation to a specific skill or command, invoke it to produce the artifact instead of writing the file yourself, then verify the artifact file exists at `resolvedOutputPath`
82
+ - Otherwise use `template` as the structure - fill in its sections
83
+ - Apply `context` and `rules` as constraints when writing - but do NOT copy them into the file
84
+ - Write to the `resolvedOutputPath` specified in instructions. If it is a glob pattern, choose the concrete file path using the schema instruction and the change's context
85
+ - Show what was created and what's now unlocked
86
+ - STOP after creating ONE artifact
87
+
88
+ ---
89
+
90
+ **If no artifacts are ready (all blocked)**:
91
+ - This shouldn't happen with a valid schema
92
+ - Show status and suggest checking for issues
93
+
94
+ 4. **After creating an artifact, show progress**
95
+ ```bash
96
+ openspec status --change "<name>"
97
+ ```
98
+
99
+ **Output**
100
+
101
+ After each invocation, show:
102
+ - Which artifact was created
103
+ - Schema workflow being used
104
+ - Current progress (N/M complete)
105
+ - What artifacts are now unlocked
106
+ - Prompt: "Run `/opsx:continue` to create the next artifact"
107
+
108
+ **Artifact Creation Guidelines**
109
+
110
+ The artifact types and their purpose depend on the schema. The `instruction` field from the instructions output is the authoritative guidance for each artifact - follow it even when the artifact has a familiar name (proposal.md, tasks.md, etc.), since custom schemas may define different content or a different process for the same file names.
111
+
112
+ If the `instruction` field directs you to use a specific skill or command to create the artifact, invoke it instead of writing the artifact directly.
113
+
114
+ **Guardrails**
115
+ - Create ONE artifact per invocation
116
+ - Always read dependency artifacts before creating a new one - re-read from disk, not from conversation memory (files may have changed since you last saw them)
117
+ - Never skip artifacts or create out of order
118
+ - If context is unclear, ask the user before creating
119
+ - Verify the artifact file exists after writing before marking progress
120
+ - Use the schema's artifact sequence, don't assume specific artifact names
121
+ - **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
122
+ - Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
112
123
  - These guide what you write, but should never appear in the output