@jspg-ai/coding-bb 0.0.3-beta.3 → 0.0.3-beta.31
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.
- package/cbb/dev-standards/rules/cbb-ai-behavior.md +135 -116
- package/cbb/lib/external/index.js +228 -0
- package/cbb/lib/install/agents-nav.js +92 -0
- package/cbb/lib/install/claude-code.js +7 -2
- package/cbb/lib/install/command-skill.js +105 -0
- package/cbb/lib/install/init.js +502 -168
- package/cbb/lib/install/minimax.js +60 -0
- package/cbb/lib/install/opencode.js +3 -5
- package/cbb/lib/install/qoder.js +1 -3
- package/cbb/lib/install/rule-rewrite.js +27 -0
- package/cbb/lib/install/setup-decision.js +48 -0
- package/cbb/lib/install/tool-selection.js +45 -0
- package/cbb/lib/install/trae.js +43 -0
- package/cbb/lib/install/workbuddy.js +36 -0
- package/cbb/lib/install/workspaces.js +21 -17
- package/cbb/lib/openspec/index.js +337 -554
- package/cbb/lib/superpowers/index.js +246 -265
- package/cbb/lib/utils/check-update.js +17 -2
- package/cbb/lib/utils/githook.js +226 -0
- package/cbb/lib/utils/gitignore.js +16 -3
- package/cbb/lib/utils/plugin-hook.js +92 -0
- package/cbb/lib/utils/settings.js +17 -4
- package/cbb/lib/utils/tar.js +92 -0
- package/cbb/lib/utils/upstream.js +90 -0
- package/cbb/worktrees/_shared/scripts/check-local-state.js +114 -0
- package/cbb/worktrees/_shared/scripts/find-target-worktree.js +148 -96
- package/cbb/worktrees/_shared/scripts/find-workspace-root.js +7 -7
- package/cbb/worktrees/_shared/scripts/install-git-hook.js +70 -0
- package/cbb/worktrees/_shared/scripts/junction-ai-config.js +127 -0
- package/cbb/worktrees/_shared/scripts/start-local.js +180 -0
- package/cbb/worktrees/skills/cbb-local-mode/SKILL.md +158 -0
- package/cbb/worktrees/skills/cbb-local-mode/scripts/check-local-state.js +114 -0
- package/cbb/worktrees/skills/cbb-local-mode/scripts/install-git-hook.js +70 -0
- package/cbb/worktrees/skills/cbb-local-mode/scripts/silence-popup.js +23 -0
- package/cbb/worktrees/skills/cbb-local-mode/scripts/start-local.js +180 -0
- package/cbb/worktrees/skills/cbb-worktree-close/SKILL.md +60 -43
- package/cbb/worktrees/skills/cbb-worktree-close/scripts/check-env.js +3 -3
- package/cbb/worktrees/skills/cbb-worktree-close/scripts/check-unarchived.js +75 -48
- package/cbb/worktrees/skills/cbb-worktree-close/scripts/delete-branches.js +1 -1
- package/cbb/worktrees/skills/cbb-worktree-close/scripts/discover-apps.js +14 -5
- package/cbb/worktrees/skills/cbb-worktree-close/scripts/find-target-worktree.js +148 -96
- package/cbb/worktrees/skills/cbb-worktree-close/scripts/find-workspace-root.js +7 -7
- package/cbb/worktrees/skills/cbb-worktree-close/scripts/remove-worktrees.js +13 -4
- package/cbb/worktrees/skills/cbb-worktree-close/scripts/safety-check.js +11 -2
- package/cbb/worktrees/skills/cbb-worktree-init/SKILL.md +138 -129
- package/cbb/worktrees/skills/cbb-worktree-init/scripts/check-env.js +1 -1
- package/cbb/worktrees/skills/cbb-worktree-init/scripts/check-repos.js +2 -2
- package/cbb/worktrees/skills/cbb-worktree-init/scripts/create-branches.js +33 -8
- package/cbb/worktrees/skills/cbb-worktree-init/scripts/create-worktrees.js +60 -46
- package/cbb/worktrees/skills/cbb-worktree-init/scripts/find-workspace-root.js +7 -7
- package/cbb/worktrees/skills/cbb-worktree-init/scripts/install-git-hook.js +70 -0
- package/cbb/worktrees/skills/cbb-worktree-init/scripts/junction-ai-config.js +127 -0
- package/cbb/worktrees/skills/cbb-worktree-init/scripts/parse-config.js +7 -7
- package/cbb/worktrees/skills/cbb-worktree-init/scripts/push-branches.js +3 -3
- package/cbb/worktrees/skills/cbb-worktree-init/scripts/sync-repos.js +11 -7
- package/cbb/worktrees/skills/cbb-worktree-init/scripts/update-gitignore.js +37 -9
- package/cbb/worktrees/skills/cbb-worktree-push/SKILL.md +140 -71
- package/cbb/worktrees/skills/cbb-worktree-push/scripts/commit-worktrees.js +70 -12
- package/cbb/worktrees/skills/cbb-worktree-push/scripts/find-target-worktree.js +148 -96
- package/cbb/worktrees/skills/cbb-worktree-push/scripts/find-workspace-root.js +7 -7
- package/cbb/worktrees/skills/cbb-worktree-push/scripts/make-mr-urls.js +211 -0
- package/cbb/worktrees/skills/cbb-worktree-push/scripts/push-worktrees.js +67 -20
- package/config/{workspace-config.sample.json → CBB-WORKSPACE.sample.json} +1 -1
- package/config/openspec/schemas/spec-driven/schema.yaml +40 -30
- package/config/openspec/schemas/spec-driven/templates/design.md +0 -18
- package/config/openspec/schemas/spec-driven/templates/proposal.md +4 -3
- package/config/upstream-mirrors.json +17 -0
- package/config/workspace-agents.sample.md +4 -33
- package/external/frontend-design/.version +6 -0
- package/external/frontend-design/LICENSE.txt +177 -0
- package/external/frontend-design/SKILL.md +71 -0
- package/openspec/.version +2 -3
- package/openspec/commands/apply.md +189 -175
- package/openspec/commands/archive.md +244 -216
- package/openspec/commands/bulk-archive.md +362 -327
- package/openspec/commands/continue.md +115 -105
- package/openspec/commands/explore.md +230 -199
- package/openspec/commands/ff.md +115 -104
- package/openspec/commands/new.md +74 -63
- package/openspec/commands/onboard.md +562 -548
- package/openspec/commands/propose.md +161 -150
- package/openspec/commands/sync.md +277 -249
- package/openspec/commands/update.md +98 -80
- package/openspec/commands/verify.md +206 -162
- package/openspec/skills/openspec-apply-change/SKILL.md +20 -5
- package/openspec/skills/openspec-archive-change/SKILL.md +40 -11
- package/openspec/skills/openspec-bulk-archive-change/SKILL.md +46 -9
- package/openspec/skills/openspec-continue-change/SKILL.md +14 -3
- package/openspec/skills/openspec-explore/SKILL.md +22 -10
- package/openspec/skills/openspec-ff-change/SKILL.md +15 -3
- package/openspec/skills/openspec-new-change/SKILL.md +13 -1
- package/openspec/skills/openspec-onboard/SKILL.md +58 -43
- package/openspec/skills/openspec-propose/SKILL.md +15 -3
- package/openspec/skills/openspec-sync-specs/SKILL.md +31 -2
- package/openspec/skills/openspec-update-change/SKILL.md +34 -15
- package/openspec/skills/openspec-verify-change/SKILL.md +72 -26
- package/package.json +3 -2
- package/superpowers/.version +4 -4
- package/superpowers/skills/brainstorming/SKILL.md +47 -12
- package/superpowers/skills/brainstorming/scripts/frame-template.html +213 -213
- package/superpowers/skills/brainstorming/scripts/server.cjs +723 -723
- package/superpowers/skills/brainstorming/visual-companion.md +6 -6
- package/superpowers/skills/diagnosing-superpowers/SKILL.md +120 -0
- package/superpowers/skills/diagnosing-superpowers/prompts/analyst-common.md +38 -0
- package/superpowers/skills/diagnosing-superpowers/prompts/cost-and-time.md +28 -0
- package/superpowers/skills/diagnosing-superpowers/prompts/plan-adherence.md +29 -0
- package/superpowers/skills/diagnosing-superpowers/prompts/quality-evidence.md +26 -0
- package/superpowers/skills/diagnosing-superpowers/prompts/repeated-work.md +30 -0
- package/superpowers/skills/diagnosing-superpowers/prompts/request-conflicts.md +20 -0
- package/superpowers/skills/diagnosing-superpowers/prompts/scrub-audit.md +33 -0
- package/superpowers/skills/diagnosing-superpowers/prompts/scrub.md +29 -0
- package/superpowers/skills/diagnosing-superpowers/prompts/similar-session.md +38 -0
- package/superpowers/skills/diagnosing-superpowers/prompts/skill-timeline.md +30 -0
- package/superpowers/skills/diagnosing-superpowers/prompts/stumbles.md +28 -0
- package/superpowers/skills/diagnosing-superpowers/references/context-safety.md +22 -0
- package/superpowers/skills/diagnosing-superpowers/references/github-issues.md +47 -0
- package/superpowers/skills/diagnosing-superpowers/references/redaction-policy.md +34 -0
- package/superpowers/skills/diagnosing-superpowers/references/session-discovery.md +31 -0
- package/superpowers/skills/diagnosing-superpowers/templates/bundle-README.md +77 -0
- package/superpowers/skills/diagnosing-superpowers/templates/case.md +64 -0
- package/superpowers/skills/diagnosing-superpowers/templates/issue.md +51 -0
- package/superpowers/skills/diagnosing-superpowers/templates/report.md +82 -0
- package/superpowers/skills/executing-plans/SKILL.md +350 -41
- package/superpowers/skills/executing-plans/scripts/task-done +52 -0
- package/superpowers/skills/executing-plans/scripts/task-start +28 -0
- package/superpowers/skills/requesting-code-review/SKILL.md +1 -1
- package/superpowers/skills/requesting-code-review/code-reviewer.md +17 -0
- package/superpowers/skills/subagent-driven-development/SKILL.md +18 -18
- package/superpowers/skills/subagent-driven-development/re-review-prompt.md +1 -1
- package/superpowers/skills/subagent-driven-development/scripts/review-package +53 -46
- package/superpowers/skills/subagent-driven-development/scripts/sdd-workspace +82 -40
- package/superpowers/skills/subagent-driven-development/scripts/task-brief +43 -41
- package/superpowers/skills/subagent-driven-development/task-reviewer-prompt.md +2 -2
- package/superpowers/skills/systematic-debugging/root-cause-tracing.md +1 -1
- package/superpowers/skills/test-driven-development/SKILL.md +10 -0
- package/superpowers/skills/using-superpowers/SKILL.md +2 -0
- package/superpowers/skills/using-superpowers/references/claude-code-tools.md +29 -0
- package/superpowers/skills/using-superpowers/references/muse-tools.md +35 -0
- package/superpowers/skills/writing-plans/SKILL.md +62 -29
- package/superpowers/skills/writing-skills/SKILL.md +4 -2
- package/superpowers/skills/writing-skills/graphviz-conventions.dot +171 -171
- package/cbb/worktrees/commands/worktree-close.md +0 -64
- package/cbb/worktrees/commands/worktree-init.md +0 -51
- package/cbb/worktrees/commands/worktree-push.md +0 -42
- package/superpowers/skills/writing-plans/plan-document-reviewer-prompt.md +0 -49
|
@@ -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.2"
|
|
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**
|
|
@@ -24,11 +36,11 @@ Verify that an implementation matches the change artifacts (specs, tasks, design
|
|
|
24
36
|
- Auto-select if only one active change exists
|
|
25
37
|
- If ambiguous, run `openspec list --json` to get available changes and ask the user to select one
|
|
26
38
|
|
|
27
|
-
When prompting, show changes
|
|
39
|
+
When prompting, show all active changes returned by the list, including changes with `status: "no-tasks"`.
|
|
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., `/
|
|
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
|
|
@@ -45,7 +57,9 @@ Verify that an implementation matches the change artifacts (specs, tasks, design
|
|
|
45
57
|
openspec instructions apply --change "<name>" --json
|
|
46
58
|
```
|
|
47
59
|
|
|
48
|
-
This returns the change directory
|
|
60
|
+
This returns the change directory, `contextFiles` (artifact ID -> array of concrete file paths), `taskTrackingConfigured`, and top-level `tasks` and `progress` aggregated from every concrete file matched by the schema's `apply.tracks` configuration that could be read. Read all available artifacts from `contextFiles`.
|
|
61
|
+
|
|
62
|
+
Treat apply `state` and `instruction` as context, not a verification verdict. Do not implement tasks or archive the change during verification.
|
|
49
63
|
|
|
50
64
|
4. **Initialize verification report structure**
|
|
51
65
|
|
|
@@ -56,30 +70,59 @@ Verify that an implementation matches the change artifacts (specs, tasks, design
|
|
|
56
70
|
|
|
57
71
|
Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.
|
|
58
72
|
|
|
73
|
+
Verification is advisory. Respect intentional omissions such as `skip_specs: true`, optional design documents, and schemas without task tracking. Do not require or invent optional or intentionally omitted artifacts to obtain a clean report. `Not verified` describes a limit of this report, not a new archive prerequisite. Archive retains its own checks and user-confirmation behavior.
|
|
74
|
+
|
|
75
|
+
Mark checks the schema does not define, or artifacts the status reports as intentionally skipped, as **Not applicable**. The correctness checks of a change whose readable delta specs contain REMOVED or RENAMED requirements but no ADDED or MODIFIED requirements are also **Not applicable** (see step 6). Exclude them from skipped-check counts and the archive-readiness assessment. Reserve **Not verified** for applicable checks whose evidence is missing or unusable.
|
|
76
|
+
|
|
77
|
+
If only task evidence is available for applicable checks, verify task completion only and mark the remaining applicable checks, including **Code Pattern Consistency**, as not verified with the reason "Only task evidence available".
|
|
78
|
+
|
|
79
|
+
If artifacts cannot be read or contain no usable requirements, scenarios, or design decisions, mark the affected checks as not verified with the specific reason. Continue checks supported by the remaining evidence, but a partially checked input set is not a fully verified check. Missing requirements affect Spec Coverage and Requirement Implementation Mapping; missing scenarios affect Scenario Coverage; missing design decisions affect Design Adherence.
|
|
80
|
+
|
|
59
81
|
5. **Verify Completeness**
|
|
60
82
|
|
|
61
83
|
**Task Completion**:
|
|
62
|
-
- If `
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
- If
|
|
66
|
-
|
|
84
|
+
- If `taskTrackingConfigured` is false, report **Task Completion** as not applicable. Do not treat empty `tasks` as missing evidence.
|
|
85
|
+
- Otherwise, use the top-level `tasks` and `progress` fields. They already aggregate every readable concrete file matched by `apply.tracks`, regardless of the tracked artifact's ID; do not infer tracking from a `contextFiles` key.
|
|
86
|
+
- If `unavailableTrackingFiles` is nonempty, mark **Task Completion** as not verified and include every unavailable path and reason. Continue using any readable task evidence, but do not infer completion from the partial `tasks` and `progress` fields.
|
|
87
|
+
- If `taskTrackingConfigured` is true and `tasks` is empty, mark **Task Completion** as not verified and record the reason from apply `state` and `instruction`. Nonzero totals alone do not establish evaluable task descriptions.
|
|
88
|
+
- Report complete vs total tasks from `progress`.
|
|
89
|
+
- If `progress.remaining` is greater than 0:
|
|
90
|
+
- Add CRITICAL issue for each listed incomplete task. If the remaining count exceeds the listed incomplete tasks, also report the incomplete checkboxes without descriptions and recommend adding descriptions and completing them. Do not infer completion from the listed tasks alone.
|
|
67
91
|
- Recommendation: "Complete task: <description>" or "Mark as done if already implemented"
|
|
68
92
|
|
|
69
93
|
**Spec Coverage**:
|
|
94
|
+
- If status marks the spec artifact skipped by `skip_specs: true`, or the schema defines no spec artifact, report the spec-dependent checks as not applicable.
|
|
95
|
+
- Otherwise, `contextFiles` is keyed by artifact id, and artifact ids come from the active schema. If `contextFiles.specs` is absent or empty, mark **Spec Coverage**, **Requirement Implementation Mapping**, and **Scenario Coverage** as not verified; do not treat any of them as clean.
|
|
70
96
|
- If delta specs exist in `contextFiles.specs`:
|
|
71
|
-
- Extract all requirements (marked with "### Requirement:")
|
|
72
|
-
- For each requirement:
|
|
97
|
+
- Extract all requirements (marked with "### Requirement:", or listed as `FROM:`/`TO:` pairs under `## RENAMED Requirements`) and note the delta section each one sits under: `## ADDED`, `## MODIFIED`, `## REMOVED`, or `## RENAMED Requirements`. The section decides what the check looks for.
|
|
98
|
+
- For each ADDED or MODIFIED requirement (for MODIFIED, check the text in the delta, not the old wording):
|
|
73
99
|
- Search codebase for keywords related to the requirement
|
|
74
100
|
- Assess if implementation likely exists
|
|
75
|
-
- If requirements appear unimplemented:
|
|
101
|
+
- If ADDED or MODIFIED requirements appear unimplemented:
|
|
76
102
|
- Add CRITICAL issue: "Requirement not found: <requirement name>"
|
|
77
103
|
- Recommendation: "Implement requirement X: <description>"
|
|
104
|
+
- For each REMOVED requirement, the change asks for the behavior to be gone, so invert the check:
|
|
105
|
+
- Search codebase for the removed behavior. Matches in `openspec/` artifacts or docs, or in code that serves only the Migration note or an ADDED requirement, are not evidence by themselves. Report any code path that still delivers the removed behavior, including one shared with an ADDED requirement.
|
|
106
|
+
- Finding no implementation is the expected result. Never report a REMOVED requirement as "Requirement not found" or recommend implementing it.
|
|
107
|
+
- If the behavior is still present:
|
|
108
|
+
- Add CRITICAL issue: "Removed requirement still implemented: <requirement name>"
|
|
109
|
+
- Recommendation: "Remove the remaining implementation at <file>:<lines>, following the requirement's Migration note if it has one"
|
|
110
|
+
- For each RENAMED entry (`FROM:`/`TO:`), the name changes but the behavior stays, so check the TO requirement for that unchanged behavior:
|
|
111
|
+
- Do not report the FROM name as missing, and do not require code symbols, identifiers, or file names to be renamed.
|
|
112
|
+
- If the TO name also appears under MODIFIED, its behavior is checked there against the MODIFIED text; skip it here.
|
|
113
|
+
- Otherwise, read the baseline requirement in the main spec at `<planningHome.root>/openspec/specs/<capability-path>/spec.md`, using the same capability path as the delta spec: the requirement under the FROM name, or under the TO name only when the FROM name is absent because the main spec is already synced. Its body and scenarios are the evidence for the behavior the TO requirement keeps.
|
|
114
|
+
- Search codebase for that behavior and assess if it is still implemented.
|
|
115
|
+
- If it appears unimplemented:
|
|
116
|
+
- Add CRITICAL issue: "Renamed requirement not found: <TO name>"
|
|
117
|
+
- Recommendation: "Restore the behavior of <TO name> (renamed from <FROM name>); a rename must not change behavior"
|
|
118
|
+
- If the baseline requirement cannot be found or read, mark **Spec Coverage** as not verified for that entry with the reason. Never count an unchecked rename as passing.
|
|
78
119
|
|
|
79
120
|
6. **Verify Correctness**
|
|
80
121
|
|
|
122
|
+
If the delta specs are readable and contain at least one REMOVED or RENAMED requirement but no ADDED or MODIFIED requirements (the change only removes or renames requirements), report **Requirement Implementation Mapping** and **Scenario Coverage** as **Not applicable**. The REMOVED and RENAMED checks under Spec Coverage are the evidence for such a change (each RENAMED entry is checked there against its baseline behavior), so do not mark these two checks as not verified. A delta spec with no parseable requirements at all is unusable evidence, not a removal-only change: mark these checks as not verified.
|
|
123
|
+
|
|
81
124
|
**Requirement Implementation Mapping**:
|
|
82
|
-
- For each requirement from delta specs:
|
|
125
|
+
- For each ADDED or MODIFIED requirement from delta specs (REMOVED entries, and RENAMED entries without a MODIFIED block, were settled under Spec Coverage):
|
|
83
126
|
- Search codebase for implementation evidence
|
|
84
127
|
- If found, note file paths and line ranges
|
|
85
128
|
- Assess if implementation matches requirement intent
|
|
@@ -88,26 +131,29 @@ Verify that an implementation matches the change artifacts (specs, tasks, design
|
|
|
88
131
|
- Recommendation: "Review <file>:<lines> against requirement X"
|
|
89
132
|
|
|
90
133
|
**Scenario Coverage**:
|
|
91
|
-
- For each scenario in delta specs (marked with "#### Scenario:"):
|
|
134
|
+
- For each scenario under an ADDED or MODIFIED requirement in delta specs (marked with "#### Scenario:"):
|
|
92
135
|
- Check if conditions are handled in code
|
|
93
136
|
- Check if tests exist covering the scenario
|
|
94
137
|
- If scenario appears uncovered:
|
|
95
138
|
- Add WARNING: "Scenario not covered: <scenario name>"
|
|
96
139
|
- Recommendation: "Add test or implementation for scenario: <description>"
|
|
140
|
+
- Skip scenarios under a REMOVED requirement; that behavior is meant to be gone.
|
|
97
141
|
|
|
98
142
|
7. **Verify Coherence**
|
|
99
143
|
|
|
100
144
|
**Design Adherence**:
|
|
145
|
+
- If the schema defines no design artifact, report **Design Adherence** as not applicable.
|
|
101
146
|
- If `contextFiles.design` exists:
|
|
102
147
|
- Extract key decisions (look for sections like "Decision:", "Approach:", "Architecture:")
|
|
103
148
|
- Verify implementation follows those decisions
|
|
104
149
|
- If contradiction detected:
|
|
105
150
|
- Add WARNING: "Design decision not followed: <decision>"
|
|
106
151
|
- Recommendation: "Update implementation or revise design.md to match reality"
|
|
107
|
-
-
|
|
152
|
+
- Otherwise, if `contextFiles.design` is absent or empty: mark **Design Adherence** as not verified. With other supporting artifacts, **Code Pattern Consistency** still runs; the task-only case remains limited to task completion.
|
|
108
153
|
|
|
109
154
|
**Code Pattern Consistency**:
|
|
110
|
-
-
|
|
155
|
+
- If implementation changes cannot be identified, mark **Code Pattern Consistency** as not verified and explain the missing evidence.
|
|
156
|
+
- Otherwise, review new code for consistency with project patterns
|
|
111
157
|
- Check file naming, directory structure, coding style
|
|
112
158
|
- If significant deviations found:
|
|
113
159
|
- Add SUGGESTION: "Code pattern deviation: <details>"
|
|
@@ -127,11 +173,15 @@ Verify that an implementation matches the change artifacts (specs, tasks, design
|
|
|
127
173
|
| Coherence | Followed/Issues |
|
|
128
174
|
```
|
|
129
175
|
|
|
176
|
+
In each Status cell, report the results of checks that ran and `Not verified (<reason>)` for every skipped check. If all checks in a dimension were skipped, start the cell with `Not verified`. Never score a skipped check as passing. Treat every not verified or partially verified check as skipped in the final assessment. Count only ADDED and MODIFIED requirements in N, and report REMOVED and RENAMED requirements separately (for example, "1 removal confirmed, 1 rename verified"). For a change that only removes or renames requirements, the Correctness cell reads `Not applicable (no ADDED or MODIFIED requirements)`.
|
|
177
|
+
|
|
130
178
|
**Issues by Priority**:
|
|
131
179
|
|
|
132
180
|
1. **CRITICAL** (Must fix before archive):
|
|
133
181
|
- Incomplete tasks
|
|
134
182
|
- Missing requirement implementations
|
|
183
|
+
- Removed requirements still implemented
|
|
184
|
+
- Renamed requirements whose behavior is no longer implemented
|
|
135
185
|
- Each with specific, actionable recommendation
|
|
136
186
|
|
|
137
187
|
2. **WARNING** (Should fix):
|
|
@@ -145,9 +195,12 @@ Verify that an implementation matches the change artifacts (specs, tasks, design
|
|
|
145
195
|
- Each with specific recommendation
|
|
146
196
|
|
|
147
197
|
**Final Assessment**:
|
|
148
|
-
- If CRITICAL issues: "X critical issue(s) found. Fix before archiving."
|
|
149
|
-
- If
|
|
150
|
-
- If
|
|
198
|
+
- If CRITICAL issues: "X critical issue(s) found. Fix before archiving." If any check was skipped, also name every skipped check and its reason.
|
|
199
|
+
- If no CRITICAL issues, one or more warnings, and no checks were skipped: "No critical issues. Y warning(s) to consider. Ready for archive (with noted improvements)."
|
|
200
|
+
- If only suggestions and no checks were skipped: "No critical issues or warnings. Z suggestion(s) to consider. Ready for archive (with noted improvements)."
|
|
201
|
+
- If no issues and no checks were skipped: "All checks passed. Ready for archive."
|
|
202
|
+
- If any check was skipped and there are no CRITICAL issues: do not claim readiness. Say "No critical issues found in the checks that ran. <check(s)> not verified: <reason>." Include the warning count when nonzero.
|
|
203
|
+
- Include the suggestion count when nonzero in every final assessment.
|
|
151
204
|
|
|
152
205
|
**Verification Heuristics**
|
|
153
206
|
|
|
@@ -157,13 +210,6 @@ Verify that an implementation matches the change artifacts (specs, tasks, design
|
|
|
157
210
|
- **False Positives**: When uncertain, prefer SUGGESTION over WARNING, WARNING over CRITICAL
|
|
158
211
|
- **Actionability**: Every issue must have a specific recommendation with file/line references where applicable
|
|
159
212
|
|
|
160
|
-
**Graceful Degradation**
|
|
161
|
-
|
|
162
|
-
- If only tasks.md exists: verify task completion only, skip spec/design checks
|
|
163
|
-
- If tasks + specs exist: verify completeness and correctness, skip design
|
|
164
|
-
- If full artifacts: verify all three dimensions
|
|
165
|
-
- Always note which checks were skipped and why
|
|
166
|
-
|
|
167
213
|
**Output Format**
|
|
168
214
|
|
|
169
215
|
Use clear markdown with:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jspg-ai/coding-bb",
|
|
3
|
-
"version": "0.0.3-beta.
|
|
3
|
+
"version": "0.0.3-beta.31",
|
|
4
4
|
"description": "整合业界热门且高价值的工具、框架与技能,为 AI CODING AGENT 提供统一的行为准则与工作流,辅助开发者将需求高效落地为符合规范的代码",
|
|
5
5
|
"main": "cbb/lib/install/init.js",
|
|
6
6
|
"bin": {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"openspec/",
|
|
13
13
|
"config/",
|
|
14
14
|
"superpowers/",
|
|
15
|
+
"external/",
|
|
15
16
|
"!**/__pycache__/",
|
|
16
17
|
"!**/*.pyc",
|
|
17
18
|
"!**/*.pyo"
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
"scripts": {
|
|
20
21
|
"sync:shared": "node scripts/sync-shared.js",
|
|
21
22
|
"pretest": "node scripts/sync-shared.js --check",
|
|
22
|
-
"test": "node test/lib/install/cleanup.test.js && node test/lib/utils/settings.test.js && node test/lib/utils/gitignore.test.js && node test/lib/utils/version.test.js && node test/lib/install/workspaces.test.js && node test/lib/utils/checkbox.test.js && node test/lib/utils/output.test.js && node test/lib/install/cli-help.test.js && node test/lib/wiki/wiki-publish.test.js && node test/lib/wiki/wiki-parse-args.test.js && node test/lib/wiki/wiki-split.test.js && node test/lib/superpowers/superpowers.test.js && node test/worktrees/push-branches.test.js && node test/worktrees/commit-worktrees.test.js && node test/worktrees/push-worktrees.test.js && node test/worktrees/check-env-deep.test.js && node test/lib/openspec/
|
|
23
|
+
"test": "node test/lib/install/cleanup.test.js && node test/lib/utils/settings.test.js && node test/lib/utils/gitignore.test.js && node test/lib/utils/githook.test.js && node test/lib/utils/version.test.js && node test/lib/install/workspaces.test.js && node test/lib/utils/checkbox.test.js && node test/lib/utils/output.test.js && node test/lib/install/cli-help.test.js && node test/lib/install/adapters.test.js && node test/lib/install/tool-selection.test.js && node test/lib/install/agents-nav.test.js && node test/lib/install/command-skill.test.js && node test/lib/utils/plugin-hook.test.js && node test/lib/wiki/wiki-publish.test.js && node test/lib/wiki/wiki-parse-args.test.js && node test/lib/wiki/wiki-split.test.js && node test/lib/superpowers/superpowers.test.js && node test/lib/external/external.test.js && node test/worktrees/push-branches.test.js && node test/worktrees/commit-worktrees.test.js && node test/worktrees/push-worktrees.test.js && node test/worktrees/check-env-deep.test.js && node test/worktrees/create-worktrees.test.js && node test/worktrees/make-mr-urls.test.js && node test/lib/install/setup-decision.test.js && node test/lib/openspec/protected-paths.test.js"
|
|
23
24
|
},
|
|
24
25
|
"keywords": [
|
|
25
26
|
"cbb",
|
package/superpowers/.version
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
"
|
|
3
|
-
"
|
|
1
|
+
{
|
|
2
|
+
"tag": "v6.4.2",
|
|
3
|
+
"sha": "668b16d4d8d4d603fd257567684fbbffccbf2022",
|
|
4
4
|
"repo": "obra/superpowers",
|
|
5
|
-
"updatedAt": "2026-09-
|
|
5
|
+
"updatedAt": "2026-09-28T07:29:45.385Z"
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|
57
|
-
implementation. A
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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" |
|
|
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. |
|