squad-station 0.5.2 → 0.5.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.
@@ -1,42 +1,65 @@
1
- # Superpowers — Playbook v5.0.0
1
+ # Superpowers — Playbook v5.0.5
2
2
 
3
- > Practical guide for Superpowers — installation, usage, troubleshooting.
4
-
5
- ---
3
+ > Practical guide for Superpowers v5.0.5 — installation, usage, troubleshooting.
6
4
 
7
5
  ## Installation & Setup
8
6
 
9
7
  ### Claude Code — Official Marketplace
10
8
 
11
9
  ```bash
10
+ # Install from official Claude plugin marketplace
12
11
  /plugin install superpowers@claude-plugins-official
13
12
  ```
14
13
 
15
14
  ### Claude Code — Community Marketplace
16
15
 
17
16
  ```bash
17
+ # Register marketplace
18
18
  /plugin marketplace add obra/superpowers-marketplace
19
+
20
+ # Install plugin
19
21
  /plugin install superpowers@superpowers-marketplace
20
22
  ```
21
23
 
22
- ### Cursor
24
+ ### Cursor (updated v5.0.3)
23
25
 
24
26
  ```text
25
- /plugin-add superpowers
27
+ # In Cursor Agent chat
28
+ /add-plugin superpowers
26
29
  ```
27
30
 
31
+ > **NOTE:** Cursor uses camelCase hooks format (`hooks-cursor.json`). Platform detection checks `CURSOR_PLUGIN_ROOT` first (Cursor also sets `CLAUDE_PLUGIN_ROOT`).
32
+
28
33
  ### Codex
29
34
 
35
+ Tell Codex:
30
36
  ```
31
37
  Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.codex/INSTALL.md
32
38
  ```
33
39
 
34
- ### OpenCode
40
+ ### OpenCode (simplified v5.0.4)
35
41
 
42
+ Add to `opencode.json`:
43
+ ```json
44
+ {
45
+ "superpowers": "git+https://github.com/obra/superpowers"
46
+ }
36
47
  ```
37
- Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md
48
+
49
+ Plugin auto-registers skills — no symlinks or `skills.paths` config needed.
50
+
51
+ ### Gemini CLI (NEW v5.0.1)
52
+
53
+ Clone repo locally → Gemini CLI auto-detects via `gemini-extension.json`:
54
+
55
+ ```bash
56
+ git clone https://github.com/obra/superpowers.git
57
+ cd superpowers
58
+ # Gemini CLI will load GEMINI.md automatically
38
59
  ```
39
60
 
61
+ > **NOTE:** Gemini CLI **does not support subagents**. Skills will auto-fallback to `executing-plans` instead of SDD.
62
+
40
63
  ### Verify Installation
41
64
 
42
65
  After installation, start a new session and try:
@@ -47,33 +70,45 @@ After installation, start a new session and try:
47
70
  ### Update
48
71
 
49
72
  ```bash
73
+ # Claude Code
50
74
  /plugin update superpowers
51
- ```
52
75
 
53
- ---
76
+ # Skills update automatically with the plugin
77
+ ```
54
78
 
55
79
  ## Day 1 Workflow
56
80
 
57
- ### Scenario: Build a new feature
58
-
59
- ```
60
- 1. Open Claude Code / Cursor (Superpowers installed)
61
- 2. Say: "Build feature X for project Y"
62
- 3. Agent AUTOMATICALLY invokes brainstorming
63
- 4. Agent asks you questions (1 question at a time, usually MCQ)
64
- 5. You answer → Agent continues asking until it has enough understanding
65
- 6. Agent proposes 2-3 approaches + recommendation
66
- 7. You choose an approach
67
- 8. Agent presents design section by section → you approve/modify
68
- 9. Agent writes spec → docs/superpowers/specs/
69
- 10. Agent AUTOMATICALLY transitions to writing-plans
70
- 11. Agent creates plan with bite-sized tasks
71
- 12. You say "Go" → Agent dispatches subagents (SDD workflow)
72
- 13. Each task: Implement Spec Review → Quality Review
73
- 14. All done Agent asks: Merge / PR / Keep / Discard?
74
- ```
75
-
76
- ### Your actions on Day 1
81
+ ### Scenario: You want to build a new feature
82
+
83
+ ```mermaid
84
+ flowchart TD
85
+ A["Open Claude Code / Cursor<br/>Superpowers installed"] --> B["Say: Build feature X for project Y"]
86
+ B --> C["Agent AUTOMATICALLY invokes brainstorming"]
87
+ C --> D["Agent asks you questions<br/>(1 question at a time, usually MCQ)"]
88
+ D --> E["You answer"]
89
+ E --> F{"Agent understands enough?"}
90
+ F -->|"Not yet"| D
91
+ F -->|"Yes"| G["Agent proposes 2-3 approaches<br/>+ recommendation"]
92
+ G --> H["You choose approach"]
93
+ H --> I["Agent presents design<br/>section by section"]
94
+ I --> J{"Approve?"}
95
+ J -->|"Edit"| I
96
+ J -->|"OK"| K["Agent writes spec →<br/>docs/superpowers/specs/"]
97
+ K --> SR["Spec review loop<br/>(max 3 iterations)"]
98
+ SR --> URG["User review gate"]
99
+ URG --> L["Agent AUTOMATICALLY transitions to<br/>writing-plans"]
100
+ L --> M["Agent creates plan with<br/>bite-sized tasks"]
101
+ M --> PR["Plan review<br/>(single whole-plan, max 3x)"]
102
+ PR --> N{"Execution mode?"}
103
+ N -->|"SDD (recommended)"| O["Dispatch subagents"]
104
+ N -->|"Inline"| O2["Execute sequentially"]
105
+ O --> P["Each task: Implement → Spec Review → Quality Review"]
106
+ O2 --> P
107
+ P --> Q["All tasks complete"]
108
+ Q --> R["Agent asks: Merge / PR / Keep / Discard?"]
109
+ ```
110
+
111
+ ### Your Actions on Day 1
77
112
 
78
113
  | Step | What you do | What the agent does |
79
114
  |------|-------------|---------------------|
@@ -81,21 +116,21 @@ After installation, start a new session and try:
81
116
  | 2 | Answer questions | Ask 1 question at a time, MCQ preferred |
82
117
  | 3 | Choose approach | Propose 2-3 options |
83
118
  | 4 | Approve design sections | Present section by section |
84
- | 5 | Say "Go" | Create plan + dispatch subagents |
85
- | 6 | (Wait) | SDD: implement review → fix per task |
86
- | 7 | Choose Merge/PR/Keep/Discard | Execute choice + cleanup |
119
+ | 5 | Approve spec (v5.0.1) | Spec review + user review gate |
120
+ | 6 | Choose execution mode (v5.0.5) | SDD (recommended) or inline |
121
+ | 7 | Say "Go" | Create plan + dispatch subagents |
122
+ | 8 | (Wait) | SDD: implement → review → fix per task |
123
+ | 9 | Choose Merge/PR/Keep/Discard | Execute choice + cleanup |
87
124
 
88
125
  **Autonomous run time:** The agent can run **for hours** after you say "Go" without intervention (unless BLOCKED).
89
126
 
90
- ---
91
-
92
127
  ## Daily Operations
93
128
 
94
129
  ### When you want to build a new feature
95
130
 
96
131
  ```
97
132
  "Build [feature description]"
98
- → Agent auto-triggers: brainstorming → writing-plans → SDD
133
+ → Agent auto-triggers: brainstorming → writing-plans → SDD/inline
99
134
  ```
100
135
 
101
136
  ### When you want to fix a bug
@@ -136,8 +171,6 @@ After installation, start a new session and try:
136
171
  → Ends with spec document, does not auto-transition to implementation
137
172
  ```
138
173
 
139
- ---
140
-
141
174
  ## Strategic Configuration
142
175
 
143
176
  ### Instruction Priority
@@ -146,7 +179,7 @@ After installation, start a new session and try:
146
179
  User instructions (CLAUDE.md, AGENTS.md) > Superpowers skills > System prompt
147
180
  ```
148
181
 
149
- Override example: If `CLAUDE.md` says "don't use TDD" → Superpowers TDD skill is overridden.
182
+ **Override example:** If `CLAUDE.md` says "don't use TDD" → Superpowers TDD skill is overridden.
150
183
 
151
184
  ### Personal Skills (Shadowing)
152
185
 
@@ -162,12 +195,13 @@ Force using the superpowers version:
162
195
  Invoke superpowers:brainstorming ← Bypasses personal skill
163
196
  ```
164
197
 
165
- ### Skill Types
198
+ ### Execution Mode (v5.0.5)
166
199
 
167
- | Type | Behavior | Example |
168
- |------|----------|---------|
169
- | **Rigid** | Follow exactly, no adaptation | TDD, debugging, verification |
170
- | **Flexible** | Adapt principles to context | Patterns, techniques |
200
+ | Mode | When to use | Platform |
201
+ |------|-------------|----------|
202
+ | **SDD (recommended)** | Full autonomous with review | CC, Codex (subagent support) |
203
+ | **Inline** | Manual control, step-by-step | Any platform |
204
+ | **Fallback** | Platform doesn't support subagents | Gemini CLI, OpenCode |
171
205
 
172
206
  ### Model Selection for SDD
173
207
 
@@ -179,13 +213,12 @@ Invoke superpowers:brainstorming ← Bypasses personal skill
179
213
 
180
214
  ### Output Locations
181
215
 
182
- | Content | Default Path |
183
- |---------|-------------|
184
- | Specs | `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` |
185
- | Plans | `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md` |
186
- | Personal skills | `~/.claude/skills/` (CC) / `~/.agents/skills/` (Codex) |
187
-
188
- ---
216
+ | Content | Default Path | Override |
217
+ |---------|-------------|----------|
218
+ | Specs | `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` | User preference |
219
+ | Plans | `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md` | User preference |
220
+ | Personal skills (CC) | `~/.claude/skills/` | |
221
+ | Personal skills (Codex) | `~/.agents/skills/` | — |
189
222
 
190
223
  ## Cheat Sheet
191
224
 
@@ -195,8 +228,8 @@ Invoke superpowers:brainstorming ← Bypasses personal skill
195
228
  |-------|---------------|----------|
196
229
  | `brainstorming` | Any creative work | NO code before design approved |
197
230
  | `writing-plans` | Spec/requirements exist for multi-step task | Bite-sized tasks (2-5 min each) |
198
- | `subagent-driven-development` | Plan exists + platform supports subagent | Fresh subagent per task + two-stage review |
199
- | `executing-plans` | Plan exists + platform does NOT have subagent | Execute continuously, stop only on blocker |
231
+ | `subagent-driven-development` | Plan exists + user chose SDD (v5.0.5) | Fresh subagent per task + two-stage review |
232
+ | `executing-plans` | Plan exists + user chose inline / no subagent platform | Execute continuously, stop only on blocker |
200
233
  | `test-driven-development` | All implementation | NO production code without failing test first |
201
234
  | `systematic-debugging` | All technical issues | NO fixes without root cause investigation |
202
235
  | `verification-before-completion` | Before claiming done/fixed/passing | NO claims without fresh verification evidence |
@@ -204,8 +237,8 @@ Invoke superpowers:brainstorming ← Bypasses personal skill
204
237
  | `finishing-a-development-branch` | Implementation done, tests pass | Verify tests → Present 4 options → Execute |
205
238
  | `requesting-code-review` | After each task (SDD) or before merge | Dispatch code-reviewer subagent |
206
239
  | `receiving-code-review` | Receiving feedback from reviewer | Fix Critical immediately, Important before continuing |
207
- | `dispatching-parallel-agents` | Multiple independent domains | Identify domains → Create tasks → Dispatch → Integrate |
208
- | `writing-skills` | Creating a new skill | TDD for documentation: RED → GREEN → REFACTOR |
240
+ | `dispatching-parallel-agents` | Multiple independent domains | Identify → Create → Dispatch → Integrate |
241
+ | `writing-skills` | Creating a new skill | TDD for documentation |
209
242
  | `using-superpowers` | Every conversation | 1% rule: if a skill COULD apply → MUST invoke |
210
243
 
211
244
  ### TDD Cycle Quick Reference
@@ -222,13 +255,22 @@ Invoke superpowers:brainstorming ← Bypasses personal skill
222
255
  ### SDD Per-Task Flow
223
256
 
224
257
  ```
225
- 1. Dispatch implementer subagent (full task text + context)
258
+ 1. Dispatch implementer subagent (full task text + context only needed — v5.0.2)
226
259
  2. Handle status: DONE → review | BLOCKED → assess | NEEDS_CONTEXT → provide
227
260
  3. Dispatch spec reviewer → approved? → yes → next | no → fix → re-review
228
261
  4. Dispatch quality reviewer → approved? → yes → next task | no → fix → re-review
229
262
  5. Mark task complete
230
263
  ```
231
264
 
265
+ ### Review Loop (v5.0.4)
266
+
267
+ ```
268
+ 1. Reviewer receives COMPLETE document (not chunks)
269
+ 2. Only flag issues that cause REAL implementation problems
270
+ 3. Max 3 iterations (was 5)
271
+ 4. If still unresolved → escalate to human
272
+ ```
273
+
232
274
  ### Finishing Branch Options
233
275
 
234
276
  | Option | Command | Cleanup worktree? |
@@ -238,44 +280,55 @@ Invoke superpowers:brainstorming ← Bypasses personal skill
238
280
  | 3. Keep as-is | (nothing) | ❌ |
239
281
  | 4. Discard | Type "discard" to confirm | ✅ |
240
282
 
241
- ---
242
-
243
283
  ## Troubleshooting
244
284
 
245
285
  ### Installation Issues
246
286
 
247
- | Error | Fix |
248
- |-------|-----|
249
- | Skills not triggering | Re-run `/plugin install superpowers` |
250
- | "Legacy skills dir" warning | Move skills to `~/.claude/skills/` then delete old dir |
251
- | Codex not loading skills | Follow `docs/README.codex.md` step by step |
287
+ | Error | Cause | Fix |
288
+ |-------|-------|-----|
289
+ | Skills not triggering | Plugin not installed correctly | `/plugin install superpowers` |
290
+ | "Legacy skills dir" warning | Old `~/.config/superpowers/skills/` still exists | Delete old dir |
291
+ | Codex not loading skills | Not set up correctly | Follow `.codex/INSTALL.md` |
292
+ | OpenCode not loading | Not configured correctly | Add 1 line to `opencode.json` (v5.0.4) |
293
+ | Cursor hooks error | Platform detection wrong | Use hooks-cursor.json (v5.0.3) |
294
+ | Gemini CLI not recognized | Extension not detected | Check `gemini-extension.json` at root |
252
295
 
253
296
  ### Runtime Issues
254
297
 
255
- | Error | Fix |
256
- |-------|-----|
257
- | Agent doesn't brainstorm and codes directly | Say explicitly: "Let's brainstorm first" or check plugin install |
258
- | Agent skips TDD | Check if CLAUDE.md has an override |
259
- | Subagent BLOCKED continuously | Break task into smaller pieces, upgrade model |
260
- | Review loop runs forever | After 5 iterations → escalate to human |
261
- | Agent uses "should work" | Agent MUST run command before claiming |
262
- | Personal skill override | Use `superpowers:skill-name` prefix to force |
263
-
264
- ### SDD Issues
265
-
266
- | Error | Fix |
267
- |-------|-----|
268
- | Implementer NEEDS_CONTEXT | Provide missing context, re-dispatch |
269
- | Spec reviewer reject | Implementer fixes, re-review |
270
- | Multiple subagents conflict | NEVER dispatch parallel implementation subagents |
271
-
272
- ---
298
+ | Error | Cause | Fix |
299
+ |-------|-------|-----|
300
+ | Agent doesn't brainstorm and codes directly | Skill not triggered | Say explicitly: "Let's brainstorm first" or check install |
301
+ | Agent skips TDD | CLAUDE.md override | Check if CLAUDE.md has "don't use TDD" |
302
+ | Subagent BLOCKED continuously | Task too complex | Break task into smaller pieces, upgrade model |
303
+ | Review loop runs forever | Reviewer/implementer conflict | Max 3 iterations → escalate (v5.0.4) |
304
+ | Spec review skipped | Checklist/flowchart missing step | Fixed v5.0.1 |
305
+ | Context re-inject on resume | SessionStart fires on resume | Fixed v5.0.3: no longer fires on `--resume` |
306
+
307
+ ### Brainstorm Server Issues
308
+
309
+ | Error | Cause | Fix |
310
+ |-------|-------|-----|
311
+ | Server won't start (Node 22+) | ESM module conflict | server.js → server.cjs (v5.0.5) |
312
+ | Server auto-stops after 60s (Windows) | PID namespace invisible | PID monitoring skipped on Windows (v5.0.5) |
313
+ | stop-server.sh won't kill process | Process survives SIGTERM | SIGTERM + 2s wait + SIGKILL fallback (v5.0.5) |
314
+ | Server orphaned | No idle timeout | 30min idle auto-exit (v5.0.2) |
315
+ | `npm install` needed | Dependencies vendored | Zero-dep server.cjs — no npm needed (v5.0.2) |
316
+
317
+ ### Cross-Platform Issues
318
+
319
+ | Error | Platform | Fix |
320
+ |-------|----------|-----|
321
+ | Hook hangs indefinitely | macOS Bash 5.3+ (Homebrew) | printf replaces heredoc (v5.0.3) |
322
+ | "Bad substitution" | Ubuntu/Debian (dash) | `$0` replaces `${BASH_SOURCE[0]:-$0}` (v5.0.3) |
323
+ | Script not found | NixOS, FreeBSD | `#!/usr/bin/env bash` shebangs (v5.0.3) |
324
+ | Single quotes break hook | Windows cmd + Linux | Escaped double quotes (v5.0.1) |
325
+ | Server silent fail | Windows Git Bash | Auto-detect → foreground mode (v5.0.3) |
273
326
 
274
327
  ## Best Practices
275
328
 
276
329
  ### ✅ Gold Rules
277
330
 
278
- 1. **Always let the agent brainstorm first** — Even if the project seems "simple"
331
+ 1. **Always let the agent brainstorm first** — Even if the project seems "simple". Anti-pattern: "This is too simple to need a design"
279
332
  2. **No code before tests** — If you've already coded → DELETE. Start over
280
333
  3. **Verify before claiming** — Run command → Read output → THEN claim
281
334
  4. **1 question per message** — Don't overwhelm with multiple questions
@@ -284,31 +337,22 @@ Invoke superpowers:brainstorming ← Bypasses personal skill
284
337
  7. **Worktree for all implementation** — Don't code on main/master
285
338
  8. **Trust the process** — Systematic debugging > random fixes
286
339
  9. **Two-stage review** — Spec compliance FIRST, code quality SECOND
287
- 10. **Escalate when stuck** — After 5 review iterations → ask human
340
+ 10. **Escalate when stuck** — After 3 review iterations → ask human (v5.0.4)
341
+ 11. **Approve spec before plan** — User review gate mandatory (v5.0.1)
288
342
 
289
343
  ### ❌ Anti-Patterns
290
344
 
291
- | Anti-Pattern | Replace with |
292
- |-------------|-------------|
293
- | "Too simple to need a design" | Keep brainstorming brief but it MUST happen |
294
- | "I'll test after" | RED-GREEN-REFACTOR |
295
- | "Should work now" | Run verification command |
296
- | "Just this once" | No exceptions |
297
- | "TDD is dogmatic" | TDD IS pragmatic: faster than debugging |
298
- | "This doesn't need a skill" | If skill exists use it. 1% rule |
299
- | "Fix multiple things at once" | One variable at a time |
300
- | Skip spec review, go to quality | Spec compliance ✅ THEN quality |
301
-
302
- ### When NOT to use Superpowers workflow
303
-
304
- | Scenario | Reason |
305
- |----------|--------|
306
- | Throwaway prototypes | TDD not needed |
307
- | Generated code | Machine-generated, manual TDD not needed |
308
- | Configuration files | TDD can be skipped |
309
- | Quick one-line fix | Brainstorming can be skipped |
310
-
311
- ---
345
+ | Anti-Pattern | Why it's wrong | Replace with |
346
+ |-------------|----------------|--------------|
347
+ | "Too simple to need a design" | Simple projects have most unexamined assumptions | Brief but MUST brainstorm |
348
+ | "I'll test after" | Tests after = test what you built, not what's required | RED-GREEN-REFACTOR |
349
+ | "Should work now" | "Should" ≠ evidence | Run verification command |
350
+ | "Keep as reference" | You'll adapt it = testing after | Delete means delete |
351
+ | "Just this once" | Slippery slope | No exceptions |
352
+ | "I need more context first" | Skills tell HOW to explore | Check skills BEFORE exploring |
353
+ | "This doesn't need a skill" | If skill exists use it. 1% rule | Invoke skill first |
354
+ | Skip spec review, go to quality | Wrong order! | Spec compliance ✅ THEN quality |
355
+ | Minor formatting blocks review | Wastes iterations | Only substance issues (v5.0.4) |
312
356
 
313
357
  ## Custom Skills — Creating New Skills
314
358
 
@@ -340,6 +384,8 @@ Core principle in 1-2 sentences.
340
384
  [Anti-patterns + fixes]
341
385
  ```
342
386
 
387
+ > ⚠️ **IMPORTANT:** **Description Trap:** Skill descriptions must only contain triggering conditions ("Use when..."), NOT summarize the workflow. Claude will follow the description instead of reading the flowchart if the description is too detailed.
388
+
343
389
  ### TDD Process for Skills
344
390
 
345
391
  ```
@@ -347,3 +393,11 @@ Core principle in 1-2 sentences.
347
393
  2. GREEN: Write minimal SKILL.md addressing those violations
348
394
  3. REFACTOR: Find new rationalizations → plug loopholes → re-verify
349
395
  ```
396
+
397
+ ---
398
+
399
+ ## Resources
400
+
401
+ | Resource | Link |
402
+ |---|---|
403
+ | **GitHub** | [obra/superpowers](https://github.com/obra/superpowers) |
package/bin/run.js CHANGED
@@ -43,7 +43,7 @@ function install() {
43
43
 
44
44
  function installBinary() {
45
45
  // Binary version — may differ from npm package version
46
- var VERSION = '0.5.1';
46
+ var VERSION = '0.5.3';
47
47
  var REPO = 'thientranhung/squad-station';
48
48
 
49
49
  var platformMap = { darwin: 'darwin', linux: 'linux' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squad-station",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "Message routing and orchestration for AI agent squads",
5
5
  "repository": {
6
6
  "type": "git",