@jspg-ai/coding-bb 0.0.1 → 0.0.2-beta.23

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 (145) hide show
  1. package/cbb/bin/cbb.js +6 -0
  2. package/cbb/bin/cbbm.js +6 -0
  3. package/cbb/dev-standards/rules/cbb-ai-behavior.md +103 -103
  4. package/cbb/dev-standards/rules/cbb-priority.md +55 -55
  5. package/cbb/lib/install/claude-code.js +2 -0
  6. package/cbb/lib/install/init.js +496 -290
  7. package/cbb/lib/install/opencode.js +31 -0
  8. package/cbb/lib/install/qoder.js +2 -0
  9. package/cbb/lib/install/workspaces.js +53 -13
  10. package/cbb/lib/openspec/index.js +3 -3
  11. package/cbb/lib/superpowers/index.js +1 -1
  12. package/cbb/lib/utils/check-update.js +16 -14
  13. package/cbb/lib/utils/gitignore.js +2 -1
  14. package/cbb/lib/utils/output.js +92 -4
  15. package/cbb/lib/utils/version.js +2 -31
  16. package/cbb/lib/wiki/cli.js +25 -25
  17. package/cbb/lib/wiki/index.js +16 -16
  18. package/cbb/tools/cbb-design-to-wiki/SKILL.md +14 -14
  19. package/cbb/tools/cbb-wiki-ops/SKILL.md +22 -22
  20. package/cbb/worktrees/_shared/scripts/find-target-worktree.js +2 -2
  21. package/cbb/worktrees/_shared/scripts/find-workspace-root.js +7 -7
  22. package/cbb/worktrees/_shared/scripts/push-core.js +18 -0
  23. package/cbb/worktrees/commands/{close.md → worktree-close.md} +8 -8
  24. package/cbb/worktrees/commands/{init.md → worktree-init.md} +9 -9
  25. package/cbb/worktrees/commands/{push.md → worktree-push.md} +3 -3
  26. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/SKILL.md +20 -20
  27. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/check-env.js +4 -4
  28. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/check-unarchived.js +1 -1
  29. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/delete-branches.js +3 -3
  30. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/discover-apps.js +6 -6
  31. package/cbb/worktrees/skills/{openspec-extend-worktree → cbb-worktree-close}/scripts/find-target-worktree.js +2 -2
  32. package/cbb/worktrees/skills/{openspec-push-worktrees → cbb-worktree-close}/scripts/find-workspace-root.js +7 -7
  33. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/remove-worktrees.js +4 -4
  34. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/safety-check.js +4 -4
  35. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/SKILL.md +81 -107
  36. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/auto-open.js +1 -1
  37. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/check-env-deep.js +4 -4
  38. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/check-env.js +6 -6
  39. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/check-repos.js +4 -4
  40. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/create-branches.js +4 -4
  41. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/create-worktrees.js +8 -7
  42. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-init}/scripts/find-workspace-root.js +7 -7
  43. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/install-ai.js +33 -33
  44. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/parse-config.js +7 -7
  45. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/push-branches.js +9 -7
  46. package/cbb/worktrees/skills/{openspec-extend-worktree → cbb-worktree-init}/scripts/push-core.js +18 -0
  47. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/sync-repos.js +10 -12
  48. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/update-gitignore.js +19 -6
  49. package/cbb/worktrees/skills/{openspec-push-worktrees → cbb-worktree-push}/SKILL.md +16 -16
  50. package/cbb/worktrees/skills/{openspec-push-worktrees → cbb-worktree-push}/scripts/commit-worktrees.js +2 -2
  51. package/cbb/worktrees/skills/{openspec-push-worktrees → cbb-worktree-push}/scripts/find-target-worktree.js +2 -2
  52. package/cbb/worktrees/skills/{openspec-extend-worktree → cbb-worktree-push}/scripts/find-workspace-root.js +7 -7
  53. package/cbb/worktrees/skills/{openspec-push-worktrees → cbb-worktree-push}/scripts/push-core.js +18 -0
  54. package/cbb/worktrees/skills/{openspec-push-worktrees → cbb-worktree-push}/scripts/push-worktrees.js +7 -5
  55. package/config/workspace-config.sample.json +18 -0
  56. package/config/workspaces.json +11 -6
  57. package/openspec/.version +6 -6
  58. package/openspec/commands/apply.md +7 -7
  59. package/openspec/commands/archive.md +7 -7
  60. package/openspec/commands/bulk-archive.md +7 -7
  61. package/openspec/commands/continue.md +7 -7
  62. package/openspec/commands/explore.md +7 -7
  63. package/openspec/commands/ff.md +7 -7
  64. package/openspec/commands/new.md +7 -7
  65. package/openspec/commands/onboard.md +7 -7
  66. package/openspec/commands/propose.md +7 -7
  67. package/openspec/commands/sync.md +7 -7
  68. package/openspec/commands/update.md +7 -7
  69. package/openspec/commands/verify.md +7 -7
  70. package/openspec/skills/openspec-apply-change/SKILL.md +187 -187
  71. package/openspec/skills/openspec-archive-change/SKILL.md +181 -181
  72. package/openspec/skills/openspec-bulk-archive-change/SKILL.md +338 -338
  73. package/openspec/skills/openspec-continue-change/SKILL.md +117 -117
  74. package/openspec/skills/openspec-explore/SKILL.md +342 -342
  75. package/openspec/skills/openspec-ff-change/SKILL.md +116 -116
  76. package/openspec/skills/openspec-new-change/SKILL.md +76 -76
  77. package/openspec/skills/openspec-onboard/SKILL.md +560 -560
  78. package/openspec/skills/openspec-propose/SKILL.md +162 -162
  79. package/openspec/skills/openspec-sync-specs/SKILL.md +261 -261
  80. package/openspec/skills/openspec-update-change/SKILL.md +90 -90
  81. package/openspec/skills/openspec-verify-change/SKILL.md +174 -174
  82. package/package.json +4 -3
  83. package/superpowers/.version +6 -6
  84. package/superpowers/skills/brainstorming/SKILL.md +250 -250
  85. package/superpowers/skills/brainstorming/scripts/helper.js +167 -167
  86. package/superpowers/skills/brainstorming/scripts/start-server.sh +209 -209
  87. package/superpowers/skills/brainstorming/scripts/stop-server.sh +120 -120
  88. package/superpowers/skills/brainstorming/spec-document-reviewer-prompt.md +49 -49
  89. package/superpowers/skills/brainstorming/visual-companion.md +299 -299
  90. package/superpowers/skills/dispatching-parallel-agents/SKILL.md +167 -167
  91. package/superpowers/skills/executing-plans/SKILL.md +64 -64
  92. package/superpowers/skills/finishing-a-development-branch/SKILL.md +225 -225
  93. package/superpowers/skills/receiving-code-review/SKILL.md +205 -205
  94. package/superpowers/skills/requesting-code-review/SKILL.md +95 -95
  95. package/superpowers/skills/requesting-code-review/code-reviewer.md +181 -181
  96. package/superpowers/skills/subagent-driven-development/SKILL.md +568 -568
  97. package/superpowers/skills/subagent-driven-development/implementer-prompt.md +154 -154
  98. package/superpowers/skills/subagent-driven-development/re-review-prompt.md +115 -115
  99. package/superpowers/skills/subagent-driven-development/task-reviewer-prompt.md +207 -207
  100. package/superpowers/skills/systematic-debugging/CREATION-LOG.md +119 -119
  101. package/superpowers/skills/systematic-debugging/SKILL.md +283 -283
  102. package/superpowers/skills/systematic-debugging/condition-based-waiting-example.ts +158 -158
  103. package/superpowers/skills/systematic-debugging/condition-based-waiting.md +115 -115
  104. package/superpowers/skills/systematic-debugging/defense-in-depth.md +122 -122
  105. package/superpowers/skills/systematic-debugging/find-polluter.sh +72 -72
  106. package/superpowers/skills/systematic-debugging/root-cause-tracing.md +169 -169
  107. package/superpowers/skills/systematic-debugging/test-academic.md +14 -14
  108. package/superpowers/skills/systematic-debugging/test-pressure-1.md +58 -58
  109. package/superpowers/skills/systematic-debugging/test-pressure-2.md +68 -68
  110. package/superpowers/skills/systematic-debugging/test-pressure-3.md +69 -69
  111. package/superpowers/skills/test-driven-development/SKILL.md +320 -320
  112. package/superpowers/skills/test-driven-development/writing-good-tests.md +198 -198
  113. package/superpowers/skills/using-git-worktrees/SKILL.md +167 -167
  114. package/superpowers/skills/using-superpowers/SKILL.md +63 -63
  115. package/superpowers/skills/using-superpowers/references/antigravity-tools.md +23 -23
  116. package/superpowers/skills/using-superpowers/references/codex-tools.md +108 -108
  117. package/superpowers/skills/using-superpowers/references/gemini-tools.md +63 -63
  118. package/superpowers/skills/using-superpowers/references/hermes-tools.md +56 -56
  119. package/superpowers/skills/using-superpowers/references/pi-tools.md +16 -16
  120. package/superpowers/skills/verification-before-completion/SKILL.md +120 -120
  121. package/superpowers/skills/writing-plans/SKILL.md +171 -171
  122. package/superpowers/skills/writing-plans/plan-document-reviewer-prompt.md +49 -49
  123. package/superpowers/skills/writing-skills/SKILL.md +679 -679
  124. package/superpowers/skills/writing-skills/anthropic-best-practices.md +1150 -1150
  125. package/superpowers/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -189
  126. package/superpowers/skills/writing-skills/persuasion-principles.md +187 -187
  127. package/superpowers/skills/writing-skills/render-graphs.js +169 -169
  128. package/superpowers/skills/writing-skills/testing-skills-with-subagents.md +384 -384
  129. package/cbb/worktrees/commands/extend.md +0 -65
  130. package/cbb/worktrees/skills/openspec-close-worktree/scripts/find-target-worktree.js +0 -96
  131. package/cbb/worktrees/skills/openspec-extend-worktree/SKILL.md +0 -390
  132. package/cbb/worktrees/skills/openspec-extend-worktree/scripts/check-env.js +0 -95
  133. package/cbb/worktrees/skills/openspec-extend-worktree/scripts/check-repos.js +0 -98
  134. package/cbb/worktrees/skills/openspec-extend-worktree/scripts/create-branches-and-worktrees.js +0 -135
  135. package/cbb/worktrees/skills/openspec-extend-worktree/scripts/install-ai.js +0 -150
  136. package/cbb/worktrees/skills/openspec-extend-worktree/scripts/list-available-apps.js +0 -88
  137. package/cbb/worktrees/skills/openspec-extend-worktree/scripts/sync-repos.js +0 -93
  138. package/cbb/worktrees/skills/openspec-init-worktree/scripts/find-workspace-root.js +0 -67
  139. package/cbb/worktrees/skills/openspec-init-worktree/scripts/generate-app-options.js +0 -93
  140. package/cbb/worktrees/skills/openspec-init-worktree/scripts/push-core.js +0 -136
  141. package/cbb/worktrees/skills/openspec-push-worktrees/scripts/silence-popup.js +0 -23
  142. package/config/config.sample.json +0 -16
  143. /package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/silence-popup.js +0 -0
  144. /package/cbb/worktrees/skills/{openspec-extend-worktree → cbb-worktree-init}/scripts/silence-popup.js +0 -0
  145. /package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-push}/scripts/silence-popup.js +0 -0
@@ -1,154 +1,154 @@
1
- # Implementer Subagent Prompt Template
2
-
3
- Use this template when dispatching an implementer subagent.
4
-
5
- ```
6
- Subagent (general-purpose):
7
- description: "Implement Task N: [task name]"
8
- model: [MODEL — REQUIRED: choose per SKILL.md Model Selection; an omitted
9
- model silently inherits the session's most expensive one]
10
- prompt: |
11
- You are implementing Task N: [task name]
12
-
13
- ## Task Description
14
-
15
- Read your task brief first: [BRIEF_FILE]
16
- It contains the full task text from the plan.
17
-
18
- ## Context
19
-
20
- [Scene-setting: where this fits, dependencies, architectural context]
21
-
22
- ## Before You Begin
23
-
24
- If you have questions about:
25
- - The requirements or acceptance criteria
26
- - The approach or implementation strategy
27
- - Dependencies or assumptions
28
- - Anything unclear in the task description
29
-
30
- **Ask them now.** Raise any concerns before starting work.
31
-
32
- ## Your Job
33
-
34
- Once you're clear on requirements:
35
- 1. Implement exactly what the task specifies
36
- 2. Write tests (following TDD if task says to)
37
- 3. Verify implementation works
38
- 4. Commit your work
39
- 5. Self-review (see below)
40
- 6. Report back
41
-
42
- Work from: [directory]
43
-
44
- **While you work:** If you encounter something unexpected or unclear, **ask questions**.
45
- It's always OK to pause and clarify. Don't guess or make assumptions.
46
-
47
- While iterating, run the focused test for what you're changing; run the
48
- full suite once before committing, not after every edit.
49
-
50
- ## You Do Not Dispatch Subagents
51
-
52
- Do all of this task's work yourself. Never spawn a subagent to
53
- implement part of the task, and above all never spawn a reviewer to
54
- check your work. Self-review (below) means reading your own diff.
55
- Review is the controller's job: after you report, it dispatches a
56
- fresh reviewer against your diff. A reviewer you spawn duplicates
57
- that review at full cost, and its approval counts for nothing in
58
- the process. If you catch yourself thinking "an independent review
59
- would strengthen my report" — that review is already scheduled.
60
- Report instead.
61
-
62
- ## Code Organization
63
-
64
- You reason best about code you can hold in context at once, and your edits are more
65
- reliable when files are focused. Keep this in mind:
66
- - Follow the file structure defined in the plan
67
- - Each file should have one clear responsibility with a well-defined interface
68
- - If a file you're creating is growing beyond the plan's intent, stop and report
69
- it as DONE_WITH_CONCERNS — don't split files on your own without plan guidance
70
- - If an existing file you're modifying is already large or tangled, work carefully
71
- and note it as a concern in your report
72
- - In existing codebases, follow established patterns. Improve code you're touching
73
- the way a good developer would, but don't restructure things outside your task.
74
-
75
- ## When You're in Over Your Head
76
-
77
- It is always OK to stop and say "this is too hard for me." Bad work is worse than
78
- no work. You will not be penalized for escalating.
79
-
80
- **STOP and escalate when:**
81
- - The task requires architectural decisions with multiple valid approaches
82
- - You need to understand code beyond what was provided and can't find clarity
83
- - You feel uncertain about whether your approach is correct
84
- - The task involves restructuring existing code in ways the plan didn't anticipate
85
- - You've been reading file after file trying to understand the system without progress
86
-
87
- **How to escalate:** Report back with status BLOCKED or NEEDS_CONTEXT. Describe
88
- specifically what you're stuck on, what you've tried, and what kind of help you need.
89
- The controller can provide more context, re-dispatch with a more capable model,
90
- or break the task into smaller pieces.
91
-
92
- ## Before Reporting Back: Self-Review
93
-
94
- Review your work with fresh eyes. Ask yourself:
95
-
96
- **Completeness:**
97
- - Did I fully implement everything in the spec?
98
- - Did I miss any requirements?
99
- - Are there edge cases I didn't handle?
100
-
101
- **Quality:**
102
- - Is this my best work?
103
- - Are names clear and accurate (match what things do, not how they work)?
104
- - Is the code clean and maintainable?
105
-
106
- **Discipline:**
107
- - Did I avoid overbuilding (YAGNI)?
108
- - Did I only build what was requested?
109
- - Did I follow existing patterns in the codebase?
110
-
111
- **Testing:**
112
- - Do tests actually verify behavior (not just mock behavior)?
113
- - Did I follow TDD if required?
114
- - Are tests comprehensive?
115
- - Is the test output pristine (no stray warnings or noise)?
116
-
117
- If you find issues during self-review, fix them now before reporting.
118
-
119
- ## After Review Findings
120
-
121
- If the task review finds issues, you will be resumed with the findings.
122
- Fix them, re-run the tests that cover the amended code, and append a fix
123
- report to your report file: what you changed, the covering tests you
124
- ran, the command, and the output. Reviewers will not re-run tests for
125
- you — your report is the test evidence. Then reply with the same short
126
- status contract as your first report.
127
-
128
- ## Report Format
129
-
130
- Write your full report to [REPORT_FILE]:
131
- - What you implemented (or what you attempted, if blocked)
132
- - What you tested and test results
133
- - **TDD Evidence** (if TDD was required for this task):
134
- - RED: command run, relevant failing output before implementation, and why the failure was expected
135
- - GREEN: command run and relevant passing output after implementation
136
- - Files changed
137
- - Self-review findings (if any)
138
- - Any issues or concerns
139
-
140
- Then report back with ONLY (under 15 lines — the detail lives in the
141
- report file):
142
- - **Status:** DONE | DONE_WITH_CONCERNS | BLOCKED | NEEDS_CONTEXT
143
- - Commits created (short SHA + subject)
144
- - One-line test summary (e.g. "14/14 passing, output pristine")
145
- - Your concerns, if any
146
- - The report file path
147
-
148
- If BLOCKED or NEEDS_CONTEXT, put the specifics in the final message
149
- itself — the controller acts on it directly.
150
-
151
- Use DONE_WITH_CONCERNS if you completed the work but have doubts about correctness.
152
- Use BLOCKED if you cannot complete the task. Use NEEDS_CONTEXT if you need
153
- information that wasn't provided. Never silently produce work you're unsure about.
154
- ```
1
+ # Implementer Subagent Prompt Template
2
+
3
+ Use this template when dispatching an implementer subagent.
4
+
5
+ ```
6
+ Subagent (general-purpose):
7
+ description: "Implement Task N: [task name]"
8
+ model: [MODEL — REQUIRED: choose per SKILL.md Model Selection; an omitted
9
+ model silently inherits the session's most expensive one]
10
+ prompt: |
11
+ You are implementing Task N: [task name]
12
+
13
+ ## Task Description
14
+
15
+ Read your task brief first: [BRIEF_FILE]
16
+ It contains the full task text from the plan.
17
+
18
+ ## Context
19
+
20
+ [Scene-setting: where this fits, dependencies, architectural context]
21
+
22
+ ## Before You Begin
23
+
24
+ If you have questions about:
25
+ - The requirements or acceptance criteria
26
+ - The approach or implementation strategy
27
+ - Dependencies or assumptions
28
+ - Anything unclear in the task description
29
+
30
+ **Ask them now.** Raise any concerns before starting work.
31
+
32
+ ## Your Job
33
+
34
+ Once you're clear on requirements:
35
+ 1. Implement exactly what the task specifies
36
+ 2. Write tests (following TDD if task says to)
37
+ 3. Verify implementation works
38
+ 4. Commit your work
39
+ 5. Self-review (see below)
40
+ 6. Report back
41
+
42
+ Work from: [directory]
43
+
44
+ **While you work:** If you encounter something unexpected or unclear, **ask questions**.
45
+ It's always OK to pause and clarify. Don't guess or make assumptions.
46
+
47
+ While iterating, run the focused test for what you're changing; run the
48
+ full suite once before committing, not after every edit.
49
+
50
+ ## You Do Not Dispatch Subagents
51
+
52
+ Do all of this task's work yourself. Never spawn a subagent to
53
+ implement part of the task, and above all never spawn a reviewer to
54
+ check your work. Self-review (below) means reading your own diff.
55
+ Review is the controller's job: after you report, it dispatches a
56
+ fresh reviewer against your diff. A reviewer you spawn duplicates
57
+ that review at full cost, and its approval counts for nothing in
58
+ the process. If you catch yourself thinking "an independent review
59
+ would strengthen my report" — that review is already scheduled.
60
+ Report instead.
61
+
62
+ ## Code Organization
63
+
64
+ You reason best about code you can hold in context at once, and your edits are more
65
+ reliable when files are focused. Keep this in mind:
66
+ - Follow the file structure defined in the plan
67
+ - Each file should have one clear responsibility with a well-defined interface
68
+ - If a file you're creating is growing beyond the plan's intent, stop and report
69
+ it as DONE_WITH_CONCERNS — don't split files on your own without plan guidance
70
+ - If an existing file you're modifying is already large or tangled, work carefully
71
+ and note it as a concern in your report
72
+ - In existing codebases, follow established patterns. Improve code you're touching
73
+ the way a good developer would, but don't restructure things outside your task.
74
+
75
+ ## When You're in Over Your Head
76
+
77
+ It is always OK to stop and say "this is too hard for me." Bad work is worse than
78
+ no work. You will not be penalized for escalating.
79
+
80
+ **STOP and escalate when:**
81
+ - The task requires architectural decisions with multiple valid approaches
82
+ - You need to understand code beyond what was provided and can't find clarity
83
+ - You feel uncertain about whether your approach is correct
84
+ - The task involves restructuring existing code in ways the plan didn't anticipate
85
+ - You've been reading file after file trying to understand the system without progress
86
+
87
+ **How to escalate:** Report back with status BLOCKED or NEEDS_CONTEXT. Describe
88
+ specifically what you're stuck on, what you've tried, and what kind of help you need.
89
+ The controller can provide more context, re-dispatch with a more capable model,
90
+ or break the task into smaller pieces.
91
+
92
+ ## Before Reporting Back: Self-Review
93
+
94
+ Review your work with fresh eyes. Ask yourself:
95
+
96
+ **Completeness:**
97
+ - Did I fully implement everything in the spec?
98
+ - Did I miss any requirements?
99
+ - Are there edge cases I didn't handle?
100
+
101
+ **Quality:**
102
+ - Is this my best work?
103
+ - Are names clear and accurate (match what things do, not how they work)?
104
+ - Is the code clean and maintainable?
105
+
106
+ **Discipline:**
107
+ - Did I avoid overbuilding (YAGNI)?
108
+ - Did I only build what was requested?
109
+ - Did I follow existing patterns in the codebase?
110
+
111
+ **Testing:**
112
+ - Do tests actually verify behavior (not just mock behavior)?
113
+ - Did I follow TDD if required?
114
+ - Are tests comprehensive?
115
+ - Is the test output pristine (no stray warnings or noise)?
116
+
117
+ If you find issues during self-review, fix them now before reporting.
118
+
119
+ ## After Review Findings
120
+
121
+ If the task review finds issues, you will be resumed with the findings.
122
+ Fix them, re-run the tests that cover the amended code, and append a fix
123
+ report to your report file: what you changed, the covering tests you
124
+ ran, the command, and the output. Reviewers will not re-run tests for
125
+ you — your report is the test evidence. Then reply with the same short
126
+ status contract as your first report.
127
+
128
+ ## Report Format
129
+
130
+ Write your full report to [REPORT_FILE]:
131
+ - What you implemented (or what you attempted, if blocked)
132
+ - What you tested and test results
133
+ - **TDD Evidence** (if TDD was required for this task):
134
+ - RED: command run, relevant failing output before implementation, and why the failure was expected
135
+ - GREEN: command run and relevant passing output after implementation
136
+ - Files changed
137
+ - Self-review findings (if any)
138
+ - Any issues or concerns
139
+
140
+ Then report back with ONLY (under 15 lines — the detail lives in the
141
+ report file):
142
+ - **Status:** DONE | DONE_WITH_CONCERNS | BLOCKED | NEEDS_CONTEXT
143
+ - Commits created (short SHA + subject)
144
+ - One-line test summary (e.g. "14/14 passing, output pristine")
145
+ - Your concerns, if any
146
+ - The report file path
147
+
148
+ If BLOCKED or NEEDS_CONTEXT, put the specifics in the final message
149
+ itself — the controller acts on it directly.
150
+
151
+ Use DONE_WITH_CONCERNS if you completed the work but have doubts about correctness.
152
+ Use BLOCKED if you cannot complete the task. Use NEEDS_CONTEXT if you need
153
+ information that wasn't provided. Never silently produce work you're unsure about.
154
+ ```
@@ -1,115 +1,115 @@
1
- # Scoped Re-Review Prompt Template
2
-
3
- Use this template when dispatching a re-review after a fix round. The
4
- re-reviewer verifies the findings were addressed and checks the fix diff for
5
- new breakage. It is not a fresh review — the full review already happened.
6
-
7
- **Purpose:** Verify each finding from the previous review was addressed, and
8
- that the fix itself broke nothing.
9
-
10
- ```
11
- Subagent (general-purpose):
12
- description: "Re-review Task N fix round R"
13
- model: [MODEL — REQUIRED: choose per SKILL.md Model Selection; an omitted
14
- model silently inherits the session's most expensive one]
15
- prompt: |
16
- You are re-reviewing one task's fix round. A previous review produced
17
- findings; an implementer has attempted to fix them. Your job is to
18
- verdict each finding and inspect the fix diff — nothing else.
19
-
20
- ## The Task
21
-
22
- Read the task brief: [BRIEF_FILE]
23
-
24
- ## The Findings Under Verification
25
-
26
- [FINDINGS]
27
-
28
- ## The Fix
29
-
30
- Read the implementer's report (fix reports are appended at the end):
31
- [REPORT_FILE]
32
-
33
- **Fix base:** [FIX_BASE_SHA] (the head the previous review saw)
34
- **Head:** [HEAD_SHA]
35
- **Diff file:** [DIFF_FILE]
36
-
37
- Read the diff file once — it contains the fix commits, a stat summary,
38
- and the fix diff with surrounding context. Do not re-run git commands.
39
- If the diff file is missing, fetch the diff yourself:
40
- `git diff --stat [FIX_BASE_SHA]..[HEAD_SHA]` and
41
- `git diff [FIX_BASE_SHA]..[HEAD_SHA]`.
42
-
43
- Your review is read-only on this checkout. Do not mutate the working
44
- tree, the index, HEAD, or branch state in any way.
45
-
46
- ## You Do Not Dispatch Subagents
47
-
48
- Do all of this review yourself. Never spawn a subagent to review part
49
- of the diff, and never spawn another reviewer for a second opinion.
50
- This process already provides every review seat the work gets; a
51
- reviewer you spawn duplicates one of them at full cost, and its
52
- verdict counts for nothing. If the diff feels too large for one
53
- pass, review it in passes yourself and say so in your report.
54
-
55
- ## Scope
56
-
57
- Your scope is the findings list and the fix diff. Verdict every finding.
58
- Inspect the fix diff for new problems the fix itself introduced. Do NOT
59
- re-review code the fix did not touch: if you notice an issue entirely
60
- outside the fix diff, report it under Out-of-Scope Observations — it
61
- does not block this task and does not extend the loop. A broad
62
- whole-branch review happens after all tasks are complete.
63
-
64
- ## Tests
65
-
66
- The implementer re-ran the tests covering the amended code and appended
67
- the results to the report file. Treat the report as unverified claims:
68
- confirm the fix report names the covering tests and shows their output,
69
- and verify the claims against the diff. Do not re-run the suite to
70
- confirm their report. Run a test only when reading the code raises a
71
- specific doubt that no existing run answers — and then a focused test,
72
- never a package-wide suite.
73
-
74
- ## Output Format
75
-
76
- Your final message is the report itself: begin directly with the first
77
- finding's verdict. Every line is a verdict, a finding with file:line,
78
- or a check you ran — no preamble, no process narration.
79
-
80
- ### Finding Verdicts
81
-
82
- For each finding in The Findings Under Verification, in order:
83
- - **[finding one-liner]** — ADDRESSED | NOT ADDRESSED, with file:line
84
- evidence. "Attempted" is not addressed: the specific defect must no
85
- longer exist.
86
-
87
- ### New Breakage in the Fix Diff
88
-
89
- Anything the fix itself broke or introduced, with severity
90
- (Critical/Important/Minor) and file:line. "None" if clean.
91
-
92
- ### Out-of-Scope Observations
93
-
94
- Issues you noticed entirely outside the fix diff. Non-blocking; the
95
- controller ledgers these for the final review. "None" if none.
96
-
97
- ### Verdict
98
-
99
- **Fix round:** [All findings addressed, no new Critical/Important
100
- breakage | Findings remain open] — list the open ones.
101
- ```
102
-
103
- **Placeholders:**
104
- - `[MODEL]` — REQUIRED: reviewer model per SKILL.md Model Selection; scoped
105
- re-reviews of small fix diffs take a cheap-to-mid tier
106
- - `[BRIEF_FILE]` — the task brief file (same file the implementer worked from)
107
- - `[FINDINGS]` — the Critical/Important findings and spec gaps from the
108
- previous review, copied verbatim, one per bullet
109
- - `[REPORT_FILE]` — the implementer's report file (fix reports appended)
110
- - `[FIX_BASE_SHA]` — the head the previous review saw
111
- - `[HEAD_SHA]` — current commit
112
- - `[DIFF_FILE]` — the path `scripts/review-package PLAN_FILE FIX_BASE HEAD` printed
113
-
114
- **Re-reviewer returns:** per-finding verdicts (ADDRESSED / NOT ADDRESSED),
115
- new breakage in the fix diff, out-of-scope observations, and a round verdict.
1
+ # Scoped Re-Review Prompt Template
2
+
3
+ Use this template when dispatching a re-review after a fix round. The
4
+ re-reviewer verifies the findings were addressed and checks the fix diff for
5
+ new breakage. It is not a fresh review — the full review already happened.
6
+
7
+ **Purpose:** Verify each finding from the previous review was addressed, and
8
+ that the fix itself broke nothing.
9
+
10
+ ```
11
+ Subagent (general-purpose):
12
+ description: "Re-review Task N fix round R"
13
+ model: [MODEL — REQUIRED: choose per SKILL.md Model Selection; an omitted
14
+ model silently inherits the session's most expensive one]
15
+ prompt: |
16
+ You are re-reviewing one task's fix round. A previous review produced
17
+ findings; an implementer has attempted to fix them. Your job is to
18
+ verdict each finding and inspect the fix diff — nothing else.
19
+
20
+ ## The Task
21
+
22
+ Read the task brief: [BRIEF_FILE]
23
+
24
+ ## The Findings Under Verification
25
+
26
+ [FINDINGS]
27
+
28
+ ## The Fix
29
+
30
+ Read the implementer's report (fix reports are appended at the end):
31
+ [REPORT_FILE]
32
+
33
+ **Fix base:** [FIX_BASE_SHA] (the head the previous review saw)
34
+ **Head:** [HEAD_SHA]
35
+ **Diff file:** [DIFF_FILE]
36
+
37
+ Read the diff file once — it contains the fix commits, a stat summary,
38
+ and the fix diff with surrounding context. Do not re-run git commands.
39
+ If the diff file is missing, fetch the diff yourself:
40
+ `git diff --stat [FIX_BASE_SHA]..[HEAD_SHA]` and
41
+ `git diff [FIX_BASE_SHA]..[HEAD_SHA]`.
42
+
43
+ Your review is read-only on this checkout. Do not mutate the working
44
+ tree, the index, HEAD, or branch state in any way.
45
+
46
+ ## You Do Not Dispatch Subagents
47
+
48
+ Do all of this review yourself. Never spawn a subagent to review part
49
+ of the diff, and never spawn another reviewer for a second opinion.
50
+ This process already provides every review seat the work gets; a
51
+ reviewer you spawn duplicates one of them at full cost, and its
52
+ verdict counts for nothing. If the diff feels too large for one
53
+ pass, review it in passes yourself and say so in your report.
54
+
55
+ ## Scope
56
+
57
+ Your scope is the findings list and the fix diff. Verdict every finding.
58
+ Inspect the fix diff for new problems the fix itself introduced. Do NOT
59
+ re-review code the fix did not touch: if you notice an issue entirely
60
+ outside the fix diff, report it under Out-of-Scope Observations — it
61
+ does not block this task and does not extend the loop. A broad
62
+ whole-branch review happens after all tasks are complete.
63
+
64
+ ## Tests
65
+
66
+ The implementer re-ran the tests covering the amended code and appended
67
+ the results to the report file. Treat the report as unverified claims:
68
+ confirm the fix report names the covering tests and shows their output,
69
+ and verify the claims against the diff. Do not re-run the suite to
70
+ confirm their report. Run a test only when reading the code raises a
71
+ specific doubt that no existing run answers — and then a focused test,
72
+ never a package-wide suite.
73
+
74
+ ## Output Format
75
+
76
+ Your final message is the report itself: begin directly with the first
77
+ finding's verdict. Every line is a verdict, a finding with file:line,
78
+ or a check you ran — no preamble, no process narration.
79
+
80
+ ### Finding Verdicts
81
+
82
+ For each finding in The Findings Under Verification, in order:
83
+ - **[finding one-liner]** — ADDRESSED | NOT ADDRESSED, with file:line
84
+ evidence. "Attempted" is not addressed: the specific defect must no
85
+ longer exist.
86
+
87
+ ### New Breakage in the Fix Diff
88
+
89
+ Anything the fix itself broke or introduced, with severity
90
+ (Critical/Important/Minor) and file:line. "None" if clean.
91
+
92
+ ### Out-of-Scope Observations
93
+
94
+ Issues you noticed entirely outside the fix diff. Non-blocking; the
95
+ controller ledgers these for the final review. "None" if none.
96
+
97
+ ### Verdict
98
+
99
+ **Fix round:** [All findings addressed, no new Critical/Important
100
+ breakage | Findings remain open] — list the open ones.
101
+ ```
102
+
103
+ **Placeholders:**
104
+ - `[MODEL]` — REQUIRED: reviewer model per SKILL.md Model Selection; scoped
105
+ re-reviews of small fix diffs take a cheap-to-mid tier
106
+ - `[BRIEF_FILE]` — the task brief file (same file the implementer worked from)
107
+ - `[FINDINGS]` — the Critical/Important findings and spec gaps from the
108
+ previous review, copied verbatim, one per bullet
109
+ - `[REPORT_FILE]` — the implementer's report file (fix reports appended)
110
+ - `[FIX_BASE_SHA]` — the head the previous review saw
111
+ - `[HEAD_SHA]` — current commit
112
+ - `[DIFF_FILE]` — the path `scripts/review-package PLAN_FILE FIX_BASE HEAD` printed
113
+
114
+ **Re-reviewer returns:** per-finding verdicts (ADDRESSED / NOT ADDRESSED),
115
+ new breakage in the fix diff, out-of-scope observations, and a round verdict.