configs-all 1.0.0

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 (227) hide show
  1. package/.claude/settings.local.json +3 -0
  2. package/CLAUDE.md +94 -0
  3. package/README.md +424 -0
  4. package/TERMINAL_SHORTCUTS.md +96 -0
  5. package/WINDOWS_COMPATIBILITY.md +85 -0
  6. package/WINDOWS_MCP_SETUP.md +133 -0
  7. package/apps/RectangleConfig.plist +0 -0
  8. package/apps/Synergy +84 -0
  9. package/apps/iStat Menus Settings.ismp7 +0 -0
  10. package/claude/CLAUDE.md +228 -0
  11. package/claude/commands/changelog.md +36 -0
  12. package/claude/commands/commit.md +29 -0
  13. package/claude/commands/context.md +112 -0
  14. package/claude/commands/dash.md +37 -0
  15. package/claude/commands/deploy-check.md +37 -0
  16. package/claude/commands/deps.md +26 -0
  17. package/claude/commands/duplo.md +56 -0
  18. package/claude/commands/explain.md +43 -0
  19. package/claude/commands/fix-and-test.md +46 -0
  20. package/claude/commands/game-debug.md +66 -0
  21. package/claude/commands/games.md +53 -0
  22. package/claude/commands/go.md +147 -0
  23. package/claude/commands/guard.md +102 -0
  24. package/claude/commands/handoff.md +66 -0
  25. package/claude/commands/incident.md +144 -0
  26. package/claude/commands/init.md +78 -0
  27. package/claude/commands/k8s-debug.md +31 -0
  28. package/claude/commands/lint.md +27 -0
  29. package/claude/commands/merge-all.md +115 -0
  30. package/claude/commands/merge.md +129 -0
  31. package/claude/commands/mikpc.md +54 -0
  32. package/claude/commands/morning.md +72 -0
  33. package/claude/commands/partymode.md +105 -0
  34. package/claude/commands/plans.md +88 -0
  35. package/claude/commands/pr.md +41 -0
  36. package/claude/commands/prep.md +132 -0
  37. package/claude/commands/push-sync.md +82 -0
  38. package/claude/commands/push.md +34 -0
  39. package/claude/commands/research.md +73 -0
  40. package/claude/commands/retro.md +95 -0
  41. package/claude/commands/review-pr.md +96 -0
  42. package/claude/commands/review.md +41 -0
  43. package/claude/commands/scaffold-agent.md +45 -0
  44. package/claude/commands/setup.md +92 -0
  45. package/claude/commands/ship-prod.md +97 -0
  46. package/claude/commands/ship.md +82 -0
  47. package/claude/commands/simplify.md +42 -0
  48. package/claude/commands/spike.md +110 -0
  49. package/claude/commands/status.md +37 -0
  50. package/claude/commands/sync.md +72 -0
  51. package/claude/commands/test.md +29 -0
  52. package/claude/commands/triage.md +72 -0
  53. package/claude/desktop/claude_desktop_config.json +9 -0
  54. package/claude/hooks.json +15 -0
  55. package/claude/mcp-servers.duplo.json +8 -0
  56. package/claude/mcp-servers.json +62 -0
  57. package/claude/scripts/psdebug.ps1 +7 -0
  58. package/claude/settings.json +38 -0
  59. package/claude/settings.local.json +4 -0
  60. package/claude/statusline-command.sh +94 -0
  61. package/claude/templates/CLAUDE-k8s-devops.md +58 -0
  62. package/claude/templates/CLAUDE-python-agent.md +47 -0
  63. package/claude/templates/CLAUDE-typescript-frontend.md +50 -0
  64. package/docker/ai-stack/docker-compose.yml +76 -0
  65. package/docker/ai-stack/searxng/limiter.toml +3 -0
  66. package/docker/ai-stack/searxng/settings.yml +39 -0
  67. package/docker/cli/config.json.template +15 -0
  68. package/docker/cli/daemon.json +9 -0
  69. package/docker/cli/features.json +3 -0
  70. package/docker/mcp/catalog.json +9 -0
  71. package/docker/mcp/catalogs/docker-mcp.yaml +15107 -0
  72. package/docker/mcp/config.yaml +0 -0
  73. package/docker/mcp/registry.yaml +37 -0
  74. package/docker/mcp/tools.yaml +0 -0
  75. package/docs/context/.gitkeep +0 -0
  76. package/docs/context/2026-03-02-configs.md +142 -0
  77. package/docs/handoff/.gitkeep +0 -0
  78. package/docs/incidents/.gitkeep +0 -0
  79. package/docs/plans/2026-02-28-autonomous-command-suite-design.md +250 -0
  80. package/docs/plans/2026-02-28-autonomous-command-suite.md +682 -0
  81. package/docs/plans/2026-03-01-ai-stack-split-architecture.md +72 -0
  82. package/docs/plans/2026-03-02-ai-stack-expansion.md +33 -0
  83. package/docs/plans/2026-03-02-merge-commands-design.md +58 -0
  84. package/docs/plans/2026-03-02-merge-commands.md +354 -0
  85. package/docs/research/.gitkeep +0 -0
  86. package/docs/research/2026-03-02-configs-repo-architecture.md +152 -0
  87. package/docs/retros/.gitkeep +0 -0
  88. package/docs/retros/2026-03-01-ai-stack-split-architecture.md +38 -0
  89. package/docs/spikes/.gitkeep +0 -0
  90. package/gh/config.yml +16 -0
  91. package/gh/hosts.yml +5 -0
  92. package/gh/main.json +103 -0
  93. package/ghostty/config +90 -0
  94. package/git/config/base.gitconfig +46 -0
  95. package/git/config/chiefmikey.gitconfig +11 -0
  96. package/git/config/personal.gitconfig +10 -0
  97. package/git/config/work.gitconfig +14 -0
  98. package/ide/cursor/extensions.txt +111 -0
  99. package/ide/cursor/keybindings.json +307 -0
  100. package/ide/cursor/mcp.json +92 -0
  101. package/ide/cursor/settings.json +544 -0
  102. package/ide/vscode/extensions.txt +120 -0
  103. package/ide/vscode/insiders/extensions.txt +119 -0
  104. package/ide/vscode/insiders/keybindings.json +294 -0
  105. package/ide/vscode/insiders/settings.json +518 -0
  106. package/ide/vscode/keybindings.json +294 -0
  107. package/ide/vscode/settings.json +526 -0
  108. package/ide/vscode/vscode/extensions.txt +43 -0
  109. package/iterm/Mikey Pro.json +951 -0
  110. package/iterm/com.googlecode.iterm2.plist +5549 -0
  111. package/iterm/font/MesloLGS NF Bold Italic.ttf +0 -0
  112. package/iterm/font/MesloLGS NF Bold.ttf +0 -0
  113. package/iterm/font/MesloLGS NF Italic.ttf +0 -0
  114. package/iterm/font/MesloLGS NF Regular.ttf +0 -0
  115. package/package.json +15 -0
  116. package/scripts/ai/deploy-ai-stack.sh +119 -0
  117. package/scripts/ai/fix-ai-proxy.service +12 -0
  118. package/scripts/ai/fix-ai-proxy.sh +25 -0
  119. package/scripts/brew/search/brew-search-results.sh +19 -0
  120. package/scripts/brew/search/brew-search.sh +34 -0
  121. package/scripts/brew/upgrade/brew-upgrade-autoupdate.sh +5 -0
  122. package/scripts/brew/upgrade/brew-upgrade-full-auto.sh +89 -0
  123. package/scripts/brew/upgrade/brew-upgrade-full.sh +159 -0
  124. package/scripts/docker/cleanup/docker-cleanup-manage.sh +163 -0
  125. package/scripts/docker/cleanup/docker-cleanup.cron +12 -0
  126. package/scripts/docker/cleanup/docker-cleanup.sh +280 -0
  127. package/scripts/docker/install/README.md +23 -0
  128. package/scripts/docker/install/docker-al2.sh +7 -0
  129. package/scripts/docker/install/docker-compose-al2.sh +15 -0
  130. package/scripts/gh/auth/auth.sh +12 -0
  131. package/scripts/gh/config/gh-config.sh +3 -0
  132. package/scripts/gh/gist/gh-gist-create.sh +29 -0
  133. package/scripts/gh/gist/gh-gist-delete.sh +1 -0
  134. package/scripts/gh/gist/gh-gist-edit.sh +8 -0
  135. package/scripts/gh/gpg-key/gh-gpg-key-add.sh +3 -0
  136. package/scripts/gh/install/install.sh +7 -0
  137. package/scripts/gh/label/gh-label-clone.sh +0 -0
  138. package/scripts/gh/label/gh-label-create.sh +0 -0
  139. package/scripts/gh/label/gh-label-delete.sh +0 -0
  140. package/scripts/gh/label/gh-label-edit.sh +0 -0
  141. package/scripts/gh/label/gh-label-list.sh +0 -0
  142. package/scripts/gh/secret/gh-secret-delete.sh +24 -0
  143. package/scripts/gh/secret/gh-secret-set.sh +70 -0
  144. package/scripts/gh/ssh-key/gh-ssh-key-add.sh +8 -0
  145. package/scripts/git/add/git-add.sh +3 -0
  146. package/scripts/git/auth/README.md +11 -0
  147. package/scripts/git/auth/https.sh +20 -0
  148. package/scripts/git/auth/ssh-mac.sh +41 -0
  149. package/scripts/git/branch-delete/git-branch-delete.sh +16 -0
  150. package/scripts/git/checkout/git-checkout-stash.sh +32 -0
  151. package/scripts/git/temp/git-temp-pull.sh +6 -0
  152. package/scripts/git/temp/git-temp-push.sh +5 -0
  153. package/scripts/install/fresh.zsh +34 -0
  154. package/scripts/install/full-install.zsh +193 -0
  155. package/scripts/linux/codedeploy/README.md +19 -0
  156. package/scripts/linux/codedeploy/linux-codedeploy-al2.sh +13 -0
  157. package/scripts/linux/codedeploy/linux-codedeploy-index.sh +16 -0
  158. package/scripts/linux/codedeploy/linux-codedeploy-ubuntu.sh +14 -0
  159. package/scripts/linux/coredns/README.md +17 -0
  160. package/scripts/linux/coredns/linux-coredns-al2.sh +29 -0
  161. package/scripts/linux/wifi/01-netconf.yaml +21 -0
  162. package/scripts/linux/wifi/wifi-ubuntu.sh +17 -0
  163. package/scripts/mac/dock-sort/mac-dock-sort.sh +87 -0
  164. package/scripts/mac/dropbox-ignore/mac-dropbox-ignore.sh +12 -0
  165. package/scripts/mac/sudo-askpass/mac-sudo-askpass.sh +50 -0
  166. package/scripts/mac/sudo-askpass/setup-sudo-password.sh +49 -0
  167. package/scripts/mac/upgrade/mac-upgrade.sh +21 -0
  168. package/scripts/mac/vpn/mac-vpn.sh +4 -0
  169. package/scripts/mcp/aws-mcp-wrapper.ps1 +97 -0
  170. package/scripts/mcp/aws-mcp-wrapper.sh +53 -0
  171. package/scripts/mcp/duplo-mcp-wrapper.sh +31 -0
  172. package/scripts/mcp/filesystem-mcp-wrapper.ps1 +43 -0
  173. package/scripts/mcp/filesystem-mcp-wrapper.sh +34 -0
  174. package/scripts/mcp/git-mcp-wrapper.ps1 +42 -0
  175. package/scripts/mcp/git-mcp-wrapper.sh +33 -0
  176. package/scripts/mcp/github-mcp-wrapper.ps1 +43 -0
  177. package/scripts/mcp/github-mcp-wrapper.sh +19 -0
  178. package/scripts/mcp/kubernetes-mcp-wrapper.ps1 +22 -0
  179. package/scripts/mcp/kubernetes-mcp-wrapper.sh +16 -0
  180. package/scripts/mcp/mcp-launcher.ps1 +56 -0
  181. package/scripts/mcp/mcp-launcher.sh +71 -0
  182. package/scripts/mcp/mongodb-mcp-wrapper.ps1 +26 -0
  183. package/scripts/mcp/mongodb-mcp-wrapper.sh +17 -0
  184. package/scripts/mcp/notion-mcp-wrapper.ps1 +23 -0
  185. package/scripts/mcp/notion-mcp-wrapper.sh +14 -0
  186. package/scripts/mcp/postgres-mcp-wrapper.ps1 +23 -0
  187. package/scripts/mcp/postgres-mcp-wrapper.sh +16 -0
  188. package/scripts/npm/ncu/npm-ncu.sh +24 -0
  189. package/scripts/npm/upgrade/npm-upgrade.sh +51 -0
  190. package/scripts/qmk/build_reviung41.sh +28 -0
  191. package/scripts/qmk/sync_unicorne.sh +44 -0
  192. package/scripts/sync/README.md +64 -0
  193. package/scripts/sync/config-common.zsh +882 -0
  194. package/scripts/sync/pull-configs.ps1 +33 -0
  195. package/scripts/sync/pull-configs.zsh +278 -0
  196. package/scripts/sync/push-configs.ps1 +91 -0
  197. package/scripts/sync/push-configs.zsh +384 -0
  198. package/shell/alias/alias-d.zsh +333 -0
  199. package/shell/alias/alias.zsh +36 -0
  200. package/shell/alias/categories/development.zsh +157 -0
  201. package/shell/alias/categories/environment.zsh +13 -0
  202. package/shell/alias/categories/git.zsh +40 -0
  203. package/shell/alias/categories/github-functions.zsh +459 -0
  204. package/shell/alias/categories/network.zsh +46 -0
  205. package/shell/alias/categories/path.zsh +46 -0
  206. package/shell/alias/categories/system.zsh +78 -0
  207. package/shell/alias/categories/wolfe-server.zsh +11 -0
  208. package/shell/powershell/Microsoft.PowerShell_profile.ps1 +208 -0
  209. package/shell/zsh/.p10k.zsh +1832 -0
  210. package/shell/zsh/.zshrc +87 -0
  211. package/shell/zsh/config/completion.zsh +31 -0
  212. package/shell/zsh/config/functions.zsh +31 -0
  213. package/shell/zsh/config/keybindings.zsh +13 -0
  214. package/shell/zsh/config/options.zsh +56 -0
  215. package/shell/zsh/config/plugins.zsh +83 -0
  216. package/shell/zsh/config/variables.zsh +191 -0
  217. package/shell/zsh/powerlevel10k.zsh-theme +83 -0
  218. package/shell/zsh/zsh-autosuggestions.zsh +871 -0
  219. package/ssh/config +46 -0
  220. package/ssh/config.duplo +21 -0
  221. package/ssh/config.mikpc +35 -0
  222. package/ssh/personal_signing.pub +1 -0
  223. package/templates/.envrc.example +34 -0
  224. package/templates/.envrc.quickstart +17 -0
  225. package/wezterm/wezterm.lua +249 -0
  226. package/wsl/.wslconfig +3 -0
  227. package/wsl/wsl.conf +18 -0
File without changes
@@ -0,0 +1,37 @@
1
+ registry:
2
+ aws-cdk-mcp-server:
3
+ ref: ""
4
+ aws-documentation:
5
+ ref: ""
6
+ awslabs-ccapi:
7
+ ref: ""
8
+ awslabs-cloudtrail:
9
+ ref: ""
10
+ awslabs-cost-explorer:
11
+ ref: ""
12
+ awslabs-iam:
13
+ ref: ""
14
+ context7:
15
+ ref: ""
16
+ desktop-commander:
17
+ ref: ""
18
+ docker:
19
+ ref: ""
20
+ dockerhub:
21
+ ref: ""
22
+ github-chat:
23
+ ref: ""
24
+ grafana:
25
+ ref: ""
26
+ neo4j-memory:
27
+ ref: ""
28
+ node-code-sandbox:
29
+ ref: ""
30
+ perplexity-ask:
31
+ ref: ""
32
+ puppeteer:
33
+ ref: ""
34
+ wikipedia-mcp:
35
+ ref: ""
36
+ youtube_transcript:
37
+ ref: ""
File without changes
File without changes
@@ -0,0 +1,142 @@
1
+ # Context Snapshot: configs
2
+
3
+ _Date: 2026-03-02_
4
+ _Verified against: commit 8203206_
5
+
6
+ ## Overview
7
+
8
+ Centralized config repo managing shell, git, IDE, SSH, Claude Code, Docker, and app configs across 4 machines (mikmac, mikbook, duplo, mikpc). Git-based sync — each machine has its own Dropbox clone. Mac is source of truth.
9
+
10
+ ## Tech Stack
11
+
12
+ - **Shell**: Zsh scripts (.zsh/.sh) — entire codebase
13
+ - **Linting**: mikey-pro (Prettier + ESLint + Stylelint) via package.json
14
+ - **JSON processing**: jq (config transforms Mac↔Windows)
15
+ - **Validation**: plutil (plist), yq (YAML), jq (JSON), zsh -n (shell syntax)
16
+ - **Terminals**: Ghostty, WezTerm, iTerm2
17
+ - **IDE**: VS Code (stable + insiders), Cursor
18
+ - **AI**: Ollama on mikpc (RTX 5090), Docker GPU services (ComfyUI, Speaches, ACE-Step)
19
+
20
+ ## Project Structure
21
+
22
+ ```
23
+ configs/
24
+ ├── shell/ # .zshrc, aliases (8 categories), p10k, powershell
25
+ ├── git/config/ # base + personal/work/chiefmikey gitconfigs
26
+ ├── ide/ # VS Code, Cursor settings/keybindings/mcp
27
+ ├── ssh/ # Host-specific SSH configs
28
+ ├── gh/ # GitHub CLI config
29
+ ├── claude/ # Settings, hooks, commands (38), templates, scripts, desktop
30
+ ├── docker/ # ai-stack compose, MCP registry/catalog, CLI config
31
+ ├── ghostty/ # Ghostty terminal config
32
+ ├── wezterm/ # WezTerm config (Lua)
33
+ ├── iterm/ # iTerm2 plist + font
34
+ ├── wsl/ # .wslconfig, wsl.conf
35
+ ├── apps/ # Rectangle, iStat Menus, Synergy
36
+ ├── scripts/
37
+ │ ├── sync/ # push/pull-configs.zsh, config-common.zsh (THE core engine)
38
+ │ ├── ai/ # deploy-ai-stack.sh, fix-ai-proxy.sh
39
+ │ ├── mcp/ # MCP wrapper scripts (.sh + .ps1)
40
+ │ ├── install/ # fresh.zsh machine setup
41
+ │ ├── docker/ # Cleanup + cron management
42
+ │ ├── git/ # Git helper scripts
43
+ │ ├── gh/ # GitHub CLI management
44
+ │ ├── mac/ # VPN, dock, sudo-askpass
45
+ │ ├── brew/ # Homebrew management
46
+ │ ├── linux/ # codedeploy, coredns, wifi
47
+ │ ├── npm/ # Upgrade helpers
48
+ │ ├── qmk/ # Keyboard firmware build/sync
49
+ │ └── input/ # Reusable shell input helpers
50
+ ├── docs/ # Persistent artifacts (research, context, plans, spikes, incidents, handoff, retros)
51
+ └── templates/ # .envrc examples
52
+ ```
53
+
54
+ ## Development Workflow
55
+
56
+ ```bash
57
+ # Deploy configs from repo → system
58
+ ./scripts/sync/push-configs.zsh
59
+
60
+ # Backup system → repo
61
+ ./scripts/sync/pull-configs.zsh
62
+
63
+ # Validate shell syntax
64
+ zsh -n <file>
65
+
66
+ # Validate JSON
67
+ jq empty <file>
68
+
69
+ # Docker cleanup
70
+ ./scripts/docker/cleanup/docker-cleanup.sh --dry-run
71
+
72
+ # Deploy AI stack to mikpc
73
+ ./scripts/ai/deploy-ai-stack.sh
74
+
75
+ # Fix WSL port proxy after restart
76
+ ./scripts/ai/fix-ai-proxy.sh
77
+ ```
78
+
79
+ ## Machine Registry
80
+
81
+ | Machine | SSH Host | CONFIG_DIR | Git Config | SSH Config |
82
+ |---------|---------|-----------|-----------|-----------|
83
+ | mikmac | — | `~/Dropbox/dev/configs` | personal | config |
84
+ | mikbook | mikbook | `~/Dropbox/mikbook/dev/configs` | personal | config |
85
+ | duplo | duplo | `~/Dropbox/duplo/dev/chiefmikey/configs` | work | config.duplo |
86
+ | mikpc | mikpc | `~/Dropbox/mikpc/dev/configs` | personal | config.mikpc |
87
+
88
+ ## Architecture
89
+
90
+ ### Sync Engine (config-common.zsh)
91
+
92
+ Core abstractions:
93
+ - `get_config_dest(file)` → destination path (platform/host-aware, 50+ mappings)
94
+ - `get_validation_func(file)` → validator function
95
+ - `safe_copy(src, dest, validator)` → validate → backup → copy (returns 0 on error)
96
+ - `transform_mcp_mac_to_windows()` → Path/command transforms for Cursor MCP
97
+ - `transform_cursor_settings_mac_to_windows()` → Strip Mac-only keys
98
+
99
+ Claude Code special handling:
100
+ - `push_claude_dirs()` → Sync commands/templates/scripts with stale cleanup
101
+ - `push_mcp_servers()` → Merge into .claude.json (preserves OAuth/state), host-specific overlay
102
+ - `enforce_claude_preferences()` → Force remoteControl + autoCompact settings
103
+
104
+ ### Shell Init Chain
105
+
106
+ .zshrc → variables → options → completion → keybindings → plugins → functions → alias dispatcher → 8 category files (+ conditional duplo aliases)
107
+
108
+ ### AI Stack Split
109
+
110
+ - **wolfe-server**: Web UIs (Open WebUI :3003, Perplexica :3002, n8n :5678, SearXNG :4000, Qdrant :6333)
111
+ - **mikpc**: GPU compute (Ollama :11434, ComfyUI :8188, ACE-Step :7860, Speaches :8000)
112
+ - Cross-machine: LAN IP 192.168.0.5 (Tailscale ACL blocks tag:wolfe)
113
+
114
+ ## Testing
115
+
116
+ No automated test suite. Verify by:
117
+ 1. `./scripts/sync/push-configs.zsh` — check output for errors
118
+ 2. `zsh -n <file>` — syntax check shell scripts
119
+ 3. `jq empty <file>` — validate JSON configs
120
+
121
+ ## Recent Trajectory (last 30 commits)
122
+
123
+ Major themes in reverse chronological order:
124
+ 1. **Shell aliases** — Claude shorthand aliases (c, cr, cs, claude-resume, claude-skip)
125
+ 2. **AI stack split** — Separated GPU compute (mikpc) from web UIs (wolfe-server), ACE-Step checkpoint persistence
126
+ 3. **Command suite buildout** — 38 slash commands for autonomous Claude Code operation (/partymode, /prep, /go, /research, /plans, /spike, /incident, /ship, /guard, etc.)
127
+ 4. **Plan/doc system** — Status tracking, resumability, execution journals, staleness verification
128
+ 5. **Local AI** — Ollama aliases with native API + glow, AI stack deployment scripts, WSL port proxy
129
+ 6. **MCP improvements** — GitHub MCP switched from Docker to npx, statusline metrics (cache %, cost, tokens)
130
+
131
+ ## Gotchas
132
+
133
+ 1. **duplo path** is `chiefmikey/configs` not `configs`
134
+ 2. **No `set -e`** in sync scripts — intentionally removed for graceful failures
135
+ 3. **Mac is source of truth** for Cursor/MCP — never pull from Windows
136
+ 4. **Windows backups** go to `~/.config/config-backups` (NTFS issues)
137
+ 5. **WINDOWS_USER** hardcoded to "wolfe" in config-common.zsh
138
+ 6. **WSL IP changes** on restart — run fix-ai-proxy.sh
139
+ 7. **Port 3000** taken by AdGuard on wolfe-server — Open WebUI uses 3003
140
+ 8. **Perplexica config** resets on restart — run configure.sh
141
+ 9. **SCP broken** on mikpc — use rsync
142
+ 10. **MCP merge** preserves .claude.json state — only overwrites mcpServers key
File without changes
File without changes
@@ -0,0 +1,250 @@
1
+ # Design: Autonomous Command Suite (`/context`, `/plans`, `/prep`, `/go`, `/partyon`)
2
+
3
+ _Date: 2026-02-28_
4
+
5
+ ## Goal
6
+
7
+ Replace built-in Claude Code plan mode with a suite of commands that leverage bypass permissions for deeper research, autonomous decision-making, and full end-to-end execution. The system produces persistent documentation artifacts that reduce token costs across sessions and set Claude up for maximum autonomous work with minimum human input.
8
+
9
+ ## Architecture
10
+
11
+ ```
12
+ Standalone (each works independently):
13
+ /research → docs/research/ (pure understanding — already exists)
14
+ /context → docs/context/ (repo/machine knowledge snapshot)
15
+ /plans → docs/plans/ (implementation steps)
16
+
17
+ Orchestration:
18
+ /prep → updates research → validates context → creates plan
19
+ /go → executes latest plan to 100% completion with full verification
20
+ /partyon → /prep + /go — full autopilot, walk away and come back to done
21
+ ```
22
+
23
+ ### Artifact Flow
24
+
25
+ ```
26
+ docs/
27
+ ├── research/ # /research output — pure understanding, no intent
28
+ ├── context/ # /context output — implementation-scoped knowledge snapshot
29
+ └── plans/ # /plans output — actionable implementation steps
30
+ ```
31
+
32
+ Each artifact type serves a different purpose:
33
+
34
+ - **Research** answers: "How does this work?"
35
+ - **Context** answers: "What do I need to know to change this?"
36
+ - **Plans** answers: "What exactly will I do?"
37
+
38
+ Future sessions read existing artifacts first, verify against current code, and skip redundant exploration — saving significant tokens on already-understood areas.
39
+
40
+ ---
41
+
42
+ ## Command Designs
43
+
44
+ ### `/context` — Repo & Machine Knowledge Snapshot
45
+
46
+ **Purpose:** Build a comprehensive context document for the current repo so Claude always has deep understanding without burning tokens on re-exploration every session.
47
+
48
+ **Input:** None required (repo-scoped). Optional `$ARGUMENTS` to focus on a specific area.
49
+
50
+ **What it gathers:**
51
+
52
+ - Project CLAUDE.md (conventions, commands, architecture)
53
+ - All `docs/research/*.md` artifacts
54
+ - All `docs/context/*.md` (previous context snapshots — updates, doesn't duplicate)
55
+ - Key file structure (not just listing — roles of key dirs/files)
56
+ - Tech stack detection (package.json, requirements.txt, Makefile, etc.)
57
+ - Recent git history (last 20-30 commits for trajectory)
58
+ - Current machine/environment context (hostname, platform, available tools)
59
+ - Test infrastructure (what test framework, how to run, what coverage looks like)
60
+ - Build/deploy pipeline (CI config, deploy scripts, infra)
61
+ - Known gotchas from MEMORY.md if relevant
62
+
63
+ **Output:** `docs/context/YYYY-MM-DD-<repo-name>.md`
64
+
65
+ **Key behavior:** If a context doc already exists, reads it first, verifies against current state, and updates it rather than creating a new one. The file becomes a living document that gets cheaper to maintain over time.
66
+
67
+ ---
68
+
69
+ ### `/plans` — Implementation Plan Generator
70
+
71
+ **Purpose:** Generate a detailed, step-by-step implementation plan based on existing research, context, and its own code understanding. Usable standalone when you already have good context and just need the plan.
72
+
73
+ **Input:** `$ARGUMENTS` — task description
74
+
75
+ **What it does:**
76
+
77
+ 1. Reads existing `docs/context/` and `docs/research/` for the repo (doesn't re-explore — trusts these as starting context)
78
+ 2. Does targeted code reading for the specific area the task touches (file bodies, not just signatures)
79
+ 3. Makes all architectural and implementation decisions autonomously with documented rationale
80
+ 4. Writes the plan to `docs/plans/YYYY-MM-DD-<task-slug>.md`
81
+
82
+ **Plan format:**
83
+
84
+ ```markdown
85
+ # Plan: <Task>
86
+ _Date: YYYY-MM-DD_
87
+ _Context: docs/context/<file>.md_
88
+ _Research: docs/research/<file>.md (if applicable)_
89
+
90
+ ## Goal
91
+ What this plan accomplishes in 1-2 sentences.
92
+
93
+ ## Decisions & Rationale
94
+ Every non-obvious choice made, with reasoning.
95
+
96
+ ## Steps
97
+ 1. [Step title]
98
+ - File: exact/path/to/file.ts
99
+ - What: specific change description
100
+ - Why: reasoning if non-obvious
101
+ - Verify: how to confirm this step worked
102
+
103
+ ## Verification Plan
104
+ - [ ] Tests to run (unit, e2e, integration)
105
+ - [ ] Lint/build commands
106
+ - [ ] Manual checks (browser, API, CLI)
107
+ - [ ] Edge cases to validate
108
+
109
+ ## Risks
110
+ Known risks and mitigation for each.
111
+ ```
112
+
113
+ **Key behavior:** Each step is 2-5 minutes of work, concrete enough for a subagent with zero prior context. Does NOT execute anything.
114
+
115
+ ---
116
+
117
+ ### `/prep` — The Orchestrator
118
+
119
+ **Purpose:** Full preparation pipeline — updates research, validates context, creates plan. Composes the three standalone commands with added intelligence.
120
+
121
+ **Input:** `$ARGUMENTS` — task description
122
+
123
+ **Phases:**
124
+
125
+ 1. **Research phase** — deep exploration scoped to the task
126
+ - Reads ALL existing `docs/research/*.md` and `docs/context/*.md` first
127
+ - Verifies findings against actual current code (never trusts docs blindly)
128
+ - Updates existing research docs if stale, creates new ones if area isn't covered
129
+ - Writes/updates `docs/research/YYYY-MM-DD-<topic>.md`
130
+
131
+ 2. **Context phase** — repo snapshot
132
+ - If `docs/context/` exists, reads and validates against current repo state
133
+ - Updates the context doc with any new understanding from research phase
134
+ - Adds task-specific context that future agents will need
135
+ - Writes/updates `docs/context/YYYY-MM-DD-<repo-name>.md`
136
+
137
+ 3. **Plan phase** — implementation planning
138
+ - Has full benefit of freshly verified research + context
139
+ - Makes all decisions autonomously with documented rationale
140
+ - Writes `docs/plans/YYYY-MM-DD-<task-slug>.md`
141
+ - References the research and context docs in the plan header
142
+
143
+ 4. **Report** — outputs the three file paths and a brief summary
144
+
145
+ **Key advantage over running commands separately:** `/prep` carries verified context across phases in a single session. Running them separately means each starts somewhat fresh.
146
+
147
+ ---
148
+
149
+ ### `/go` — Execute Plan to Completion
150
+
151
+ **Purpose:** Read the latest plan and execute it autonomously to 100% completion, including all verification.
152
+
153
+ **Input:** Optional `$ARGUMENTS` — a specific plan file path. If omitted, finds the most recent `docs/plans/*.md`.
154
+
155
+ **Execution flow:**
156
+
157
+ 1. **Load & validate plan** — reads the plan file, checks it's well-formed
158
+ 2. **Read context** — loads linked `docs/context/` and `docs/research/` files from plan header
159
+ 3. **Execute via subagent-driven development:**
160
+ - Dispatch implementer subagent with the step + full context
161
+ - Implementer implements, tests, commits
162
+ - Dispatch spec compliance reviewer
163
+ - Dispatch code quality reviewer
164
+ - Fix any issues before moving to next step
165
+ 4. **Verify after every step** — run the step's verification command
166
+ 5. **Full verification at the end:**
167
+ - Complete test suite (unit, integration, e2e)
168
+ - Linter/formatter
169
+ - Build
170
+ - Browser testing if frontend (playwright/chrome MCP)
171
+ - API testing if backend
172
+ - Dry-run if infrastructure (kubectl, terraform)
173
+ - Whatever else the verification plan specifies
174
+ 6. **Update artifacts:**
175
+ - Mark plan as completed with summary
176
+ - Update `docs/context/` if architecture changed
177
+ - Commit all changes with conventional commit messages
178
+
179
+ **Key behaviors:**
180
+
181
+ - Never claims done without fresh verification output as evidence
182
+ - If blocked, tries alternative approaches before asking for help
183
+ - If a test fails, debugs and fixes — doesn't skip
184
+ - Runs `superpowers:verification-before-completion` before any success claim
185
+ - Runs `superpowers:finishing-a-development-branch` at the end
186
+
187
+ ---
188
+
189
+ ### `/partyon` — Full Autopilot
190
+
191
+ **Purpose:** `/prep` + `/go` chained. Give it a task, walk away, come back to done.
192
+
193
+ **Input:** `$ARGUMENTS` — task description
194
+
195
+ **Flow:**
196
+
197
+ 1. Runs the full `/prep` pipeline (research → context → plan)
198
+ 2. Presents the plan for review (**single checkpoint** — the only time it stops)
199
+ 3. On approval, immediately chains into `/go`
200
+
201
+ **The one checkpoint:** After the plan is written, presents a summary and waits for approval. This is the single moment of human input. Everything before and after is autonomous.
202
+
203
+ **Skip checkpoint:** Add "don't wait for approval" or similar to the task description to skip the checkpoint entirely.
204
+
205
+ ---
206
+
207
+ ## Global CLAUDE.md Changes
208
+
209
+ ### New Section: Leveraging Existing Documentation
210
+
211
+ ```markdown
212
+ ## Leveraging Existing Documentation
213
+
214
+ Before exploring any codebase:
215
+ 1. Check for `docs/context/` — read the most recent context snapshot
216
+ 2. Check for `docs/research/` — read all research artifacts
217
+ 3. Check for `docs/plans/` — check for in-progress or recent plans
218
+ 4. Read the project CLAUDE.md
219
+
220
+ These are trusted starting points. Verify against actual code for the specific area
221
+ you're changing, but don't re-explore what's already documented. When you produce
222
+ new understanding, update the relevant doc so future sessions benefit.
223
+ ```
224
+
225
+ ### Strengthen: Autonomous Execution
226
+
227
+ ```markdown
228
+ ## Autonomous Execution
229
+
230
+ When given a task, the goal is maximum autonomous progress with minimum human input:
231
+ - Make best-practice decisions and document your rationale
232
+ - Don't ask about implementation details you can reasonably decide
233
+ - Use docs/context/ and docs/research/ to stay informed without re-exploring
234
+ - Verify your own work with actual command output, not assumptions
235
+ - When blocked, try alternative approaches before asking for help
236
+ - When a task is done, prove it's done with evidence
237
+ ```
238
+
239
+ ---
240
+
241
+ ## Implementation Notes
242
+
243
+ - All five new commands are `.md` files in `claude/commands/`
244
+ - `/research` already exists — no changes needed
245
+ - `/context` runs at Opus level (deep understanding needed)
246
+ - `/plans` runs at Opus level (architectural decisions)
247
+ - `/prep` runs at Opus level (orchestrates the full pipeline)
248
+ - `/go` runs at Opus level (manages subagent execution)
249
+ - `/partyon` runs at Opus level (orchestrates everything)
250
+ - Global CLAUDE.md updates go in `claude/CLAUDE.md` (deployed to `~/CLAUDE.md`)