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.
- package/.claude/settings.local.json +3 -0
- package/CLAUDE.md +94 -0
- package/README.md +424 -0
- package/TERMINAL_SHORTCUTS.md +96 -0
- package/WINDOWS_COMPATIBILITY.md +85 -0
- package/WINDOWS_MCP_SETUP.md +133 -0
- package/apps/RectangleConfig.plist +0 -0
- package/apps/Synergy +84 -0
- package/apps/iStat Menus Settings.ismp7 +0 -0
- package/claude/CLAUDE.md +228 -0
- package/claude/commands/changelog.md +36 -0
- package/claude/commands/commit.md +29 -0
- package/claude/commands/context.md +112 -0
- package/claude/commands/dash.md +37 -0
- package/claude/commands/deploy-check.md +37 -0
- package/claude/commands/deps.md +26 -0
- package/claude/commands/duplo.md +56 -0
- package/claude/commands/explain.md +43 -0
- package/claude/commands/fix-and-test.md +46 -0
- package/claude/commands/game-debug.md +66 -0
- package/claude/commands/games.md +53 -0
- package/claude/commands/go.md +147 -0
- package/claude/commands/guard.md +102 -0
- package/claude/commands/handoff.md +66 -0
- package/claude/commands/incident.md +144 -0
- package/claude/commands/init.md +78 -0
- package/claude/commands/k8s-debug.md +31 -0
- package/claude/commands/lint.md +27 -0
- package/claude/commands/merge-all.md +115 -0
- package/claude/commands/merge.md +129 -0
- package/claude/commands/mikpc.md +54 -0
- package/claude/commands/morning.md +72 -0
- package/claude/commands/partymode.md +105 -0
- package/claude/commands/plans.md +88 -0
- package/claude/commands/pr.md +41 -0
- package/claude/commands/prep.md +132 -0
- package/claude/commands/push-sync.md +82 -0
- package/claude/commands/push.md +34 -0
- package/claude/commands/research.md +73 -0
- package/claude/commands/retro.md +95 -0
- package/claude/commands/review-pr.md +96 -0
- package/claude/commands/review.md +41 -0
- package/claude/commands/scaffold-agent.md +45 -0
- package/claude/commands/setup.md +92 -0
- package/claude/commands/ship-prod.md +97 -0
- package/claude/commands/ship.md +82 -0
- package/claude/commands/simplify.md +42 -0
- package/claude/commands/spike.md +110 -0
- package/claude/commands/status.md +37 -0
- package/claude/commands/sync.md +72 -0
- package/claude/commands/test.md +29 -0
- package/claude/commands/triage.md +72 -0
- package/claude/desktop/claude_desktop_config.json +9 -0
- package/claude/hooks.json +15 -0
- package/claude/mcp-servers.duplo.json +8 -0
- package/claude/mcp-servers.json +62 -0
- package/claude/scripts/psdebug.ps1 +7 -0
- package/claude/settings.json +38 -0
- package/claude/settings.local.json +4 -0
- package/claude/statusline-command.sh +94 -0
- package/claude/templates/CLAUDE-k8s-devops.md +58 -0
- package/claude/templates/CLAUDE-python-agent.md +47 -0
- package/claude/templates/CLAUDE-typescript-frontend.md +50 -0
- package/docker/ai-stack/docker-compose.yml +76 -0
- package/docker/ai-stack/searxng/limiter.toml +3 -0
- package/docker/ai-stack/searxng/settings.yml +39 -0
- package/docker/cli/config.json.template +15 -0
- package/docker/cli/daemon.json +9 -0
- package/docker/cli/features.json +3 -0
- package/docker/mcp/catalog.json +9 -0
- package/docker/mcp/catalogs/docker-mcp.yaml +15107 -0
- package/docker/mcp/config.yaml +0 -0
- package/docker/mcp/registry.yaml +37 -0
- package/docker/mcp/tools.yaml +0 -0
- package/docs/context/.gitkeep +0 -0
- package/docs/context/2026-03-02-configs.md +142 -0
- package/docs/handoff/.gitkeep +0 -0
- package/docs/incidents/.gitkeep +0 -0
- package/docs/plans/2026-02-28-autonomous-command-suite-design.md +250 -0
- package/docs/plans/2026-02-28-autonomous-command-suite.md +682 -0
- package/docs/plans/2026-03-01-ai-stack-split-architecture.md +72 -0
- package/docs/plans/2026-03-02-ai-stack-expansion.md +33 -0
- package/docs/plans/2026-03-02-merge-commands-design.md +58 -0
- package/docs/plans/2026-03-02-merge-commands.md +354 -0
- package/docs/research/.gitkeep +0 -0
- package/docs/research/2026-03-02-configs-repo-architecture.md +152 -0
- package/docs/retros/.gitkeep +0 -0
- package/docs/retros/2026-03-01-ai-stack-split-architecture.md +38 -0
- package/docs/spikes/.gitkeep +0 -0
- package/gh/config.yml +16 -0
- package/gh/hosts.yml +5 -0
- package/gh/main.json +103 -0
- package/ghostty/config +90 -0
- package/git/config/base.gitconfig +46 -0
- package/git/config/chiefmikey.gitconfig +11 -0
- package/git/config/personal.gitconfig +10 -0
- package/git/config/work.gitconfig +14 -0
- package/ide/cursor/extensions.txt +111 -0
- package/ide/cursor/keybindings.json +307 -0
- package/ide/cursor/mcp.json +92 -0
- package/ide/cursor/settings.json +544 -0
- package/ide/vscode/extensions.txt +120 -0
- package/ide/vscode/insiders/extensions.txt +119 -0
- package/ide/vscode/insiders/keybindings.json +294 -0
- package/ide/vscode/insiders/settings.json +518 -0
- package/ide/vscode/keybindings.json +294 -0
- package/ide/vscode/settings.json +526 -0
- package/ide/vscode/vscode/extensions.txt +43 -0
- package/iterm/Mikey Pro.json +951 -0
- package/iterm/com.googlecode.iterm2.plist +5549 -0
- package/iterm/font/MesloLGS NF Bold Italic.ttf +0 -0
- package/iterm/font/MesloLGS NF Bold.ttf +0 -0
- package/iterm/font/MesloLGS NF Italic.ttf +0 -0
- package/iterm/font/MesloLGS NF Regular.ttf +0 -0
- package/package.json +15 -0
- package/scripts/ai/deploy-ai-stack.sh +119 -0
- package/scripts/ai/fix-ai-proxy.service +12 -0
- package/scripts/ai/fix-ai-proxy.sh +25 -0
- package/scripts/brew/search/brew-search-results.sh +19 -0
- package/scripts/brew/search/brew-search.sh +34 -0
- package/scripts/brew/upgrade/brew-upgrade-autoupdate.sh +5 -0
- package/scripts/brew/upgrade/brew-upgrade-full-auto.sh +89 -0
- package/scripts/brew/upgrade/brew-upgrade-full.sh +159 -0
- package/scripts/docker/cleanup/docker-cleanup-manage.sh +163 -0
- package/scripts/docker/cleanup/docker-cleanup.cron +12 -0
- package/scripts/docker/cleanup/docker-cleanup.sh +280 -0
- package/scripts/docker/install/README.md +23 -0
- package/scripts/docker/install/docker-al2.sh +7 -0
- package/scripts/docker/install/docker-compose-al2.sh +15 -0
- package/scripts/gh/auth/auth.sh +12 -0
- package/scripts/gh/config/gh-config.sh +3 -0
- package/scripts/gh/gist/gh-gist-create.sh +29 -0
- package/scripts/gh/gist/gh-gist-delete.sh +1 -0
- package/scripts/gh/gist/gh-gist-edit.sh +8 -0
- package/scripts/gh/gpg-key/gh-gpg-key-add.sh +3 -0
- package/scripts/gh/install/install.sh +7 -0
- package/scripts/gh/label/gh-label-clone.sh +0 -0
- package/scripts/gh/label/gh-label-create.sh +0 -0
- package/scripts/gh/label/gh-label-delete.sh +0 -0
- package/scripts/gh/label/gh-label-edit.sh +0 -0
- package/scripts/gh/label/gh-label-list.sh +0 -0
- package/scripts/gh/secret/gh-secret-delete.sh +24 -0
- package/scripts/gh/secret/gh-secret-set.sh +70 -0
- package/scripts/gh/ssh-key/gh-ssh-key-add.sh +8 -0
- package/scripts/git/add/git-add.sh +3 -0
- package/scripts/git/auth/README.md +11 -0
- package/scripts/git/auth/https.sh +20 -0
- package/scripts/git/auth/ssh-mac.sh +41 -0
- package/scripts/git/branch-delete/git-branch-delete.sh +16 -0
- package/scripts/git/checkout/git-checkout-stash.sh +32 -0
- package/scripts/git/temp/git-temp-pull.sh +6 -0
- package/scripts/git/temp/git-temp-push.sh +5 -0
- package/scripts/install/fresh.zsh +34 -0
- package/scripts/install/full-install.zsh +193 -0
- package/scripts/linux/codedeploy/README.md +19 -0
- package/scripts/linux/codedeploy/linux-codedeploy-al2.sh +13 -0
- package/scripts/linux/codedeploy/linux-codedeploy-index.sh +16 -0
- package/scripts/linux/codedeploy/linux-codedeploy-ubuntu.sh +14 -0
- package/scripts/linux/coredns/README.md +17 -0
- package/scripts/linux/coredns/linux-coredns-al2.sh +29 -0
- package/scripts/linux/wifi/01-netconf.yaml +21 -0
- package/scripts/linux/wifi/wifi-ubuntu.sh +17 -0
- package/scripts/mac/dock-sort/mac-dock-sort.sh +87 -0
- package/scripts/mac/dropbox-ignore/mac-dropbox-ignore.sh +12 -0
- package/scripts/mac/sudo-askpass/mac-sudo-askpass.sh +50 -0
- package/scripts/mac/sudo-askpass/setup-sudo-password.sh +49 -0
- package/scripts/mac/upgrade/mac-upgrade.sh +21 -0
- package/scripts/mac/vpn/mac-vpn.sh +4 -0
- package/scripts/mcp/aws-mcp-wrapper.ps1 +97 -0
- package/scripts/mcp/aws-mcp-wrapper.sh +53 -0
- package/scripts/mcp/duplo-mcp-wrapper.sh +31 -0
- package/scripts/mcp/filesystem-mcp-wrapper.ps1 +43 -0
- package/scripts/mcp/filesystem-mcp-wrapper.sh +34 -0
- package/scripts/mcp/git-mcp-wrapper.ps1 +42 -0
- package/scripts/mcp/git-mcp-wrapper.sh +33 -0
- package/scripts/mcp/github-mcp-wrapper.ps1 +43 -0
- package/scripts/mcp/github-mcp-wrapper.sh +19 -0
- package/scripts/mcp/kubernetes-mcp-wrapper.ps1 +22 -0
- package/scripts/mcp/kubernetes-mcp-wrapper.sh +16 -0
- package/scripts/mcp/mcp-launcher.ps1 +56 -0
- package/scripts/mcp/mcp-launcher.sh +71 -0
- package/scripts/mcp/mongodb-mcp-wrapper.ps1 +26 -0
- package/scripts/mcp/mongodb-mcp-wrapper.sh +17 -0
- package/scripts/mcp/notion-mcp-wrapper.ps1 +23 -0
- package/scripts/mcp/notion-mcp-wrapper.sh +14 -0
- package/scripts/mcp/postgres-mcp-wrapper.ps1 +23 -0
- package/scripts/mcp/postgres-mcp-wrapper.sh +16 -0
- package/scripts/npm/ncu/npm-ncu.sh +24 -0
- package/scripts/npm/upgrade/npm-upgrade.sh +51 -0
- package/scripts/qmk/build_reviung41.sh +28 -0
- package/scripts/qmk/sync_unicorne.sh +44 -0
- package/scripts/sync/README.md +64 -0
- package/scripts/sync/config-common.zsh +882 -0
- package/scripts/sync/pull-configs.ps1 +33 -0
- package/scripts/sync/pull-configs.zsh +278 -0
- package/scripts/sync/push-configs.ps1 +91 -0
- package/scripts/sync/push-configs.zsh +384 -0
- package/shell/alias/alias-d.zsh +333 -0
- package/shell/alias/alias.zsh +36 -0
- package/shell/alias/categories/development.zsh +157 -0
- package/shell/alias/categories/environment.zsh +13 -0
- package/shell/alias/categories/git.zsh +40 -0
- package/shell/alias/categories/github-functions.zsh +459 -0
- package/shell/alias/categories/network.zsh +46 -0
- package/shell/alias/categories/path.zsh +46 -0
- package/shell/alias/categories/system.zsh +78 -0
- package/shell/alias/categories/wolfe-server.zsh +11 -0
- package/shell/powershell/Microsoft.PowerShell_profile.ps1 +208 -0
- package/shell/zsh/.p10k.zsh +1832 -0
- package/shell/zsh/.zshrc +87 -0
- package/shell/zsh/config/completion.zsh +31 -0
- package/shell/zsh/config/functions.zsh +31 -0
- package/shell/zsh/config/keybindings.zsh +13 -0
- package/shell/zsh/config/options.zsh +56 -0
- package/shell/zsh/config/plugins.zsh +83 -0
- package/shell/zsh/config/variables.zsh +191 -0
- package/shell/zsh/powerlevel10k.zsh-theme +83 -0
- package/shell/zsh/zsh-autosuggestions.zsh +871 -0
- package/ssh/config +46 -0
- package/ssh/config.duplo +21 -0
- package/ssh/config.mikpc +35 -0
- package/ssh/personal_signing.pub +1 -0
- package/templates/.envrc.example +34 -0
- package/templates/.envrc.quickstart +17 -0
- package/wezterm/wezterm.lua +249 -0
- package/wsl/.wslconfig +3 -0
- package/wsl/wsl.conf +18 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
## Repo & Machine Context Snapshot
|
|
2
|
+
|
|
3
|
+
Build a comprehensive, persistent context document for the current repository. This is a knowledge snapshot that future Claude sessions read first to avoid redundant exploration and reduce token costs.
|
|
4
|
+
|
|
5
|
+
**Do NOT delegate this command to a subagent.** This is an orchestration command — Opus runs it directly.
|
|
6
|
+
|
|
7
|
+
### Input
|
|
8
|
+
$ARGUMENTS - optional focus area (e.g., "frontend", "deployment pipeline"). If omitted, builds full repo context.
|
|
9
|
+
|
|
10
|
+
### Instructions
|
|
11
|
+
|
|
12
|
+
1. **Read existing documentation first:**
|
|
13
|
+
- Read the project CLAUDE.md if it exists
|
|
14
|
+
- Read ALL files in `docs/research/` if the directory exists
|
|
15
|
+
- Read ALL files in `docs/context/` if the directory exists — if a context doc already exists for this repo, you will UPDATE it rather than creating a duplicate
|
|
16
|
+
- Read MEMORY.md if accessible
|
|
17
|
+
|
|
18
|
+
2. **Gather comprehensive context** using parallel Explore subagents for independent areas:
|
|
19
|
+
|
|
20
|
+
**Project identity:**
|
|
21
|
+
- Tech stack (detect from package.json, requirements.txt, Makefile, Cargo.toml, go.mod, etc.)
|
|
22
|
+
- Project structure — key directories and their roles (not just a file listing)
|
|
23
|
+
- Entry points (main files, index files, CLI entry points)
|
|
24
|
+
|
|
25
|
+
**Architecture:**
|
|
26
|
+
- How the codebase is organized (monorepo? modular? layered?)
|
|
27
|
+
- Key abstractions and patterns used
|
|
28
|
+
- Data flow for the primary use case
|
|
29
|
+
|
|
30
|
+
**Development workflow:**
|
|
31
|
+
- How to build, test, lint, format (exact commands)
|
|
32
|
+
- CI/CD pipeline if present
|
|
33
|
+
- Deploy process if present
|
|
34
|
+
- Environment variables and configuration
|
|
35
|
+
|
|
36
|
+
**Testing infrastructure:**
|
|
37
|
+
- Test framework and how to run tests
|
|
38
|
+
- Test coverage and quality assessment
|
|
39
|
+
- Key test files and what they cover
|
|
40
|
+
|
|
41
|
+
**Dependencies:**
|
|
42
|
+
- Critical internal dependencies (what depends on what)
|
|
43
|
+
- External dependencies and their roles
|
|
44
|
+
- Version constraints that matter
|
|
45
|
+
|
|
46
|
+
**Environment:**
|
|
47
|
+
- Current machine/hostname and platform
|
|
48
|
+
- Available tools (node, python, docker, kubectl, etc.)
|
|
49
|
+
- Machine-specific quirks if known from MEMORY.md
|
|
50
|
+
|
|
51
|
+
**Recent trajectory:**
|
|
52
|
+
- Last 20-30 git commits to understand current direction
|
|
53
|
+
- Any in-progress branches or uncommitted work
|
|
54
|
+
- Recent patterns in what's being changed
|
|
55
|
+
|
|
56
|
+
**Gotchas:**
|
|
57
|
+
- Non-obvious behavior, implicit assumptions
|
|
58
|
+
- Tech debt or fragile areas
|
|
59
|
+
- Things that have broken before (from git history or docs)
|
|
60
|
+
|
|
61
|
+
3. **Verify ALL findings against actual code — this is non-negotiable.** Documentation goes stale. The value of this entire system depends on context docs being accurate.
|
|
62
|
+
- Read key source files to confirm architectural claims
|
|
63
|
+
- Run actual commands to verify build/test/lint instructions still work (e.g., `npm test --help`, `cat package.json | grep scripts`)
|
|
64
|
+
- Check git log since the last context doc update — have key files changed?
|
|
65
|
+
- If an existing context doc says "tests use Jest" but you find Vitest in package.json, update accordingly
|
|
66
|
+
- If a documented command no longer works, fix the doc immediately
|
|
67
|
+
- **Every claim in the output doc must be verified against current reality, not copied from a previous doc**
|
|
68
|
+
|
|
69
|
+
4. **Write or update** `docs/context/YYYY-MM-DD-<repo-name>.md`:
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
# Context: <Repo Name>
|
|
73
|
+
_Last updated: YYYY-MM-DD_
|
|
74
|
+
_Machine: <hostname>_
|
|
75
|
+
_Platform: <macOS/Linux/WSL>_
|
|
76
|
+
|
|
77
|
+
## Overview
|
|
78
|
+
What this project does in 2-3 sentences.
|
|
79
|
+
|
|
80
|
+
## Tech Stack
|
|
81
|
+
Languages, frameworks, key libraries with versions.
|
|
82
|
+
|
|
83
|
+
## Project Structure
|
|
84
|
+
Key directories and their roles. Not a full file listing — focus on what matters.
|
|
85
|
+
|
|
86
|
+
## Architecture
|
|
87
|
+
How the pieces fit together. Key patterns and conventions.
|
|
88
|
+
|
|
89
|
+
## Development Workflow
|
|
90
|
+
Exact commands to build, test, lint, format, deploy.
|
|
91
|
+
|
|
92
|
+
## Testing
|
|
93
|
+
Framework, how to run, coverage, key test files.
|
|
94
|
+
|
|
95
|
+
## Dependencies
|
|
96
|
+
Critical internal and external dependencies.
|
|
97
|
+
|
|
98
|
+
## Environment
|
|
99
|
+
Machine-specific context, available tools, quirks.
|
|
100
|
+
|
|
101
|
+
## Recent Trajectory
|
|
102
|
+
What's been changing recently, current direction.
|
|
103
|
+
|
|
104
|
+
## Gotchas
|
|
105
|
+
Non-obvious behavior, fragile areas, things that break.
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Omit sections that don't apply. Add sections if the repo warrants it.
|
|
109
|
+
|
|
110
|
+
5. **If updating an existing context doc:** Preserve the original date in the filename but update the `_Last updated_` field. Only change sections where reality has diverged from what's documented.
|
|
111
|
+
|
|
112
|
+
6. Report the file path and a brief summary of what was captured (or what changed if updating).
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
## Quick Dashboard
|
|
2
|
+
|
|
3
|
+
**IMPORTANT: Immediately delegate this entire task to a subagent using the Agent tool with `model: "haiku"` and `subagent_type: "general-purpose"`.** Do not perform operations yourself. Pass the full prompt below to the subagent and relay its result.
|
|
4
|
+
|
|
5
|
+
### Subagent prompt
|
|
6
|
+
|
|
7
|
+
You are generating a quick status dashboard — 5-second situational awareness. Run ALL checks in parallel for speed.
|
|
8
|
+
|
|
9
|
+
1. **Run in parallel:**
|
|
10
|
+
- `git branch --show-current` — current branch
|
|
11
|
+
- `git status --short` — uncommitted changes (just the summary)
|
|
12
|
+
- `git log --oneline -5` — last 5 commits
|
|
13
|
+
- `git stash list` — any stashed work
|
|
14
|
+
- Check if `docs/plans/` exists and scan for `_Status: PENDING_` or `_Status: IN PROGRESS_` plans (just filenames and status, don't read full content)
|
|
15
|
+
- Check if `docs/handoff/` exists and get the most recent file's date
|
|
16
|
+
- `gh pr list --author @me --limit 5 2>/dev/null` — open PRs (skip if gh not available)
|
|
17
|
+
|
|
18
|
+
2. **Format as a compact dashboard:**
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
┌─ Dashboard ──────────────────────────────────
|
|
22
|
+
│ Branch: feat/my-feature
|
|
23
|
+
│ Changes: 3 modified, 1 untracked
|
|
24
|
+
│ Stashes: none
|
|
25
|
+
│
|
|
26
|
+
│ Recent commits:
|
|
27
|
+
│ abc1234 feat: add webhook support
|
|
28
|
+
│ def5678 fix: resolve auth timeout
|
|
29
|
+
│ ghi9012 chore: update deps
|
|
30
|
+
│
|
|
31
|
+
│ Plans: 2 pending, 1 in progress
|
|
32
|
+
│ Handoff: 2026-02-28 (yesterday)
|
|
33
|
+
│ Open PRs: 1 (CI passing)
|
|
34
|
+
└──────────────────────────────────────────────
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
3. Keep it SHORT. No explanations, no recommendations — just facts. This is a glance, not a briefing. If something needs attention (failing CI, stale handoff, blocked plans), mark it with [!] but don't elaborate.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
## Deployment Verification
|
|
2
|
+
|
|
3
|
+
**IMPORTANT: Immediately delegate this entire task to a subagent using the Agent tool with `model: "haiku"` and `subagent_type: "general-purpose"`.** Do not run any kubectl commands yourself. Pass the full prompt below to the subagent and relay its result.
|
|
4
|
+
|
|
5
|
+
### Input
|
|
6
|
+
$ARGUMENTS - deployment name and namespace (e.g., "my-app staging")
|
|
7
|
+
|
|
8
|
+
### Subagent prompt
|
|
9
|
+
|
|
10
|
+
You are verifying a deployment is healthy. The deployment info is: $ARGUMENTS
|
|
11
|
+
|
|
12
|
+
1. Check deployment rollout status:
|
|
13
|
+
```
|
|
14
|
+
kubectl rollout status deployment/<name> -n <namespace> --timeout=120s
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
2. Verify all pods are Running and Ready:
|
|
18
|
+
```
|
|
19
|
+
kubectl get pods -l app=<name> -n <namespace>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
3. Check for recent restarts or CrashLoopBackOff:
|
|
23
|
+
```
|
|
24
|
+
kubectl get pods -l app=<name> -n <namespace> -o jsonpath='{range .items[*]}{.metadata.name}{" restarts: "}{.status.containerStatuses[0].restartCount}{"\n"}{end}'
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
4. Tail recent logs for errors:
|
|
28
|
+
```
|
|
29
|
+
kubectl logs deployment/<name> -n <namespace> --tail=50
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
5. Verify ConfigMaps and Secrets are mounted correctly:
|
|
33
|
+
```
|
|
34
|
+
kubectl describe pod -l app=<name> -n <namespace> | grep -A5 "Mounts\|Volumes"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
6. Report health status with a clear **HEALTHY** / **UNHEALTHY** verdict and any warnings.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
## Check Dependencies
|
|
2
|
+
|
|
3
|
+
**IMPORTANT: Immediately delegate this entire task to a subagent using the Agent tool with `model: "haiku"` and `subagent_type: "general-purpose"`.** Do not run any commands yourself. Pass the full prompt below to the subagent and relay its result.
|
|
4
|
+
|
|
5
|
+
### Subagent prompt
|
|
6
|
+
|
|
7
|
+
You are checking for outdated dependencies and reporting what needs updating.
|
|
8
|
+
|
|
9
|
+
1. Detect the project type:
|
|
10
|
+
- `package.json` → Node/TS project
|
|
11
|
+
- `pyproject.toml` / `requirements.txt` → Python project
|
|
12
|
+
- Both → check both
|
|
13
|
+
|
|
14
|
+
2. For Node/TS projects:
|
|
15
|
+
- Run `npm outdated` to list outdated packages
|
|
16
|
+
- Categorize as: patch (safe), minor (likely safe), major (breaking changes possible)
|
|
17
|
+
|
|
18
|
+
3. For Python projects:
|
|
19
|
+
- Run `pip list --outdated` or `pip-audit` if available
|
|
20
|
+
- Note any known security vulnerabilities
|
|
21
|
+
|
|
22
|
+
4. Report a summary table:
|
|
23
|
+
- Package name | Current | Latest | Update type (patch/minor/major)
|
|
24
|
+
- Highlight any security-related updates
|
|
25
|
+
|
|
26
|
+
5. Do NOT update anything — just report. Let the user decide what to update.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
## Remote Work on duplo (Work Mac via SSH)
|
|
2
|
+
|
|
3
|
+
Execute tasks on duplo remotely over SSH. The purpose is to use the user's **personal Claude account on this machine** to do work on duplo's repos — without needing Claude signed in on duplo.
|
|
4
|
+
|
|
5
|
+
**CRITICAL: YOU are the agent doing the work.** All slash commands, research, file edits, and coding tasks referenced in $ARGUMENTS are executed by THIS Claude session. SSH is your transport layer for reading files, running commands, and writing files on duplo. NEVER launch, prompt, or invoke Claude Code on duplo itself (no `ssh duplo claude ...`, no `ssh -t duplo claude ...`). If the user says "run /init on that project", YOU run the /init workflow by SSHing into duplo to explore files, then writing artifacts via SSH.
|
|
6
|
+
|
|
7
|
+
### Input
|
|
8
|
+
$ARGUMENTS - what to do on duplo (e.g., "check git status on duplo-ui", "run tests in ai-ops", "deploy configs", "run /init on xterm repo", "create a CLAUDE.md for marketplace")
|
|
9
|
+
|
|
10
|
+
### Connection
|
|
11
|
+
- **SSH host**: `duplo` (Tailscale: 100.83.140.62)
|
|
12
|
+
- **User**: `mikl`
|
|
13
|
+
- **Environment**: macOS, zsh, Homebrew, Node.js, Python, git
|
|
14
|
+
- **Shell**: Non-interactive SSH gets minimal PATH. Use `zsh -lc '...'` when commands need homebrew/node/npm.
|
|
15
|
+
|
|
16
|
+
### Key Paths on duplo
|
|
17
|
+
- **Home**: `/Users/mikl`
|
|
18
|
+
- **Configs repo**: `~/Dropbox/duplo/dev/chiefmikey/configs`
|
|
19
|
+
- **Work repos**: `~/Dropbox/duplo/dev/` — subdirs: `ai/`, `prod/`, `tools/`, `duplo-ui/`, `duplo-infra/`
|
|
20
|
+
- **Claude config**: `~/.claude/`
|
|
21
|
+
|
|
22
|
+
### Environment Notes
|
|
23
|
+
- Git user: `chiefmikey` (work identity, 1Password signing)
|
|
24
|
+
- 1Password SSH agent for keys
|
|
25
|
+
|
|
26
|
+
### Config Sync
|
|
27
|
+
The configs repo on duplo is at `~/Dropbox/duplo/dev/chiefmikey/configs`. Sync via git:
|
|
28
|
+
1. **Before duplo work**: Commit and push any config changes locally first
|
|
29
|
+
2. **Pull on duplo**: `ssh duplo "cd ~/Dropbox/duplo/dev/chiefmikey/configs && git pull origin main"`
|
|
30
|
+
3. **Deploy**: `ssh duplo "cd ~/Dropbox/duplo/dev/chiefmikey/configs && zsh scripts/sync/push-configs.zsh"`
|
|
31
|
+
|
|
32
|
+
Always sync configs at the start of a session if any config files have been modified locally.
|
|
33
|
+
|
|
34
|
+
### Execution Rules
|
|
35
|
+
1. **YOU do all the work from this machine over SSH.** Never launch Claude on duplo.
|
|
36
|
+
2. Use `ssh duplo` for all commands. Use `zsh -lc '...'` when commands need full PATH.
|
|
37
|
+
3. For multi-command workflows, chain with `&&` or use a heredoc:
|
|
38
|
+
```
|
|
39
|
+
ssh duplo bash -s <<'REMOTE'
|
|
40
|
+
command1
|
|
41
|
+
command2
|
|
42
|
+
REMOTE
|
|
43
|
+
```
|
|
44
|
+
4. To read files: `ssh duplo "cat /path/to/file"`
|
|
45
|
+
5. To write files: `ssh duplo "cat > /path/to/file << 'EOF'\n...\nEOF"`
|
|
46
|
+
6. To explore repos: `ssh duplo "ls ..."`, `ssh duplo "find ..."`, `ssh duplo "grep ..."`
|
|
47
|
+
7. When $ARGUMENTS references a slash command (e.g., "/init", "/research", "/prep"), invoke that skill in THIS session and use SSH as the transport to interact with the remote project's files.
|
|
48
|
+
8. Always show command output to the user so they can see what happened.
|
|
49
|
+
9. Do the work — don't just explain what to do. Execute the commands remotely.
|
|
50
|
+
|
|
51
|
+
### Steps
|
|
52
|
+
1. If config files were changed locally, commit and push first, then pull and push-configs on duplo
|
|
53
|
+
2. Parse what the user wants done on duplo from $ARGUMENTS
|
|
54
|
+
3. If a slash command is referenced, invoke the skill here and execute it against the remote repo via SSH
|
|
55
|
+
4. Connect via SSH and execute the task
|
|
56
|
+
5. Report results
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
## Explain Code
|
|
2
|
+
|
|
3
|
+
**Before delegating, gather project context:**
|
|
4
|
+
1. Check if `docs/context/` has a context snapshot — if so, read the most recent one and extract the Architecture and Project Structure sections
|
|
5
|
+
2. Check if `docs/research/` has research relevant to the target area — if so, read it
|
|
6
|
+
3. Read the project CLAUDE.md if it exists
|
|
7
|
+
4. Pass this context to the subagent below
|
|
8
|
+
|
|
9
|
+
**Then delegate this task to a subagent using the Agent tool with `model: "sonnet"` and `subagent_type: "general-purpose"`.** Pass the full prompt below (with context injected) to the subagent and relay its result.
|
|
10
|
+
|
|
11
|
+
### Input
|
|
12
|
+
$ARGUMENTS - optional: file path, function name, or description of what to explain (e.g., "src/auth/middleware.ts", "the push-configs sync flow"). If omitted, explains the most recently changed code.
|
|
13
|
+
|
|
14
|
+
### Subagent prompt
|
|
15
|
+
|
|
16
|
+
You are explaining code to a senior engineer who wants a quick, accurate understanding.
|
|
17
|
+
|
|
18
|
+
**If no target was provided (`$ARGUMENTS` is empty), auto-detect:**
|
|
19
|
+
- Check `git diff --name-only` for uncommitted changes — explain the most complex changed file
|
|
20
|
+
- If no uncommitted changes: check `git log --oneline -1 --name-only` — explain the files from the last commit
|
|
21
|
+
- Focus on the file with the most significant changes (largest diff or most complex logic)
|
|
22
|
+
|
|
23
|
+
**If a target was provided:** Target: $ARGUMENTS
|
|
24
|
+
|
|
25
|
+
**Project Context:**
|
|
26
|
+
[Inject Architecture, Project Structure from docs/context if available]
|
|
27
|
+
[Inject relevant research from docs/research if available]
|
|
28
|
+
[Inject project CLAUDE.md overview if available]
|
|
29
|
+
If no project context is available, infer from the codebase.
|
|
30
|
+
|
|
31
|
+
1. Find and read the relevant code:
|
|
32
|
+
- If a file path was given, read it
|
|
33
|
+
- If a function/class name was given, search for it with grep/glob then read it
|
|
34
|
+
- If a description was given, find the most relevant files
|
|
35
|
+
|
|
36
|
+
2. Provide a structured explanation:
|
|
37
|
+
- **Purpose:** What does this code do? (1-2 sentences)
|
|
38
|
+
- **How it works:** Walk through the key logic steps
|
|
39
|
+
- **Where it fits:** How this piece connects to the broader architecture (use project context)
|
|
40
|
+
- **Dependencies:** What does it depend on? What depends on it?
|
|
41
|
+
- **Key details:** Edge cases, gotchas, or non-obvious behavior worth knowing
|
|
42
|
+
|
|
43
|
+
3. Keep it concise. Don't explain basic language features — focus on the domain logic and architecture decisions. Use file:line references for key points.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
## Fix and Test
|
|
2
|
+
|
|
3
|
+
**Before delegating, gather project context:**
|
|
4
|
+
1. Check if `docs/context/` has a context snapshot — if so, read the most recent one and extract the Architecture, Development Workflow, Testing, and Gotchas sections
|
|
5
|
+
2. Read the project CLAUDE.md if it exists — extract Tech Stack, Commands, and Common Mistakes sections
|
|
6
|
+
3. Check `docs/incidents/` for past incidents related to this error — has this bug happened before? If so, include the prior root cause and fix
|
|
7
|
+
4. Pass this context to the subagent below
|
|
8
|
+
|
|
9
|
+
**Then delegate this task to a subagent using the Agent tool with `model: "sonnet"` and `subagent_type: "general-purpose"`.** Pass the full prompt below (with context injected) to the subagent and relay its result.
|
|
10
|
+
|
|
11
|
+
### Input
|
|
12
|
+
$ARGUMENTS - optional: error message, bug description, or file path with issue. If omitted, auto-detects issues to fix.
|
|
13
|
+
|
|
14
|
+
### Subagent prompt
|
|
15
|
+
|
|
16
|
+
You are doing a quick bugfix: diagnose, fix, verify.
|
|
17
|
+
|
|
18
|
+
**If no issue was provided (`$ARGUMENTS` is empty), auto-detect:**
|
|
19
|
+
- Run the test suite — if any tests fail, fix the first failure
|
|
20
|
+
- Run lint/build — if errors exist, fix them
|
|
21
|
+
- Check `docs/incidents/` for `_Status: ACTIVE_` incidents — pick up the most recent one
|
|
22
|
+
- If nothing is broken: report "All tests pass, build clean, no active incidents. Nothing to fix."
|
|
23
|
+
|
|
24
|
+
**If an issue was provided:** The issue is: $ARGUMENTS
|
|
25
|
+
|
|
26
|
+
**Project Context:**
|
|
27
|
+
[Inject Architecture, Development Workflow, Testing, Gotchas from docs/context if available]
|
|
28
|
+
[Inject Tech Stack, Commands, Common Mistakes from project CLAUDE.md if available]
|
|
29
|
+
If no project context is available, detect the tech stack from the codebase.
|
|
30
|
+
|
|
31
|
+
1. **Diagnose:** Read the relevant code. If an error message is provided, trace it to the root cause. Use project context to understand how the affected code fits into the broader architecture.
|
|
32
|
+
|
|
33
|
+
2. **Fix:** Make the minimal correct fix. Don't refactor unrelated code. Ensure the fix follows project conventions (from context above).
|
|
34
|
+
|
|
35
|
+
3. **Test:** Run the relevant test suite using exact commands from the project context if available. Otherwise:
|
|
36
|
+
- TypeScript: `npx jest <relevant-test-file>` or `npm test`
|
|
37
|
+
- Python: `pytest <relevant-test-file> -v`
|
|
38
|
+
- Angular: `npx ng test --watch=false`
|
|
39
|
+
|
|
40
|
+
4. **Verify build:**
|
|
41
|
+
- TypeScript: `npx tsc --noEmit`
|
|
42
|
+
- Python: `python -m py_compile <file>`
|
|
43
|
+
|
|
44
|
+
5. If tests fail, iterate on the fix until they pass.
|
|
45
|
+
|
|
46
|
+
6. Show the diff of changes made and confirm all tests pass.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
## Game & Shader Debugging (Windows PowerShell)
|
|
2
|
+
|
|
3
|
+
You are debugging game, GPU, or ReShade shader issues on a Windows PC. You have access to custom PowerShell debug helper commands.
|
|
4
|
+
|
|
5
|
+
### Invocation
|
|
6
|
+
|
|
7
|
+
Claude Code runs in bash, NOT PowerShell. The debug helpers are PowerShell functions defined in the user's profile. Use the wrapper script to invoke them:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
powershell -NoProfile -ExecutionPolicy Bypass -File 'C:\Users\wolfe\.claude\scripts\psdebug.ps1' <FunctionName> [args...]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Available Commands
|
|
14
|
+
|
|
15
|
+
| Function | Alias | Purpose |
|
|
16
|
+
|----------|-------|---------|
|
|
17
|
+
| `Get-GpuInfo` | `gpu-info` | GPU adapters, driver version, VRAM, nvidia-smi output |
|
|
18
|
+
| `Get-DxDiag` | `dx-diag` | Full DirectX diagnostic dump (takes ~8 seconds) |
|
|
19
|
+
| `Get-GameProcesses` | `game-procs` | Running game/GPU/Steam/ReShade processes with memory & CPU usage |
|
|
20
|
+
| `Find-ReshadeLogs` | `reshade-logs` | Find and display recent ReShade.log files across Steam libraries |
|
|
21
|
+
| `Find-ReshadeLogs -GamePath '"C:\path\to\game"'` | | Search a specific game directory |
|
|
22
|
+
| `Find-ReshadeShaders` | `reshade-shaders` | List ReShade shader directories, count .fx and texture files |
|
|
23
|
+
| `Find-ReshadeShaders -GamePath '"C:\path\to\game"'` | | Check specific game's shaders |
|
|
24
|
+
| `Get-SteamLogs` | `steam-logs` | Recent Steam log entries |
|
|
25
|
+
| `Get-GameCrashLogs` | `crash-logs` | Windows Event Viewer errors: app crashes, GPU resets, driver failures |
|
|
26
|
+
| `Get-GameCrashLogs -Hours 2` | | Narrow to last N hours |
|
|
27
|
+
| `Get-DebugSummary` | `debug-summary` | One-shot overview: GPU + running games + recent crashes |
|
|
28
|
+
|
|
29
|
+
**Always use the full function name** (e.g., `Get-DebugSummary`) when invoking via the wrapper, not the alias.
|
|
30
|
+
|
|
31
|
+
### Examples
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# Quick system overview
|
|
35
|
+
powershell -NoProfile -ExecutionPolicy Bypass -File 'C:\Users\wolfe\.claude\scripts\psdebug.ps1' Get-DebugSummary
|
|
36
|
+
|
|
37
|
+
# Check ReShade logs for a specific game
|
|
38
|
+
powershell -NoProfile -ExecutionPolicy Bypass -File 'C:\Users\wolfe\.claude\scripts\psdebug.ps1' Find-ReshadeLogs -GamePath '"C:\Program Files (x86)\Steam\steamapps\common\Fable Anniversary"'
|
|
39
|
+
|
|
40
|
+
# Last 2 hours of crash logs
|
|
41
|
+
powershell -NoProfile -ExecutionPolicy Bypass -File 'C:\Users\wolfe\.claude\scripts\psdebug.ps1' Get-GameCrashLogs -Hours 2
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Debugging Workflow
|
|
45
|
+
|
|
46
|
+
1. **Start with** `Get-DebugSummary` to get a quick overview of GPU state, running processes, and recent errors
|
|
47
|
+
2. **If the game is running**, use `Get-GameProcesses` to check its process state, memory usage, and whether ReShade is loaded
|
|
48
|
+
3. **For visual issues**, ask the user to paste a screenshot (Ctrl+V) — you cannot see the screen
|
|
49
|
+
4. **For ReShade problems**, check `Find-ReshadeLogs` first for shader compilation errors, then `Find-ReshadeShaders` to verify shader files exist
|
|
50
|
+
5. **For crashes/freezes**, check `Get-GameCrashLogs` for GPU driver resets (nvlddmkm), application faults, or kernel-power events
|
|
51
|
+
6. **For performance issues**, combine `Get-GpuInfo` (driver version, VRAM) with `Get-GameProcesses` (memory pressure)
|
|
52
|
+
|
|
53
|
+
### Key Paths
|
|
54
|
+
|
|
55
|
+
- Steam default: `C:\Program Files (x86)\Steam\steamapps\common\`
|
|
56
|
+
- Additional Steam libraries may be on D: or E: drives
|
|
57
|
+
- ReShade configs: typically `ReShade.ini` next to the game .exe
|
|
58
|
+
- ReShade shaders: typically `reshade-shaders\` next to the game .exe
|
|
59
|
+
- ReShade logs: `ReShade.log` next to the game .exe
|
|
60
|
+
|
|
61
|
+
### Notes
|
|
62
|
+
|
|
63
|
+
- Claude Code runs in **bash** (Git Bash) — always invoke via the `psdebug.ps1` wrapper
|
|
64
|
+
- Use Windows paths (backslashes) inside PowerShell arguments
|
|
65
|
+
- User may paste screenshots of visual glitches — analyze them carefully
|
|
66
|
+
- If a game directory is needed, ask the user for the game name and check the Steam common directory
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
## Remote Work on Games PC (1TB Isolated Boot Drive)
|
|
2
|
+
|
|
3
|
+
Execute tasks on the gaming PC remotely over SSH from the current machine.
|
|
4
|
+
|
|
5
|
+
### Input
|
|
6
|
+
$ARGUMENTS - what to do on the gaming PC (e.g., "install a game launcher", "check disk space", "run the boot script")
|
|
7
|
+
|
|
8
|
+
### Connection
|
|
9
|
+
- **SSH host**: `games` (Tailscale: 100.84.16.17)
|
|
10
|
+
- **User**: `relax`
|
|
11
|
+
- **Environment**: Native Windows 11 (no WSL)
|
|
12
|
+
- **Shell**: Default SSH shell is **cmd.exe**. Use `powershell -Command "..."` or `powershell -File <script>` for PowerShell.
|
|
13
|
+
|
|
14
|
+
### Key Paths on PC
|
|
15
|
+
- **Home**: `C:\Users\relax`
|
|
16
|
+
- **Boot scripts**: `D:\scripts\` (8TB shared drive — also visible as `B:\` when booted to the 4TB main host)
|
|
17
|
+
- **Start Menu shortcuts**: `%APPDATA%\Microsoft\Windows\Start Menu\Programs\Boot\`
|
|
18
|
+
|
|
19
|
+
### Drive Layout (from 1TB perspective)
|
|
20
|
+
| Letter | Size | Device |
|
|
21
|
+
|--------|------|--------|
|
|
22
|
+
| C: | 837GB | 990 PRO 1TB (this OS) |
|
|
23
|
+
| D: | 7.4TB | WDC 8TB HDD (Backup, shared with 4TB) |
|
|
24
|
+
| E: | 3.3TB | 990 PRO 4TB (main host, visible but not booted) |
|
|
25
|
+
|
|
26
|
+
### Boot Switching
|
|
27
|
+
- **1TB → 4TB**: Normal restart (4TB is default boot)
|
|
28
|
+
- **1TB → 1TB** (e.g., after Windows Update): Start Menu → "Boot to 1TB" or `D:\scripts\Boot-To-1TB.ps1` (requires admin)
|
|
29
|
+
- **BIOS access**: Start Menu → "Boot to BIOS" or `D:\scripts\Boot-To-BIOS.ps1`
|
|
30
|
+
- Mechanism: `bcdedit /set {fwbootmgr} bootsequence {bootmgr}` — one-time boot override, consumed on next restart
|
|
31
|
+
|
|
32
|
+
### Environment Notes
|
|
33
|
+
- This is an isolated gaming/testing Windows install — minimal dev tools
|
|
34
|
+
- No WSL installed, no git, no Node.js — pure Windows environment
|
|
35
|
+
- The 4TB main host (mikpc) is a separate Tailscale device; both can't be online simultaneously since they share the same physical machine
|
|
36
|
+
- SSH server: Windows OpenSSH, MaxAuthTries 10, pubkey auth via 1Password key in `C:\ProgramData\ssh\administrators_authorized_keys`
|
|
37
|
+
|
|
38
|
+
### Execution Rules
|
|
39
|
+
1. Use `ssh games` for all commands. Default shell is cmd.exe.
|
|
40
|
+
2. For PowerShell, use: `ssh games "powershell -Command \"...\""` or write a .ps1 file and execute via `powershell -File`.
|
|
41
|
+
3. For complex multi-command workflows, write a .ps1 script to `D:\scripts\` and run it:
|
|
42
|
+
```
|
|
43
|
+
cat script.ps1 | ssh games "powershell -Command \"\$input | Set-Content -Path 'D:\\scripts\\temp.ps1' -Encoding Ascii\""
|
|
44
|
+
ssh games "powershell -ExecutionPolicy Bypass -File D:\scripts\temp.ps1"
|
|
45
|
+
```
|
|
46
|
+
4. Always show command output to the user so they can see what happened.
|
|
47
|
+
5. Do the work - don't just explain what to do. Execute the commands remotely.
|
|
48
|
+
6. Remember: escaping through SSH → cmd → PowerShell is painful. Prefer writing script files over inline commands when complexity is non-trivial.
|
|
49
|
+
|
|
50
|
+
### Steps
|
|
51
|
+
1. Parse what the user wants done on the gaming PC from $ARGUMENTS
|
|
52
|
+
2. Connect via SSH and execute the task
|
|
53
|
+
3. Report results
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
## Execute Plan to Completion
|
|
2
|
+
|
|
3
|
+
Read the latest implementation plan (or a specified one) and execute it autonomously to 100% completion. Every step is verified. Every claim is backed by evidence. Does not stop until the task is fully done and proven.
|
|
4
|
+
|
|
5
|
+
### Input
|
|
6
|
+
$ARGUMENTS - optional path to a specific plan file. If omitted, executes ALL pending plans in `docs/plans/` (oldest first).
|
|
7
|
+
|
|
8
|
+
### Instructions
|
|
9
|
+
|
|
10
|
+
1. **Load the plan(s):**
|
|
11
|
+
- If `$ARGUMENTS` specifies a file, read and execute that single plan
|
|
12
|
+
- Otherwise, scan ALL `.md` files in `docs/plans/` and read each file's status:
|
|
13
|
+
- `_Status: PENDING_` or no status marker → queued for execution
|
|
14
|
+
- `_Status: IN PROGRESS_` → resume this one first (was interrupted)
|
|
15
|
+
- `_Status: COMPLETED_` → skip
|
|
16
|
+
- Sort pending plans by date (oldest first — execute in the order they were created)
|
|
17
|
+
- If no pending plans exist, stop and tell the user to run `/prep` or `/plans` first
|
|
18
|
+
- Report the queue: "Found N pending plans. Executing in order: [list]"
|
|
19
|
+
|
|
20
|
+
2. **Load and verify supporting context:**
|
|
21
|
+
- Read the `_Context:_` and `_Research:_` files referenced in the plan header
|
|
22
|
+
- Read the project CLAUDE.md if it exists
|
|
23
|
+
- Check `docs/spikes/` for any spikes related to this plan's area — leverage settled decisions
|
|
24
|
+
- Check `docs/incidents/` for past incidents in this area — avoid repeating past failures
|
|
25
|
+
- **Staleness check:** For each referenced doc, verify key claims against current code:
|
|
26
|
+
- Check that files/directories mentioned still exist and have the expected structure
|
|
27
|
+
- Check that key functions/APIs referenced in the plan still have the expected signatures
|
|
28
|
+
- Check recent git log since the doc's date — have relevant files changed significantly?
|
|
29
|
+
- If stale info is found: update the doc, then adjust the plan steps as needed before executing
|
|
30
|
+
- This gives the executing agents verified, current situational awareness
|
|
31
|
+
|
|
32
|
+
3. **Analyze plan independence** (when executing multiple plans):
|
|
33
|
+
- Read the Files section of each pending plan
|
|
34
|
+
- Plans that touch entirely different files/directories are **independent** — can run in parallel
|
|
35
|
+
- Plans that share any files are **dependent** — must run sequentially
|
|
36
|
+
- Group independent plans for parallel execution, sequence dependent ones
|
|
37
|
+
- Report the execution strategy: "Plans A and B are independent (parallel). Plan C depends on A (sequential after A)."
|
|
38
|
+
|
|
39
|
+
4. **For each plan (or parallel group), execute:**
|
|
40
|
+
|
|
41
|
+
a. **Mark the plan as in progress:**
|
|
42
|
+
- Change `_Status: PENDING_` to `_Status: IN PROGRESS_`
|
|
43
|
+
- This ensures interrupted plans are resumed first on the next `/go` run
|
|
44
|
+
|
|
45
|
+
b. **Check for resume point:**
|
|
46
|
+
- Read `_LastCompletedStep: N_` from the plan header
|
|
47
|
+
- If N > 0, this plan was interrupted — skip steps 1 through N
|
|
48
|
+
- Read the Execution Journal (if it exists) for context on prior attempts
|
|
49
|
+
- Report: "Resuming from step N+1 (steps 1-N already completed)"
|
|
50
|
+
|
|
51
|
+
c. **Review the plan critically** before starting:
|
|
52
|
+
- Are there any steps that seem wrong or outdated given current code?
|
|
53
|
+
- Are there missing dependencies between steps?
|
|
54
|
+
- If resuming: verify completed steps are still valid (code hasn't been reverted)
|
|
55
|
+
- If issues are found, fix the plan first, then execute the corrected version
|
|
56
|
+
|
|
57
|
+
d. **Execute each step using subagent-driven development:**
|
|
58
|
+
|
|
59
|
+
For each step in the plan (starting from the resume point):
|
|
60
|
+
|
|
61
|
+
i. **Dispatch implementer subagent** (Agent tool, `subagent_type: "general-purpose"`):
|
|
62
|
+
- Provide the step details (file, what, why, code, verify)
|
|
63
|
+
- Provide relevant context from the loaded docs
|
|
64
|
+
- If Execution Journal has prior failures for this step, include that context
|
|
65
|
+
- Implementer implements the change, runs the step's verify command, and commits
|
|
66
|
+
|
|
67
|
+
ii. **Dispatch spec compliance reviewer** (Agent tool, `subagent_type: "general-purpose"`):
|
|
68
|
+
- Does the implementation match exactly what the plan specified?
|
|
69
|
+
- Are there deviations, missing pieces, or incorrect implementations?
|
|
70
|
+
- If issues: implementer fixes them before proceeding
|
|
71
|
+
|
|
72
|
+
iii. **Dispatch code quality reviewer** (Agent tool, `subagent_type: "general-purpose"`):
|
|
73
|
+
- Does the code follow project conventions and patterns?
|
|
74
|
+
- Architecture, naming, error handling all sound?
|
|
75
|
+
- If issues: implementer fixes them before proceeding
|
|
76
|
+
|
|
77
|
+
iv. **Verify the step** — run the step's verify command independently (don't trust the subagent's claim)
|
|
78
|
+
|
|
79
|
+
v. **Update progress tracking** after each step completes:
|
|
80
|
+
- Update `_LastCompletedStep: N_` in the plan header
|
|
81
|
+
- Append to the Execution Journal:
|
|
82
|
+
```markdown
|
|
83
|
+
### Step N: [Title] — COMPLETED
|
|
84
|
+
- Completed at: YYYY-MM-DD HH:MM
|
|
85
|
+
- Result: [1-line summary of what was done]
|
|
86
|
+
```
|
|
87
|
+
- If the step failed before succeeding, also log:
|
|
88
|
+
```markdown
|
|
89
|
+
### Step N: [Title] — COMPLETED (after retry)
|
|
90
|
+
- Initial failure: [what went wrong]
|
|
91
|
+
- Root cause: [why it failed]
|
|
92
|
+
- Fix: [what was done to resolve it]
|
|
93
|
+
- Completed at: YYYY-MM-DD HH:MM
|
|
94
|
+
```
|
|
95
|
+
- This creates institutional memory for future agents
|
|
96
|
+
|
|
97
|
+
vi. **Move to next step** only after current step is fully verified and progress is saved
|
|
98
|
+
|
|
99
|
+
e. **Full verification after all steps of this plan complete:**
|
|
100
|
+
|
|
101
|
+
Run EVERY applicable verification from the plan's Verification Plan section:
|
|
102
|
+
|
|
103
|
+
- **Tests:** Run the full test suite (unit, integration, e2e — whatever exists). All must pass.
|
|
104
|
+
- **Lint/Format:** Run linter and formatter. Zero errors.
|
|
105
|
+
- **Build:** Run the build command. Must succeed.
|
|
106
|
+
- **Browser testing:** If frontend changes, use playwright or chrome MCP tools to verify rendering and behavior.
|
|
107
|
+
- **API testing:** If backend changes, test endpoints with curl/httpx against a running server.
|
|
108
|
+
- **Infrastructure:** If K8s/Terraform changes, run dry-run/plan commands.
|
|
109
|
+
- **Edge cases:** Test any edge cases listed in the Verification Plan.
|
|
110
|
+
- **Manual checks:** Execute any manual verification steps listed.
|
|
111
|
+
|
|
112
|
+
If ANY verification fails: diagnose, fix, re-verify. Do not skip failures.
|
|
113
|
+
|
|
114
|
+
f. **Update artifacts after completion of this plan:**
|
|
115
|
+
- Update `docs/context/` if the implementation changed the architecture or introduced new patterns
|
|
116
|
+
- Mark the plan file as completed:
|
|
117
|
+
- Change `_Status: IN PROGRESS_` to `_Status: COMPLETED_`
|
|
118
|
+
- Add completion date: `_Completed: YYYY-MM-DD_`
|
|
119
|
+
- Add summary: `_Summary: [1-2 sentence summary of what was done]_`
|
|
120
|
+
- Commit all remaining changes with conventional commit messages
|
|
121
|
+
|
|
122
|
+
5. **Sequential plan handoff** (when moving to the next plan in a queue):
|
|
123
|
+
- Before starting the next plan, check what files the just-completed plan modified: `git diff --name-only HEAD~N` (where N = number of commits from that plan)
|
|
124
|
+
- If the next plan touches any of the same areas, refresh context:
|
|
125
|
+
- Re-read modified files to understand current state
|
|
126
|
+
- Update `docs/context/` if architecture changed
|
|
127
|
+
- Pass a brief "prior plan summary" to the next plan's execution context so subagents know what just changed
|
|
128
|
+
|
|
129
|
+
6. **Continue until all pending plans are executed.** For parallel groups, wait for all plans in the group to complete before starting dependent plans.
|
|
130
|
+
|
|
131
|
+
7. **After all plans are complete:** Invoke `superpowers:verification-before-completion` to confirm all claims. Then invoke `superpowers:finishing-a-development-branch` to handle branch completion (merge, PR, or cleanup).
|
|
132
|
+
|
|
133
|
+
8. **Run `/retro`** — capture learnings from the entire execution:
|
|
134
|
+
- What worked, what didn't, what was surprising
|
|
135
|
+
- Auto-update CLAUDE.md, docs/context/, and MEMORY.md with learnings
|
|
136
|
+
- Write retro to `docs/retros/YYYY-MM-DD-<task-slug>.md`
|
|
137
|
+
- This closes the feedback loop so future agents benefit from this execution's experience
|
|
138
|
+
|
|
139
|
+
9. **Report:** Summary of all plans executed, what was implemented in each, all verification results, retro highlights, and any issues encountered and resolved.
|
|
140
|
+
|
|
141
|
+
### Critical Rules
|
|
142
|
+
|
|
143
|
+
- **Never claim done without fresh verification output as evidence.**
|
|
144
|
+
- **Never skip a failing test.** Diagnose and fix it.
|
|
145
|
+
- **Never move to the next step with open issues.**
|
|
146
|
+
- **If blocked on a step,** try alternative approaches before asking for help.
|
|
147
|
+
- **One commit per logical change,** conventional commit format.
|