squad-station 0.5.1

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.
@@ -0,0 +1,621 @@
1
+ # GSD (Get Shit Done) — Playbook v1.22
2
+
3
+ > Practical operational handbook for the GSD system for developers — from installation, Day 1 workflow, to best practices and advanced troubleshooting.
4
+
5
+ ---
6
+
7
+ ## Part I: Installation & Environment Setup
8
+
9
+ ### 1.1. Quick Installation (30 seconds)
10
+
11
+ ```bash
12
+ npx get-shit-done-cc@latest
13
+ ```
14
+
15
+ The installer will ask you 2 questions:
16
+ 1. **Runtime:** Claude Code, OpenCode, Gemini, Codex, or All
17
+ 2. **Location:** Global (all projects) or Local (current project only)
18
+
19
+ **Verify successful installation:**
20
+
21
+ | Runtime | Verification Command |
22
+ |---|---|
23
+ | Claude Code | `/gsd:help` |
24
+ | Gemini CLI | `/gsd:help` |
25
+ | OpenCode | `/gsd-help` |
26
+ | Codex | `$gsd-help` |
27
+
28
+ ### 1.2. Non-Interactive Installation (Docker, CI, Scripts)
29
+
30
+ ```bash
31
+ # Claude Code
32
+ npx get-shit-done-cc --claude --global # → ~/.claude/
33
+ npx get-shit-done-cc --claude --local # → ./.claude/
34
+
35
+ # Gemini CLI
36
+ npx get-shit-done-cc --gemini --global # → ~/.gemini/
37
+
38
+ # OpenCode
39
+ npx get-shit-done-cc --opencode --global # → ~/.config/opencode/
40
+
41
+ # Codex
42
+ npx get-shit-done-cc --codex --global # → ~/.codex/
43
+
44
+ # All
45
+ npx get-shit-done-cc --all --global
46
+ ```
47
+
48
+ ### 1.3. Updating
49
+
50
+ ```bash
51
+ npx get-shit-done-cc@latest
52
+ ```
53
+
54
+ From v1.17+, the installer automatically backs up local modifications to `gsd-local-patches/`. Use `/gsd:reapply-patches` to restore them.
55
+
56
+ ### 1.4. Skip Permissions Mode (Recommended)
57
+
58
+ ```bash
59
+ claude --dangerously-skip-permissions
60
+ ```
61
+
62
+ GSD is designed for continuous automation. Stopping to approve `date` and `git commit` 50 times per session breaks the "flow" and significantly reduces productivity.
63
+
64
+ **Alternative — Granular Permissions:**
65
+
66
+ ```json
67
+ {
68
+ "permissions": {
69
+ "allow": [
70
+ "Bash(date:*)", "Bash(echo:*)", "Bash(cat:*)", "Bash(ls:*)",
71
+ "Bash(mkdir:*)", "Bash(wc:*)", "Bash(head:*)", "Bash(tail:*)",
72
+ "Bash(sort:*)", "Bash(grep:*)", "Bash(tr:*)",
73
+ "Bash(git add:*)", "Bash(git commit:*)", "Bash(git status:*)",
74
+ "Bash(git log:*)", "Bash(git diff:*)", "Bash(git tag:*)"
75
+ ]
76
+ }
77
+ }
78
+ ```
79
+
80
+ ### 1.5. Security — Configuring Deny List
81
+
82
+ **Mandatory** configuration before using GSD with any project containing secrets.
83
+
84
+ Add to `.claude/settings.json`:
85
+
86
+ ```json
87
+ {
88
+ "permissions": {
89
+ "deny": [
90
+ "Read(.env)",
91
+ "Read(.env.*)",
92
+ "Read(**/secrets/*)",
93
+ "Read(**/*credential*)",
94
+ "Read(**/*.pem)",
95
+ "Read(**/*.key)"
96
+ ]
97
+ }
98
+ }
99
+ ```
100
+
101
+ ### 1.6. Docker/Container Environments
102
+
103
+ If you encounter tilde (`~`) path errors:
104
+
105
+ ```bash
106
+ CLAUDE_CONFIG_DIR=/home/youruser/.claude npx get-shit-done-cc --global
107
+ ```
108
+
109
+ ---
110
+
111
+ ## Part II: Day 1 — New Project (Greenfield)
112
+
113
+ ### 2.1. Complete A→Z Workflow
114
+
115
+ ```bash
116
+ # Step 0: Launch Claude Code
117
+ claude --dangerously-skip-permissions
118
+
119
+ # Step 1: Initialize project (Q&A → Research → Requirements → Roadmap)
120
+ /gsd:new-project
121
+
122
+ # Step 2: Clear context, begin phase loop
123
+ /clear
124
+
125
+ # Steps 3-6: Loop for each phase
126
+ /gsd:discuss-phase 1 # Lock in preferences
127
+ /gsd:plan-phase 1 # Research + Plan + Verify
128
+ /gsd:execute-phase 1 # Parallel wave execution
129
+ /gsd:verify-work 1 # Manual UAT
130
+ /clear
131
+
132
+ # Repeat for phase 2, 3, ...
133
+ /gsd:discuss-phase 2
134
+ /gsd:plan-phase 2
135
+ /gsd:execute-phase 2
136
+ /gsd:verify-work 2
137
+ /clear
138
+
139
+ # When all phases are complete
140
+ /gsd:audit-milestone # Check DoD
141
+ /gsd:complete-milestone # Archive + Tag release
142
+ ```
143
+
144
+ ### 2.2. Initializing from an Existing Document
145
+
146
+ If you already have a PRD or idea doc:
147
+
148
+ ```bash
149
+ /gsd:new-project --auto @prd.md
150
+ ```
151
+
152
+ The system automatically runs research → requirements → roadmap from the document. Continue the normal workflow from discuss-phase.
153
+
154
+ ### 2.3. Tips for `/gsd:new-project`
155
+
156
+ **Invest time in Q&A.** This is the most important step.
157
+ - Answer in detail, don't accept defaults hastily.
158
+ - Clearly state edge cases, technical constraints, preferences.
159
+ - Clearly describe MVP (v1) versus v2.
160
+ - The AI will keep asking until it understands 100%.
161
+
162
+ ---
163
+
164
+ ## Part III: Day 1 — Existing Project (Brownfield)
165
+
166
+ ### 3.1. Map Codebase First
167
+
168
+ ```bash
169
+ # Step 0: Analyze codebase (4 mapper agents in parallel)
170
+ /gsd:map-codebase
171
+
172
+ # Output:
173
+ # codebase/STACK.md → Tech stack, dependencies
174
+ # codebase/ARCHITECTURE.md → Code structure, patterns
175
+ # codebase/CONVENTIONS.md → Naming, style, practices
176
+ # codebase/CONCERNS.md → Tech debt, security, risks
177
+
178
+ # Step 1: Initialize (questions focus on NEW features)
179
+ /gsd:new-project
180
+ # (normal workflow from here)
181
+ ```
182
+
183
+ ### 3.2. Why Map First?
184
+
185
+ - AI **understands the existing code** → doesn't re-ask things already clear in the code
186
+ - Plans **follow conventions** discovered automatically
187
+ - Avoids creating **"broken windows"** in the existing architecture
188
+
189
+ ---
190
+
191
+ ## Part IV: Daily Operations — Phase Loop
192
+
193
+ ### 4.1. Discuss Phase — "Shape the Build"
194
+
195
+ ```bash
196
+ /gsd:discuss-phase 1
197
+ ```
198
+
199
+ **When to use:** Before every planning. **ALWAYS** use if you have specific ideas.
200
+
201
+ **The system analyzes and asks questions based on feature type:**
202
+
203
+ | Feature Type | Gray Areas AI Will Ask About |
204
+ |---|---|
205
+ | **Visual (UI)** | Layout, density, interactions, empty states, responsive behavior |
206
+ | **APIs/CLIs** | Response format, flags, error handling, verbosity, authentication |
207
+ | **Content** | Structure, tone, depth, flow, localization |
208
+ | **Organization** | Grouping criteria, naming conventions, duplicates, exceptions |
209
+
210
+ **Pro-tip:**
211
+ - **Deep = precise.** The more detailed your answers, the more accurately AI builds to your intent.
212
+ - **Shallow = defaults.** Skipping discuss = receiving a generic product.
213
+ - **Output:** `{N}-CONTEXT.md` — this file guides all research + planning.
214
+
215
+ ### 4.2. Plan Phase — "Blueprint the Build"
216
+
217
+ ```bash
218
+ /gsd:plan-phase 1
219
+ ```
220
+
221
+ **When to use:** After discuss, before execute.
222
+
223
+ **Automated 3-step process:**
224
+ 1. **Research** — 4 researchers in parallel (stack, features, architecture, pitfalls)
225
+ 2. **Plan** — Create 2-3 atomic plans with XML structure
226
+ 3. **Verify** — Plan checker validates 8 dimensions, loops up to 3 times
227
+
228
+ **Useful flags:**
229
+
230
+ | Flag | Effect |
231
+ |---|---|
232
+ | `--skip-research` | Skip research (familiar domain) |
233
+ | `--skip-verify` | Skip plan checker (quick iterations) |
234
+
235
+ **Before planning — see what AI intends:**
236
+
237
+ ```bash
238
+ /gsd:list-phase-assumptions 1
239
+ ```
240
+
241
+ This command shows you how Claude intends to approach the phase, before committing to a plan. If the direction is wrong → correct it with discuss.
242
+
243
+ ### 4.3. Execute Phase — "Build It"
244
+
245
+ ```bash
246
+ /gsd:execute-phase 1
247
+ ```
248
+
249
+ **When to use:** After plans are approved.
250
+
251
+ **Mechanism:**
252
+ - Plans run in **waves** (parallel when independent, sequential when dependent)
253
+ - Each executor receives **200K clean tokens** + PROJECT.md + plan
254
+ - **Atomic commit** as soon as each task completes
255
+ - Auto-verify when all plans finish
256
+
257
+ **Walk away.** This is when you can go grab a coffee. Come back, check git log.
258
+
259
+ ### 4.4. Verify Work — "Test It"
260
+
261
+ ```bash
262
+ /gsd:verify-work 1
263
+ ```
264
+
265
+ **When to use:** After execute, before moving to the next phase.
266
+
267
+ **Guided UAT process:**
268
+ 1. System lists **testable deliverables**
269
+ 2. Guides you to test **each one**: "Can you login with email?"
270
+ 3. You respond: ✅ Yes / ❌ No + error description
271
+
272
+ **If there are errors:**
273
+ - Debug agents automatically diagnose root cause
274
+ - Create specific fix plans
275
+ - Re-run `/gsd:execute-phase 1` → fix plans are applied
276
+ - **You DON'T need to manually debug**
277
+
278
+ ### 4.5. Context Management Between Phases
279
+
280
+ `/clear` between phases is a **best practice**. GSD is designed around fresh contexts.
281
+
282
+ ```bash
283
+ /gsd:execute-phase 1
284
+ /gsd:verify-work 1
285
+ /clear # ← Clear context before new phase
286
+ /gsd:discuss-phase 2
287
+ ```
288
+
289
+ ---
290
+
291
+ ## Part V: Milestone Management
292
+
293
+ ### 5.1. Audit Milestone
294
+
295
+ ```bash
296
+ /gsd:audit-milestone
297
+ ```
298
+
299
+ Check if the milestone has met the **Definition of Done**:
300
+ - All requirements implemented?
301
+ - Any stubs/placeholder code?
302
+ - Test coverage meets requirements?
303
+
304
+ ### 5.2. Complete Milestone
305
+
306
+ ```bash
307
+ /gsd:complete-milestone
308
+ ```
309
+
310
+ - Archive milestone documents
311
+ - Tag release on git
312
+ - Clean up state for the next milestone
313
+
314
+ ### 5.3. Starting a New Milestone
315
+
316
+ ```bash
317
+ /gsd:new-milestone [name]
318
+ ```
319
+
320
+ Like `/gsd:new-project` but for an existing codebase:
321
+ - Describe the new milestone goals
322
+ - Research domain for new features
323
+ - Scope new requirements
324
+ - Create a new roadmap
325
+
326
+ ### 5.4. Handling Gaps After Audit
327
+
328
+ ```bash
329
+ /gsd:audit-milestone # Discover gaps
330
+ /gsd:plan-milestone-gaps # Create phases to close gaps
331
+ # (normal phase workflow)
332
+ /gsd:complete-milestone # Archive when done
333
+ ```
334
+
335
+ ---
336
+
337
+ ## Part VI: Scope Management — Mid-Course Changes
338
+
339
+ ### 6.1. Add Phase
340
+
341
+ ```bash
342
+ /gsd:add-phase # Append to end of roadmap
343
+ ```
344
+
345
+ ### 6.2. Insert Emergency Phase
346
+
347
+ ```bash
348
+ /gsd:insert-phase 3 # Insert between phase 3 and 4 (auto-renumber)
349
+ ```
350
+
351
+ ### 6.3. Remove Phase
352
+
353
+ ```bash
354
+ /gsd:remove-phase 7 # Descope phase 7, renumber
355
+ ```
356
+
357
+ ---
358
+
359
+ ## Part VII: Quick Mode — Ad-hoc Tasks
360
+
361
+ ### 7.1. Quick Task
362
+
363
+ ```bash
364
+ /gsd:quick
365
+ > "Fix login button not responding on mobile Safari"
366
+ ```
367
+
368
+ - **Same quality agents** (planner + executor)
369
+ - **Skip:** Research, plan checker, verifier
370
+ - **Separate tracking:** `.planning/quick/001-fix-login-button/`
371
+ - **Use for:** Bug fixes, small features, config changes
372
+
373
+ ### 7.2. Quick with Full Checks
374
+
375
+ ```bash
376
+ /gsd:quick --full # Adds plan-checking + verification
377
+ ```
378
+
379
+ ### 7.3. Quick with Discussion
380
+
381
+ ```bash
382
+ /gsd:quick --discuss # Pre-planning discussion before execute
383
+ ```
384
+
385
+ ---
386
+
387
+ ## Part VIII: Session Management
388
+
389
+ ### 8.1. Pausing Mid-Session
390
+
391
+ ```bash
392
+ /gsd:pause-work # Create handoff note
393
+ ```
394
+
395
+ ### 8.2. Resuming Work
396
+
397
+ ```bash
398
+ /gsd:resume-work # Full context restoration
399
+ # or
400
+ /gsd:progress # See where you are + next steps
401
+ ```
402
+
403
+ ### 8.3. Systematic Debugging
404
+
405
+ ```bash
406
+ /gsd:debug "Login fails after password change"
407
+ ```
408
+
409
+ - Persistent debug state
410
+ - Root cause analysis
411
+ - Fix plan generation
412
+
413
+ ---
414
+
415
+ ## Part IX: Strategic Configuration
416
+
417
+ ### 9.1. Switching Model Profiles
418
+
419
+ ```bash
420
+ /gsd:set-profile quality # Max quality, Opus heavy
421
+ /gsd:set-profile balanced # Default - Opus for planning only
422
+ /gsd:set-profile budget # Cost-effective - Sonnet/Haiku
423
+ ```
424
+
425
+ ### 9.2. Comprehensive Configuration via Settings
426
+
427
+ ```bash
428
+ /gsd:settings # Interactive config
429
+ ```
430
+
431
+ ### 9.3. Git Branching
432
+
433
+ | Strategy | When to use | Branch name template |
434
+ |---|---|---|
435
+ | `none` | Solo dev, simple projects | N/A |
436
+ | `phase` | Code review per phase | `gsd/phase-{phase}-{slug}` |
437
+ | `milestone` | Release branches | `gsd/{milestone}-{slug}` |
438
+
439
+ ### 9.4. Workflow Presets by Scenario
440
+
441
+ ```bash
442
+ # Rapid prototyping - speed > quality
443
+ /gsd:settings
444
+ → mode: yolo, granularity: coarse, profile: budget
445
+ → research: off, plan_check: off, verifier: off
446
+
447
+ # Normal development
448
+ /gsd:settings
449
+ → mode: interactive, granularity: standard, profile: balanced
450
+ → research: on, plan_check: on, verifier: on
451
+
452
+ # Production code - quality > speed
453
+ /gsd:settings
454
+ → mode: interactive, granularity: fine, profile: quality
455
+ → research: on, plan_check: on, verifier: on
456
+ ```
457
+
458
+ ---
459
+
460
+ ## Part X: Cheat Sheet — Quick Reference
461
+
462
+ ### Group 1: Initialization
463
+
464
+ | Command | Meaning |
465
+ |---|---|
466
+ | `/gsd:map-codebase` | Analyze existing codebase (brownfield) |
467
+ | `/gsd:new-project [--auto @file.md]` | Initialize project: Q&A → Research → Roadmap |
468
+ | `/gsd:new-milestone [name]` | Start new milestone for current project |
469
+
470
+ ### Group 2: Core Phase Loop
471
+
472
+ | Command | Meaning |
473
+ |---|---|
474
+ | `/gsd:discuss-phase [N] [--auto]` | Lock in preferences before planning |
475
+ | `/gsd:plan-phase [N] [--auto]` | Research + Plan + Verify (`--skip-research`, `--skip-verify`) |
476
+ | `/gsd:execute-phase <N>` | Parallel wave execution with atomic commits |
477
+ | `/gsd:verify-work [N]` | Manual UAT + auto-diagnosis |
478
+ | `/gsd:validate-phase [N]` | Retroactive test coverage audit (Nyquist) |
479
+
480
+ ### Group 3: Milestone Management
481
+
482
+ | Command | Meaning |
483
+ |---|---|
484
+ | `/gsd:audit-milestone` | Check DoD |
485
+ | `/gsd:complete-milestone` | Archive + Tag release |
486
+ | `/gsd:plan-milestone-gaps` | Create phases for gaps from audit |
487
+
488
+ ### Group 4: Phase Management
489
+
490
+ | Command | Meaning |
491
+ |---|---|
492
+ | `/gsd:add-phase` | Add phase to end of roadmap |
493
+ | `/gsd:insert-phase [N]` | Insert emergency phase |
494
+ | `/gsd:remove-phase [N]` | Remove phase + renumber |
495
+ | `/gsd:list-phase-assumptions [N]` | View Claude's intended approach |
496
+ | `/gsd:research-phase [N]` | Dedicated deep research |
497
+
498
+ ### Group 5: Session & Navigation
499
+
500
+ | Command | Meaning |
501
+ |---|---|
502
+ | `/gsd:progress` | Where am I? Next step? |
503
+ | `/gsd:resume-work` | Restore context from previous session |
504
+ | `/gsd:pause-work` | Create handoff note |
505
+ | `/gsd:help` | All commands |
506
+ | `/gsd:update` | Update GSD |
507
+
508
+ ### Group 6: Utilities
509
+
510
+ | Command | Meaning |
511
+ |---|---|
512
+ | `/gsd:quick [--full] [--discuss]` | Ad-hoc task with GSD guarantees |
513
+ | `/gsd:debug [desc]` | Systematic debugging |
514
+ | `/gsd:add-todo [desc]` | Jot down an idea |
515
+ | `/gsd:check-todos` | View pending todos |
516
+ | `/gsd:settings` | Configure workflow + model |
517
+ | `/gsd:set-profile <profile>` | Switch quality/balanced/budget |
518
+ | `/gsd:health [--repair]` | Check + repair `.planning/` integrity |
519
+ | `/gsd:reapply-patches` | Restore local edits after update |
520
+
521
+ ---
522
+
523
+ ## Part XI: Troubleshooting
524
+
525
+ ### 11.1. Command Not Found
526
+
527
+ - **Restart runtime** to reload commands/skills
528
+ - **Verify files:**
529
+ - Claude: `~/.claude/commands/gsd/` (global) or `./.claude/commands/gsd/` (local)
530
+ - Codex: `~/.codex/skills/gsd-*/SKILL.md`
531
+ - **Reinstall:** `npx get-shit-done-cc@latest`
532
+
533
+ ### 11.2. "Project already initialized"
534
+
535
+ `.planning/PROJECT.md` already exists. If you want to start over: delete the `.planning/` directory.
536
+
537
+ ### 11.3. AI Quality Degradation (Context Degradation)
538
+
539
+ ```bash
540
+ /clear # Clear context window
541
+ /gsd:resume-work # Restore state from files
542
+ ```
543
+
544
+ ### 11.4. Plans Going in Wrong Direction
545
+
546
+ ```bash
547
+ /gsd:list-phase-assumptions 1 # See what Claude intends
548
+ /gsd:discuss-phase 1 # Correct direction with preferences
549
+ /gsd:plan-phase 1 # Re-plan
550
+ ```
551
+
552
+ ### 11.5. Execution Creates Stubs/Incomplete Code
553
+
554
+ - Plans are too large → break them down further (2-3 tasks/plan max)
555
+ - Re-plan with smaller scope
556
+
557
+ ### 11.6. Costs Too High
558
+
559
+ ```bash
560
+ /gsd:set-profile budget # Switch to Sonnet/Haiku
561
+ /gsd:settings # Turn off research, plan_check, verifier
562
+ ```
563
+
564
+ ### 11.7. Subagent Reports Fail But Code Was Written
565
+
566
+ Check `git log` — GSD's orchestrators spot-check output. If commits exist → the work was actually completed.
567
+
568
+ ### 11.8. Uninstall
569
+
570
+ ```bash
571
+ # Global
572
+ npx get-shit-done-cc --claude --global --uninstall
573
+ npx get-shit-done-cc --opencode --global --uninstall
574
+ npx get-shit-done-cc --codex --global --uninstall
575
+
576
+ # Local
577
+ npx get-shit-done-cc --claude --local --uninstall
578
+ npx get-shit-done-cc --opencode --local --uninstall
579
+ npx get-shit-done-cc --codex --local --uninstall
580
+ ```
581
+
582
+ ---
583
+
584
+ ## Part XII: Best Practices from the Field
585
+
586
+ ### 12.1. Gold Rules — 7 Golden Rules
587
+
588
+ 1. **`/clear` between phases.** Clean context window = peak quality.
589
+ 2. **Invest time in Discuss.** The clearer you are, the more accurate AI becomes.
590
+ 3. **Vertical Slices > Horizontal Layers.** Split features E2E, don't split by layer.
591
+ 4. **Use `/gsd:progress` frequently.** This is your compass.
592
+ 5. **No manual debugging.** Use `/gsd:verify-work` or `/gsd:debug` to let AI self-diagnose.
593
+ 6. **Commit initial docs.** `commit_docs: true` so team members and future-you understand context.
594
+ 7. **Configure deny list BEFORE starting.** Defense-in-depth for secrets.
595
+
596
+ ### 12.2. Git Workflow Tips
597
+
598
+ - **Atomic commits** enable `git bisect` to find the exact failing task
599
+ - **Branch per phase** when code review is needed
600
+ - **Squash merge milestones** for a clean main branch
601
+
602
+ ### 12.3. When to Use Quick vs Full Workflow?
603
+
604
+ | Scenario | Use |
605
+ |---|---|
606
+ | Small bug fix | `/gsd:quick` |
607
+ | Config change | `/gsd:quick` |
608
+ | Small feature, familiar domain | `/gsd:quick --full` |
609
+ | Complex feature, new domain | Full workflow (discuss → plan → execute → verify) |
610
+ | Critical system, production | Full workflow + `fine` granularity + `quality` profile |
611
+
612
+ ### 12.4. Anti-Patterns — What to Avoid
613
+
614
+ | ❌ Anti-Pattern | ✅ Best Practice |
615
+ |---|---|
616
+ | Accepting defaults through Discuss too quickly | Answer in detail, describe your personal vision |
617
+ | Not using `/clear` between phases | Clear context after every verify |
618
+ | Manual debugging when verify fails | Let GSD spawn debug agents |
619
+ | Re-running `/gsd:execute-phase` when fixes are needed | Use `/gsd:quick` for targeted fixes |
620
+ | Plans too large (5+ tasks) | Keep 2-3 tasks/plan, use `fine` granularity |
621
+ | Skipping audit before complete | ALWAYS audit → plan gaps → complete |