workerssuper 5.0.4

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 (135) hide show
  1. package/.claude-plugin/marketplace.json +20 -0
  2. package/.claude-plugin/plugin.json +13 -0
  3. package/.codex/INSTALL.md +67 -0
  4. package/.cursor-plugin/plugin.json +18 -0
  5. package/.gitattributes +18 -0
  6. package/.github/FUNDING.yml +3 -0
  7. package/.github/ISSUE_TEMPLATE/bug_report.md +52 -0
  8. package/.github/ISSUE_TEMPLATE/config.yml +5 -0
  9. package/.github/ISSUE_TEMPLATE/feature_request.md +34 -0
  10. package/.github/ISSUE_TEMPLATE/platform_support.md +23 -0
  11. package/.github/PULL_REQUEST_TEMPLATE.md +87 -0
  12. package/.opencode/INSTALL.md +83 -0
  13. package/.opencode/plugins/superpowers.js +107 -0
  14. package/CHANGELOG.md +13 -0
  15. package/CODE_OF_CONDUCT.md +128 -0
  16. package/GEMINI.md +2 -0
  17. package/LICENSE +21 -0
  18. package/README.md +187 -0
  19. package/RELEASE-NOTES.md +1057 -0
  20. package/agents/code-reviewer.md +48 -0
  21. package/commands/brainstorm.md +5 -0
  22. package/commands/execute-plan.md +5 -0
  23. package/commands/write-plan.md +5 -0
  24. package/docs/README.codex.md +126 -0
  25. package/docs/README.opencode.md +130 -0
  26. package/docs/plans/2025-11-22-opencode-support-design.md +294 -0
  27. package/docs/plans/2025-11-22-opencode-support-implementation.md +1095 -0
  28. package/docs/plans/2025-11-28-skills-improvements-from-user-feedback.md +711 -0
  29. package/docs/plans/2026-01-17-visual-brainstorming.md +571 -0
  30. package/docs/superpowers/plans/2026-01-22-document-review-system.md +301 -0
  31. package/docs/superpowers/plans/2026-02-19-visual-brainstorming-refactor.md +523 -0
  32. package/docs/superpowers/plans/2026-03-11-zero-dep-brainstorm-server.md +479 -0
  33. package/docs/superpowers/specs/2026-01-22-document-review-system-design.md +136 -0
  34. package/docs/superpowers/specs/2026-02-19-visual-brainstorming-refactor-design.md +162 -0
  35. package/docs/superpowers/specs/2026-03-11-zero-dep-brainstorm-server-design.md +118 -0
  36. package/docs/testing.md +303 -0
  37. package/docs/windows/polyglot-hooks.md +212 -0
  38. package/gemini-extension.json +6 -0
  39. package/hooks/hooks-cursor.json +10 -0
  40. package/hooks/hooks.json +16 -0
  41. package/hooks/run-hook.cmd +46 -0
  42. package/hooks/session-start +57 -0
  43. package/package.json +5 -0
  44. package/skills/brainstorming/SKILL.md +164 -0
  45. package/skills/brainstorming/scripts/frame-template.html +214 -0
  46. package/skills/brainstorming/scripts/helper.js +88 -0
  47. package/skills/brainstorming/scripts/server.cjs +338 -0
  48. package/skills/brainstorming/scripts/start-server.sh +153 -0
  49. package/skills/brainstorming/scripts/stop-server.sh +55 -0
  50. package/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
  51. package/skills/brainstorming/visual-companion.md +286 -0
  52. package/skills/dispatching-parallel-agents/SKILL.md +182 -0
  53. package/skills/executing-plans/SKILL.md +70 -0
  54. package/skills/finishing-a-development-branch/SKILL.md +200 -0
  55. package/skills/receiving-code-review/SKILL.md +213 -0
  56. package/skills/requesting-code-review/SKILL.md +105 -0
  57. package/skills/requesting-code-review/code-reviewer.md +146 -0
  58. package/skills/subagent-driven-development/SKILL.md +277 -0
  59. package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +26 -0
  60. package/skills/subagent-driven-development/implementer-prompt.md +113 -0
  61. package/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  62. package/skills/systematic-debugging/CREATION-LOG.md +119 -0
  63. package/skills/systematic-debugging/SKILL.md +296 -0
  64. package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  65. package/skills/systematic-debugging/condition-based-waiting.md +115 -0
  66. package/skills/systematic-debugging/defense-in-depth.md +122 -0
  67. package/skills/systematic-debugging/find-polluter.sh +63 -0
  68. package/skills/systematic-debugging/root-cause-tracing.md +169 -0
  69. package/skills/systematic-debugging/test-academic.md +14 -0
  70. package/skills/systematic-debugging/test-pressure-1.md +58 -0
  71. package/skills/systematic-debugging/test-pressure-2.md +68 -0
  72. package/skills/systematic-debugging/test-pressure-3.md +69 -0
  73. package/skills/test-driven-development/SKILL.md +371 -0
  74. package/skills/test-driven-development/testing-anti-patterns.md +299 -0
  75. package/skills/using-git-worktrees/SKILL.md +218 -0
  76. package/skills/using-superpowers/SKILL.md +115 -0
  77. package/skills/using-superpowers/references/codex-tools.md +25 -0
  78. package/skills/using-superpowers/references/gemini-tools.md +33 -0
  79. package/skills/verification-before-completion/SKILL.md +139 -0
  80. package/skills/writing-plans/SKILL.md +145 -0
  81. package/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
  82. package/skills/writing-skills/SKILL.md +655 -0
  83. package/skills/writing-skills/anthropic-best-practices.md +1150 -0
  84. package/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  85. package/skills/writing-skills/graphviz-conventions.dot +172 -0
  86. package/skills/writing-skills/persuasion-principles.md +187 -0
  87. package/skills/writing-skills/render-graphs.js +168 -0
  88. package/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  89. package/tests/brainstorm-server/package-lock.json +36 -0
  90. package/tests/brainstorm-server/package.json +10 -0
  91. package/tests/brainstorm-server/server.test.js +424 -0
  92. package/tests/brainstorm-server/windows-lifecycle.test.sh +351 -0
  93. package/tests/brainstorm-server/ws-protocol.test.js +392 -0
  94. package/tests/claude-code/README.md +158 -0
  95. package/tests/claude-code/analyze-token-usage.py +168 -0
  96. package/tests/claude-code/run-skill-tests.sh +187 -0
  97. package/tests/claude-code/test-document-review-system.sh +177 -0
  98. package/tests/claude-code/test-helpers.sh +202 -0
  99. package/tests/claude-code/test-subagent-driven-development-integration.sh +314 -0
  100. package/tests/claude-code/test-subagent-driven-development.sh +165 -0
  101. package/tests/explicit-skill-requests/prompts/action-oriented.txt +3 -0
  102. package/tests/explicit-skill-requests/prompts/after-planning-flow.txt +17 -0
  103. package/tests/explicit-skill-requests/prompts/claude-suggested-it.txt +11 -0
  104. package/tests/explicit-skill-requests/prompts/i-know-what-sdd-means.txt +8 -0
  105. package/tests/explicit-skill-requests/prompts/mid-conversation-execute-plan.txt +3 -0
  106. package/tests/explicit-skill-requests/prompts/please-use-brainstorming.txt +1 -0
  107. package/tests/explicit-skill-requests/prompts/skip-formalities.txt +3 -0
  108. package/tests/explicit-skill-requests/prompts/subagent-driven-development-please.txt +1 -0
  109. package/tests/explicit-skill-requests/prompts/use-systematic-debugging.txt +1 -0
  110. package/tests/explicit-skill-requests/run-all.sh +70 -0
  111. package/tests/explicit-skill-requests/run-claude-describes-sdd.sh +100 -0
  112. package/tests/explicit-skill-requests/run-extended-multiturn-test.sh +113 -0
  113. package/tests/explicit-skill-requests/run-haiku-test.sh +144 -0
  114. package/tests/explicit-skill-requests/run-multiturn-test.sh +143 -0
  115. package/tests/explicit-skill-requests/run-test.sh +136 -0
  116. package/tests/opencode/run-tests.sh +163 -0
  117. package/tests/opencode/setup.sh +73 -0
  118. package/tests/opencode/test-plugin-loading.sh +72 -0
  119. package/tests/opencode/test-priority.sh +198 -0
  120. package/tests/opencode/test-tools.sh +104 -0
  121. package/tests/skill-triggering/prompts/dispatching-parallel-agents.txt +8 -0
  122. package/tests/skill-triggering/prompts/executing-plans.txt +1 -0
  123. package/tests/skill-triggering/prompts/requesting-code-review.txt +3 -0
  124. package/tests/skill-triggering/prompts/systematic-debugging.txt +11 -0
  125. package/tests/skill-triggering/prompts/test-driven-development.txt +7 -0
  126. package/tests/skill-triggering/prompts/writing-plans.txt +10 -0
  127. package/tests/skill-triggering/run-all.sh +60 -0
  128. package/tests/skill-triggering/run-test.sh +88 -0
  129. package/tests/subagent-driven-dev/go-fractals/design.md +81 -0
  130. package/tests/subagent-driven-dev/go-fractals/plan.md +172 -0
  131. package/tests/subagent-driven-dev/go-fractals/scaffold.sh +45 -0
  132. package/tests/subagent-driven-dev/run-test.sh +106 -0
  133. package/tests/subagent-driven-dev/svelte-todo/design.md +70 -0
  134. package/tests/subagent-driven-dev/svelte-todo/plan.md +222 -0
  135. package/tests/subagent-driven-dev/svelte-todo/scaffold.sh +46 -0
@@ -0,0 +1,301 @@
1
+ # Document Review System Implementation Plan
2
+
3
+ > **For agentic workers:** REQUIRED: Use superpowers:subagent-driven-development (if subagents available) or superpowers:executing-plans to implement this plan.
4
+
5
+ **Goal:** Add spec and plan document review loops to the brainstorming and writing-plans skills.
6
+
7
+ **Architecture:** Create reviewer prompt templates in each skill directory. Modify skill files to add review loops after document creation. Use Task tool with general-purpose subagent for reviewer dispatch.
8
+
9
+ **Tech Stack:** Markdown skill files, subagent dispatch via Task tool
10
+
11
+ **Spec:** docs/superpowers/specs/2026-01-22-document-review-system-design.md
12
+
13
+ ---
14
+
15
+ ## Chunk 1: Spec Document Reviewer
16
+
17
+ This chunk adds the spec document reviewer to the brainstorming skill.
18
+
19
+ ### Task 1: Create Spec Document Reviewer Prompt Template
20
+
21
+ **Files:**
22
+ - Create: `skills/brainstorming/spec-document-reviewer-prompt.md`
23
+
24
+ - [ ] **Step 1:** Create the reviewer prompt template file
25
+
26
+ ```markdown
27
+ # Spec Document Reviewer Prompt Template
28
+
29
+ Use this template when dispatching a spec document reviewer subagent.
30
+
31
+ **Purpose:** Verify the spec is complete, consistent, and ready for implementation planning.
32
+
33
+ **Dispatch after:** Spec document is written to docs/superpowers/specs/
34
+
35
+ ```
36
+ Task tool (general-purpose):
37
+ description: "Review spec document"
38
+ prompt: |
39
+ You are a spec document reviewer. Verify this spec is complete and ready for planning.
40
+
41
+ **Spec to review:** [SPEC_FILE_PATH]
42
+
43
+ ## What to Check
44
+
45
+ | Category | What to Look For |
46
+ |----------|------------------|
47
+ | Completeness | TODOs, placeholders, "TBD", incomplete sections |
48
+ | Coverage | Missing error handling, edge cases, integration points |
49
+ | Consistency | Internal contradictions, conflicting requirements |
50
+ | Clarity | Ambiguous requirements |
51
+ | YAGNI | Unrequested features, over-engineering |
52
+
53
+ ## CRITICAL
54
+
55
+ Look especially hard for:
56
+ - Any TODO markers or placeholder text
57
+ - Sections saying "to be defined later" or "will spec when X is done"
58
+ - Sections noticeably less detailed than others
59
+
60
+ ## Output Format
61
+
62
+ ## Spec Review
63
+
64
+ **Status:** ✅ Approved | ❌ Issues Found
65
+
66
+ **Issues (if any):**
67
+ - [Section X]: [specific issue] - [why it matters]
68
+
69
+ **Recommendations (advisory):**
70
+ - [suggestions that don't block approval]
71
+ ```
72
+
73
+ **Reviewer returns:** Status, Issues (if any), Recommendations
74
+ ```
75
+
76
+ - [ ] **Step 2:** Verify the file was created correctly
77
+
78
+ Run: `cat skills/brainstorming/spec-document-reviewer-prompt.md | head -20`
79
+ Expected: Shows the header and purpose section
80
+
81
+ - [ ] **Step 3:** Commit
82
+
83
+ ```bash
84
+ git add skills/brainstorming/spec-document-reviewer-prompt.md
85
+ git commit -m "feat: add spec document reviewer prompt template"
86
+ ```
87
+
88
+ ---
89
+
90
+ ### Task 2: Add Review Loop to Brainstorming Skill
91
+
92
+ **Files:**
93
+ - Modify: `skills/brainstorming/SKILL.md`
94
+
95
+ - [ ] **Step 1:** Read the current brainstorming skill
96
+
97
+ Run: `cat skills/brainstorming/SKILL.md`
98
+
99
+ - [ ] **Step 2:** Add the review loop section after "After the Design"
100
+
101
+ Find the "After the Design" section and add a new "Spec Review Loop" section after documentation but before implementation:
102
+
103
+ ```markdown
104
+ **Spec Review Loop:**
105
+ After writing the spec document:
106
+ 1. Dispatch spec-document-reviewer subagent (see spec-document-reviewer-prompt.md)
107
+ 2. If ❌ Issues Found:
108
+ - Fix the issues in the spec document
109
+ - Re-dispatch reviewer
110
+ - Repeat until ✅ Approved
111
+ 3. If ✅ Approved: proceed to implementation setup
112
+
113
+ **Review loop guidance:**
114
+ - Same agent that wrote the spec fixes it (preserves context)
115
+ - If loop exceeds 5 iterations, surface to human for guidance
116
+ - Reviewers are advisory - explain disagreements if you believe feedback is incorrect
117
+ ```
118
+
119
+ - [ ] **Step 3:** Verify the changes
120
+
121
+ Run: `grep -A 15 "Spec Review Loop" skills/brainstorming/SKILL.md`
122
+ Expected: Shows the new review loop section
123
+
124
+ - [ ] **Step 4:** Commit
125
+
126
+ ```bash
127
+ git add skills/brainstorming/SKILL.md
128
+ git commit -m "feat: add spec review loop to brainstorming skill"
129
+ ```
130
+
131
+ ---
132
+
133
+ ## Chunk 2: Plan Document Reviewer
134
+
135
+ This chunk adds the plan document reviewer to the writing-plans skill.
136
+
137
+ ### Task 3: Create Plan Document Reviewer Prompt Template
138
+
139
+ **Files:**
140
+ - Create: `skills/writing-plans/plan-document-reviewer-prompt.md`
141
+
142
+ - [ ] **Step 1:** Create the reviewer prompt template file
143
+
144
+ ```markdown
145
+ # Plan Document Reviewer Prompt Template
146
+
147
+ Use this template when dispatching a plan document reviewer subagent.
148
+
149
+ **Purpose:** Verify the plan chunk is complete, matches the spec, and has proper task decomposition.
150
+
151
+ **Dispatch after:** Each plan chunk is written
152
+
153
+ ```
154
+ Task tool (general-purpose):
155
+ description: "Review plan chunk N"
156
+ prompt: |
157
+ You are a plan document reviewer. Verify this plan chunk is complete and ready for implementation.
158
+
159
+ **Plan chunk to review:** [PLAN_FILE_PATH] - Chunk N only
160
+ **Spec for reference:** [SPEC_FILE_PATH]
161
+
162
+ ## What to Check
163
+
164
+ | Category | What to Look For |
165
+ |----------|------------------|
166
+ | Completeness | TODOs, placeholders, incomplete tasks, missing steps |
167
+ | Spec Alignment | Chunk covers relevant spec requirements, no scope creep |
168
+ | Task Decomposition | Tasks atomic, clear boundaries, steps actionable |
169
+ | Task Syntax | Checkbox syntax (`- [ ]`) on tasks and steps |
170
+ | Chunk Size | Each chunk under 1000 lines |
171
+
172
+ ## CRITICAL
173
+
174
+ Look especially hard for:
175
+ - Any TODO markers or placeholder text
176
+ - Steps that say "similar to X" without actual content
177
+ - Incomplete task definitions
178
+ - Missing verification steps or expected outputs
179
+
180
+ ## Output Format
181
+
182
+ ## Plan Review - Chunk N
183
+
184
+ **Status:** ✅ Approved | ❌ Issues Found
185
+
186
+ **Issues (if any):**
187
+ - [Task X, Step Y]: [specific issue] - [why it matters]
188
+
189
+ **Recommendations (advisory):**
190
+ - [suggestions that don't block approval]
191
+ ```
192
+
193
+ **Reviewer returns:** Status, Issues (if any), Recommendations
194
+ ```
195
+
196
+ - [ ] **Step 2:** Verify the file was created
197
+
198
+ Run: `cat skills/writing-plans/plan-document-reviewer-prompt.md | head -20`
199
+ Expected: Shows the header and purpose section
200
+
201
+ - [ ] **Step 3:** Commit
202
+
203
+ ```bash
204
+ git add skills/writing-plans/plan-document-reviewer-prompt.md
205
+ git commit -m "feat: add plan document reviewer prompt template"
206
+ ```
207
+
208
+ ---
209
+
210
+ ### Task 4: Add Review Loop to Writing-Plans Skill
211
+
212
+ **Files:**
213
+ - Modify: `skills/writing-plans/SKILL.md`
214
+
215
+ - [ ] **Step 1:** Read current skill file
216
+
217
+ Run: `cat skills/writing-plans/SKILL.md`
218
+
219
+ - [ ] **Step 2:** Add chunk-by-chunk review section
220
+
221
+ Add before the "Execution Handoff" section:
222
+
223
+ ```markdown
224
+ ## Plan Review Loop
225
+
226
+ After completing each chunk of the plan:
227
+
228
+ 1. Dispatch plan-document-reviewer subagent for the current chunk
229
+ - Provide: chunk content, path to spec document
230
+ 2. If ❌ Issues Found:
231
+ - Fix the issues in the chunk
232
+ - Re-dispatch reviewer for that chunk
233
+ - Repeat until ✅ Approved
234
+ 3. If ✅ Approved: proceed to next chunk (or execution handoff if last chunk)
235
+
236
+ **Chunk boundaries:** Use `## Chunk N: <name>` headings to delimit chunks. Each chunk should be ≤1000 lines and logically self-contained.
237
+ ```
238
+
239
+ - [ ] **Step 3:** Update task syntax examples to use checkboxes
240
+
241
+ Change the Task Structure section to show checkbox syntax:
242
+
243
+ ```markdown
244
+ ### Task N: [Component Name]
245
+
246
+ - [ ] **Step 1:** Write the failing test
247
+ - File: `tests/path/test.py`
248
+ ...
249
+ ```
250
+
251
+ - [ ] **Step 4:** Verify the review loop section was added
252
+
253
+ Run: `grep -A 15 "Plan Review Loop" skills/writing-plans/SKILL.md`
254
+ Expected: Shows the new review loop section
255
+
256
+ - [ ] **Step 5:** Verify the task syntax examples were updated
257
+
258
+ Run: `grep -A 5 "Task N:" skills/writing-plans/SKILL.md`
259
+ Expected: Shows checkbox syntax `### Task N:`
260
+
261
+ - [ ] **Step 6:** Commit
262
+
263
+ ```bash
264
+ git add skills/writing-plans/SKILL.md
265
+ git commit -m "feat: add plan review loop and checkbox syntax to writing-plans skill"
266
+ ```
267
+
268
+ ---
269
+
270
+ ## Chunk 3: Update Plan Document Header
271
+
272
+ This chunk updates the plan document header template to reference the new checkbox syntax requirements.
273
+
274
+ ### Task 5: Update Plan Header Template in Writing-Plans Skill
275
+
276
+ **Files:**
277
+ - Modify: `skills/writing-plans/SKILL.md`
278
+
279
+ - [ ] **Step 1:** Read current plan header template
280
+
281
+ Run: `grep -A 20 "Plan Document Header" skills/writing-plans/SKILL.md`
282
+
283
+ - [ ] **Step 2:** Update the header template to reference checkbox syntax
284
+
285
+ The plan header should note that tasks and steps use checkbox syntax. Update the header comment:
286
+
287
+ ```markdown
288
+ > **For agentic workers:** REQUIRED: Use superpowers:subagent-driven-development (if subagents available) or superpowers:executing-plans to implement this plan. Tasks and steps use checkbox (`- [ ]`) syntax for tracking.
289
+ ```
290
+
291
+ - [ ] **Step 3:** Verify the change
292
+
293
+ Run: `grep -A 5 "For agentic workers:" skills/writing-plans/SKILL.md`
294
+ Expected: Shows updated header with checkbox syntax mention
295
+
296
+ - [ ] **Step 4:** Commit
297
+
298
+ ```bash
299
+ git add skills/writing-plans/SKILL.md
300
+ git commit -m "docs: update plan header to reference checkbox syntax"
301
+ ```