Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA
TypeScript
fix: 6 critical fixes + community PR guardrails (v0.13.2.0) (#602)
Garry Tancd66fc2f8909
diff --git a/.gitignore b/.gitignoreindex 38b0fc282..ab951233f 100644--- a/.gitignore+++ b/.gitignore@@ -11,7 +11,6 @@ extension/.auth.json.gstack-worktrees//tmp/*.log-bun.lock*.bun-build.env.env.localdiff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8868e5c7f..aaac60619 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,22 @@# Changelog+## [0.13.3.0] - 2026-03-28 — Lock It Down++Six fixes from community PRs and bug reports. The big one: your dependency tree is now pinned. Every `bun install` resolves the exact same versions, every time. No more floating ranges pulling fresh packages from npm on every setup.++### Fixed++- **Dependencies are now pinned.** `bun.lock` is committed and tracked. Every install resolves identical versions instead of floating `^` ranges from npm. Closes the supply-chain vector from #566.+- **`gstack-slug` no longer crashes outside git repos.** Falls back to directory name and "unknown" branch when there's no remote or HEAD. Every review skill that depends on slug detection now works in non-git contexts.+- **`./setup` no longer hangs in CI.** The skill-prefix prompt now auto-selects short names after 10 seconds. Conductor workspaces, Docker builds, and unattended installs proceed without human input.+- **Browse CLI works on Windows.** The server lockfile now uses `'wx'` string flag instead of numeric `fs.constants` that Bun compiled binaries don't handle on Windows.+- **`/ship` and `/review` find your design docs.** Plan search now checks `~/.gstack/projects/` first, where `/office-hours` writes design documents. Previously, plan validation silently skipped because it was looking in the wrong directories.+- **`/autoplan` dual-voice actually works.** Background subagents can't read files (Claude Code limitation), so the Claude voice was silently failing on every run. Now runs sequentially in foreground. Both voices complete before the consensus table.++### Added++- **Community PR guardrails in CLAUDE.md.** ETHOS.md, promotional material, and Garry's voice are explicitly protected from modification without user approval.+## [0.13.2.0] - 2026-03-28 — User SovereigntyAI models now recommend instead of override. When Claude and Codex agree on a scope change, they present it to you instead of just doing it. Your direction is the default, not the models' consensus.diff --git a/CLAUDE.md b/CLAUDE.mdindex f73f5b947..0ea420c75 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -221,6 +221,24 @@ Examples of good bisection:When the user says "bisect commit" or "bisect and push," split staged/unstagedchanges into logical commits and push.+## Community PR guardrails++When reviewing or merging community PRs, **always AskUserQuestion** before accepting+any commit that:++1. **Touches ETHOS.md** — this file is Garry's personal builder philosophy. No edits+ from external contributors or AI agents, period.+2. **Removes or softens promotional material** — YC references, founder perspective,+ and product voice are intentional. PRs that frame these as "unnecessary" or+ "too promotional" must be rejected.+3. **Changes Garry's voice** — the tone, humor, directness, and perspective in skill+ templates, CHANGELOG, and docs are not generic. PRs that rewrite voice to be+ more "neutral" or "professional" must be rejected.++Even if the agent strongly believes a change improves the project, these three+categories require explicit user approval via AskUserQuestion. No exceptions.+No auto-merging. No "I'll just clean this up."+## CHANGELOG + VERSION style**VERSION and CHANGELOG are branch-scoped.** Every feature branch that ships gets itsdiff --git a/VERSION b/VERSIONindex dd678579b..bc603fe1f 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-0.13.2.0+0.13.3.0diff --git a/autoplan/SKILL.md b/autoplan/SKILL.mdindex e4a2f78dc..50c2b30ce 100644--- a/autoplan/SKILL.md+++ b/autoplan/SKILL.md@@ -647,7 +647,9 @@ Override: every AskUserQuestion → auto-decide using the 6 principles.Duplicates → reject (P4). Borderline (3-5 files) → mark TASTE DECISION.- All 10 review sections: run fully, auto-decide each issue, log every decision.- Dual voices: always run BOTH Claude subagent AND Codex if available (P6).- Run them simultaneously (Agent tool for subagent, Bash for Codex).+ Run them sequentially in foreground. First the Claude subagent (Agent tool,+ foreground — do NOT use run_in_background), then Codex (Bash). Both must+ complete before building the consensus table.**Codex CEO voice** (via Bash):```bash@@ -674,7 +676,7 @@ Override: every AskUserQuestion → auto-decide using the 6 principles.5. What's the competitive risk — could someone else solve this first/better?For each finding: what's wrong, severity (critical/high/medium), and the fix."- **Error handling:** All non-blocking. Codex auth/timeout/empty → proceed with+ **Error handling:** Both calls block in foreground. Codex auth/timeout/empty → proceed withClaude subagent only, tagged `[single-model]`. If Claude subagent also fails →"Outside voices unavailable — continuing with primary review."@@ -696,10 +698,10 @@ Step 0 (0A-0F) — run each sub-step and produce:- 0E: Temporal interrogation (HOUR 1 → HOUR 6+)- 0F: Mode selection confirmation-Step 0.5 (Dual Voices): Run Claude subagent AND Codex simultaneously. Present-Codex output under CODEX SAYS (CEO — strategy challenge) header. Present subagent-output under CLAUDE SUBAGENT (CEO — strategic independence) header. Produce CEO-consensus table:+Step 0.5 (Dual Voices): Run Claude subagent (foreground Agent tool) first, then+Codex (Bash). Present Codex output under CODEX SAYS (CEO — strategy challenge)+header. Present subagent output under CLAUDE SUBAGENT (CEO — strategic independence)+header. Produce CEO consensus table:```CEO DUAL VOICES — CONSENSUS TABLE:@@ -792,7 +794,7 @@ Override: every AskUserQuestion → auto-decide using the 6 principles.For each finding: what's wrong, severity (critical/high/medium), and the fix."NO prior-phase context — subagent must be truly independent.- Error handling: same as Phase 1 (non-blocking, degradation matrix applies).+ Error handling: same as Phase 1 (both foreground/blocking, degradation matrix applies).- Design choices: if codex disagrees with a design decision with valid UX reasoning→ TASTE DECISION. Scope changes both models agree on → USER CHALLENGE.@@ -801,7 +803,7 @@ Override: every AskUserQuestion → auto-decide using the 6 principles.1. Step 0 (Design Scope): Rate completeness 0-10. Check DESIGN.md. Map existing patterns.-2. Step 0.5 (Dual Voices): Run Claude subagent AND Codex simultaneously. Present under+2. Step 0.5 (Dual Voices): Run Claude subagent (foreground) first, then Codex. Present underCODEX SAYS (design — UX challenge) and CLAUDE SUBAGENT (design — independent review)headers. Produce design litmus scorecard (consensus table). Use the litmus scorecardformat from plan-design-review. Include CEO phase findings in Codex prompt ONLY@@ -862,7 +864,7 @@ Override: every AskUserQuestion → auto-decide using the 6 principles.For each finding: what's wrong, severity, and the fix."NO prior-phase context — subagent must be truly independent.- Error handling: same as Phase 1 (non-blocking, degradation matrix applies).+ Error handling: same as Phase 1 (both foreground/blocking, degradation matrix applies).- Architecture choices: explicit over clever (P5). If codex disagrees with valid reason → TASTE DECISION. Scope changes both models agree on → USER CHALLENGE.- Evals: always include all relevant suites (P1)@@ -874,7 +876,7 @@ Override: every AskUserQuestion → auto-decide using the 6 principles.1. Step 0 (Scope Challenge): Read actual code referenced by the plan. Map eachsub-problem to existing code. Run the complexity check. Produce concrete findings.-2. Step 0.5 (Dual Voices): Run Claude subagent AND Codex simultaneously. Present+2. Step 0.5 (Dual Voices): Run Claude subagent (foreground) first, then Codex. PresentCodex output under CODEX SAYS (eng — architecture challenge) header. Present subagentoutput under CLAUDE SUBAGENT (eng — independent review) header. Produce eng consensustable:diff --git a/autoplan/SKILL.md.tmpl b/autoplan/SKILL.md.tmplindex 40c5f26b5..5577b64bc 100644--- a/autoplan/SKILL.md.tmpl+++ b/autoplan/SKILL.md.tmpl@@ -235,7 +235,9 @@ Override: every AskUserQuestion → auto-decide using the 6 principles.Duplicates → reject (P4). Borderline (3-5 files) → mark TASTE DECISION.- All 10 review sections: run fully, auto-decide each issue, log every decision.- Dual voices: always run BOTH Claude subagent AND Codex if available (P6).- Run them simultaneously (Agent tool for subagent, Bash for Codex).+ Run them sequentially in foreground. First the Claude subagent (Agent tool,+ foreground — do NOT use run_in_background), then Codex (Bash). Both must+ complete before building the consensus table.**Codex CEO voice** (via Bash):```bash@@ -262,7 +264,7 @@ Override: every AskUserQuestion → auto-decide using the 6 principles.5. What's the competitive risk — could someone else solve this first/better?For each finding: what's wrong, severity (critical/high/medium), and the fix."- **Error handling:** All non-blocking. Codex auth/timeout/empty → proceed with+ **Error handling:** Both calls block in foreground. Codex auth/timeout/empty → proceed withClaude subagent only, tagged `[single-model]`. If Claude subagent also fails →"Outside voices unavailable — continuing with primary review."@@ -284,10 +286,10 @@ Step 0 (0A-0F) — run each sub-step and produce:- 0E: Temporal interrogation (HOUR 1 → HOUR 6+)- 0F: Mode selection confirmation-Step 0.5 (Dual Voices): Run Claude subagent AND Codex simultaneously. Present-Codex output under CODEX SAYS (CEO — strategy challenge) header. Present subagent-output under CLAUDE SUBAGENT (CEO — strategic independence) header. Produce CEO-consensus table:+Step 0.5 (Dual Voices): Run Claude subagent (foreground Agent tool) first, then+Codex (Bash). Present Codex output under CODEX SAYS (CEO — strategy challenge)+header. Present subagent output under CLAUDE SUBAGENT (CEO — strategic independence)+header. Produce CEO consensus table:```CEO DUAL VOICES — CONSENSUS TABLE:@@ -380,7 +382,7 @@ Override: every AskUserQuestion → auto-decide using the 6 principles.For each finding: what's wrong, severity (critical/high/medium), and the fix."NO prior-phase context — subagent must be truly independent.- Error handling: same as Phase 1 (non-blocking, degradation matrix applies).+ Error handling: same as Phase 1 (both foreground/blocking, degradation matrix applies).- Design choices: if codex disagrees with a design decision with valid UX reasoning→ TASTE DECISION. Scope changes both models agree on → USER CHALLENGE.@@ -389,7 +391,7 @@ Override: every AskUserQuestion → auto-decide using the 6 principles.1. Step 0 (Design Scope): Rate completeness 0-10. Check DESIGN.md. Map existing patterns.-2. Step 0.5 (Dual Voices): Run Claude subagent AND Codex simultaneously. Present under+2. Step 0.5 (Dual Voices): Run Claude subagent (foreground) first, then Codex. Present underCODEX SAYS (design — UX challenge) and CLAUDE SUBAGENT (design — independent review)headers. Produce design litmus scorecard (consensus table). Use the litmus scorecardformat from plan-design-review. Include CEO phase findings in Codex prompt ONLY@@ -450,7 +452,7 @@ Override: every AskUserQuestion → auto-decide using the 6 principles.For each finding: what's wrong, severity, and the fix."NO prior-phase context — subagent must be truly independent.- Error handling: same as Phase 1 (non-blocking, degradation matrix applies).+ Error handling: same as Phase 1 (both foreground/blocking, degradation matrix applies).- Architecture choices: explicit over clever (P5). If codex disagrees with valid reason → TASTE DECISION. Scope changes both models agree on → USER CHALLENGE.- Evals: always include all relevant suites (P1)@@ -462,7 +464,7 @@ Override: every AskUserQuestion → auto-decide using the 6 principles.1. Step 0 (Scope Challenge): Read actual code referenced by the plan. Map eachsub-problem to existing code. Run the complexity check. Produce concrete findings.-2. Step 0.5 (Dual Voices): Run Claude subagent AND Codex simultaneously. Present+2. Step 0.5 (Dual Voices): Run Claude subagent (foreground) first, then Codex. PresentCodex output under CODEX SAYS (eng — architecture challenge) header. Present subagentoutput under CLAUDE SUBAGENT (eng — independent review) header. Produce eng consensustable:diff --git a/bin/gstack-slug b/bin/gstack-slugindex a7ae78839..baa1403f3 100755--- a/bin/gstack-slug+++ b/bin/gstack-slug@@ -6,10 +6,13 @@# Security: output is sanitized to [a-zA-Z0-9._-] only, preventing# shell injection when consumed via source or eval.set -euo pipefail-RAW_SLUG=$(git remote get-url origin 2>/dev/null | sed 's|.*[:/]\([^/]*/[^/]*\)\.git$|\1|;s|.*[:/]\([^/]*/[^/]*\)$|\1|' | tr '/' '-')-RAW_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null | tr '/' '-')+RAW_SLUG=$(git remote get-url origin 2>/dev/null | sed 's|.*[:/]\([^/]*/[^/]*\)\.git$|\1|;s|.*[:/]\([^/]*/[^/]*\)$|\1|' | tr '/' '-') || true+RAW_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null | tr '/' '-') || true# Strip any characters that aren't alphanumeric, dot, hyphen, or underscore-SLUG=$(printf '%s' "$RAW_SLUG" | tr -cd 'a-zA-Z0-9._-')-BRANCH=$(printf '%s' "$RAW_BRANCH" | tr -cd 'a-zA-Z0-9._-')+SLUG=$(printf '%s' "${RAW_SLUG:-}" | tr -cd 'a-zA-Z0-9._-')+BRANCH=$(printf '%s' "${RAW_BRANCH:-}" | tr -cd 'a-zA-Z0-9._-')+# Fallback when git context is absent+SLUG="${SLUG:-$(basename "$PWD" | tr -cd 'a-zA-Z0-9._-')}"+BRANCH="${BRANCH:-unknown}"echo "SLUG=$SLUG"echo "BRANCH=$BRANCH"diff --git a/browse/src/cli.ts b/browse/src/cli.tsindex a24886c24..e6e470fd5 100644--- a/browse/src/cli.ts+++ b/browse/src/cli.ts@@ -291,8 +291,9 @@ async function startServer(extraEnv?: Record<string, string>): Promise<ServerStafunction acquireServerLock(): (() => void) | null {const lockPath = `${config.stateFile}.lock`;try {- // O_CREAT | O_EXCL — fails if file already exists (atomic check-and-create)- const fd = fs.openSync(lockPath, fs.constants.O_CREAT | fs.constants.O_EXCL | fs.constants.O_WRONLY);+ // 'wx' — create exclusively, fails if file already exists (atomic check-and-create)+ // Using string flag instead of numeric constants for Bun Windows compatibility+ const fd = fs.openSync(lockPath, 'wx');fs.writeSync(fd, `${process.pid}\n`);fs.closeSync(fd);return () => { try { fs.unlinkSync(lockPath); } catch {} };diff --git a/bun.lock b/bun.locknew file mode 100644index 000000000..255f4ee71--- /dev/null+++ b/bun.lock@@ -0,0 +1,196 @@+{+ "lockfileVersion": 1,+ "configVersion": 1,+ "workspaces": {+ "": {+ "name": "gstack",+ "dependencies": {+ "diff": "^7.0.0",+ "playwright": "^1.58.2",+ "puppeteer-core": "^24.40.0",+ },+ "devDependencies": {+ "@anthropic-ai/sdk": "^0.78.0",+ },+ },+ },+ "packages": {+ "@anthropic-ai/sdk": ["@anthropic-ai/[email protected]", "", { "dependencies": { "json-schema-to-ts": "^3.1.1" }, "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" }, "optionalPeers": ["zod"], "bin": { "anthropic-ai-sdk": "bin/cli" } }, "sha512-PzQhR715td/m1UaaN5hHXjYB8Gl2lF9UVhrrGrZeysiF6Rb74Wc9GCB8hzLdzmQtBd1qe89F9OptgB9Za1Ib5w=="],++ "@babel/runtime": ["@babel/[email protected]", "", {}, "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g=="],++ "@puppeteer/browsers": ["@puppeteer/[email protected]", "", { "dependencies": { "debug": "^4.4.3", "extract-zip": "^2.0.1", "progress": "^2.0.3", "proxy-agent": "^6.5.0", "semver": "^7.7.4", "tar-fs": "^3.1.1", "yargs": "^17.7.2" }, "bin": { "browsers": "lib/cjs/main-cli.js" } }, "sha512-46BZJYJjc/WwmKjsvDFykHtXrtomsCIrwYQPOP7VfMJoZY2bsDF9oROBABR3paDjDcmkUye1Pb1BqdcdiipaWA=="],++ "@tootallnate/quickjs-emscripten": ["@tootallnate/[email protected]", "", {}, "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA=="],++ "@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw=="],++ "@types/yauzl": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q=="],++ "agent-base": ["[email protected]", "", {}, "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ=="],++ "ansi-regex": ["[email protected]", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],++ "ansi-styles": ["[email protected]", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],++ "ast-types": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.1" } }, "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w=="],++ "b4a": ["[email protected]", "", { "peerDependencies": { "react-native-b4a": "*" }, "optionalPeers": ["react-native-b4a"] }, "sha512-qRuSmNSkGQaHwNbM7J78Wwy+ghLEYF1zNrSeMxj4Kgw6y33O3mXcQ6Ie9fRvfU/YnxWkOchPXbaLb73TkIsfdg=="],++ "bare-events": ["[email protected]", "", { "peerDependencies": { "bare-abort-controller": "*" }, "optionalPeers": ["bare-abort-controller"] }, "sha512-riJjyv1/mHLIPX4RwiK+oW9/4c3TEUeORHKefKAKnZ5kyslbN+HXowtbaVEqt4IMUB7OXlfixcs6gsFeo/jhiQ=="],++ "bare-fs": ["[email protected]", "", { "dependencies": { "bare-events": "^2.5.4", "bare-path": "^3.0.0", "bare-stream": "^2.6.4", "bare-url": "^2.2.2", "fast-fifo": "^1.3.2" }, "peerDependencies": { "bare-buffer": "*" }, "optionalPeers": ["bare-buffer"] }, "sha512-1QovqDrR80Pmt5HPAsMsXTCFcDYr+NSUKW6nd6WO5v0JBmnItc/irNRzm2KOQ5oZ69P37y+AMujNyNtG+1Rggw=="],++ "bare-os": ["[email protected]", "", {}, "sha512-6g8rIdyQqYL6XbghpOgS8AOSvWQUf0zT0XaYUrJIX5VugpCGUyJaz1zfcKCecOnUkI76oVJXuHg1LMGYVXTvKw=="],++ "bare-path": ["[email protected]", "", { "dependencies": { "bare-os": "^3.0.1" } }, "sha512-tyfW2cQcB5NN8Saijrhqn0Zh7AnFNsnczRcuWODH0eYAXBsJ5gVxAUuNr7tsHSC6IZ77cA0SitzT+s47kot8Mw=="],++ "bare-stream": ["[email protected]", "", { "dependencies": { "streamx": "^2.25.0", "teex": "^1.0.1" }, "peerDependencies": { "bare-abort-controller": "*", "bare-buffer": "*", "bare-events": "*" }, "optionalPeers": ["bare-abort-controller", "bare-buffer", "bare-events"] }, "sha512-Y/+iQ49fL3rIn6w/AVxI/2+BRrpmzJvdWt5Jv8Za6Ngqc6V227c+pYjYYgLdpR3MwQ9ObVXD0ZrqoBztakM0rw=="],++ "bare-url": ["[email protected]", "", { "dependencies": { "bare-path": "^3.0.0" } }, "sha512-NSTU5WN+fy/L0DDenfE8SXQna4voXuW0FHM7wH8i3/q9khUSchfPbPezO4zSFMnDGIf9YE+mt/RWhZgNRKRIXA=="],++ "basic-ftp": ["[email protected]", "", {}, "sha512-VoMINM2rqJwJgfdHq6RiUudKt2BV+FY5ZFezP/ypmwayk68+NzzAQy4XXLlqsGD4MCzq3DrmNFD/uUmBJuGoXw=="],++ "buffer-crc32": ["[email protected]", "", {}, "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ=="],++ "chromium-bidi": ["[email protected]", "", { "dependencies": { "mitt": "^3.0.1", "zod": "^3.24.1" }, "peerDependencies": { "devtools-protocol": "*" } }, "sha512-9gYlLtS6tStdRWzrtXaTMnqcM4dudNegMXJxkR0I/CXObHalYeYcAMPrL19eroNZHtJ8DQmu1E+ZNOYu/IXMXw=="],++ "cliui": ["[email protected]", "", { "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" } }, "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ=="],++ "color-convert": ["[email protected]", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="],++ "color-name": ["[email protected]", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="],++ "data-uri-to-buffer": ["[email protected]", "", {}, "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw=="],++ "debug": ["[email protected]", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],++ "degenerator": ["[email protected]", "", { "dependencies": { "ast-types": "^0.13.4", "escodegen": "^2.1.0", "esprima": "^4.0.1" } }, "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ=="],++ "devtools-protocol": ["[email protected]", "", {}, "sha512-nv7iKtNZQshSW2hKzYNr46nM/Cfh5SEvE2oV0/SEGgc9XupIY5ggf84Cz8eJIkBce7S3bmTAauFD6aysMpnqsQ=="],++ "diff": ["[email protected]", "", {}, "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw=="],++ "emoji-regex": ["[email protected]", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],++ "end-of-stream": ["[email protected]", "", { "dependencies": { "once": "^1.4.0" } }, "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg=="],++ "escalade": ["[email protected]", "", {}, "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="],++ "escodegen": ["[email protected]", "", { "dependencies": { "esprima": "^4.0.1", "estraverse": "^5.2.0", "esutils": "^2.0.2" }, "optionalDependencies": { "source-map": "~0.6.1" }, "bin": { "esgenerate": "bin/esgenerate.js", "escodegen": "bin/escodegen.js" } }, "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w=="],++ "esprima": ["[email protected]", "", { "bin": { "esparse": "./bin/esparse.js", "esvalidate": "./bin/esvalidate.js" } }, "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="],++ "estraverse": ["[email protected]", "", {}, "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="],++ "esutils": ["[email protected]", "", {}, "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g=="],++ "events-universal": ["[email protected]", "", { "dependencies": { "bare-events": "^2.7.0" } }, "sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw=="],++ "extract-zip": ["[email protected]", "", { "dependencies": { "debug": "^4.1.1", "get-stream": "^5.1.0", "yauzl": "^2.10.0" }, "optionalDependencies": { "@types/yauzl": "^2.9.1" }, "bin": { "extract-zip": "cli.js" } }, "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg=="],++ "fast-fifo": ["[email protected]", "", {}, "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ=="],++ "fd-slicer": ["[email protected]", "", { "dependencies": { "pend": "~1.2.0" } }, "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g=="],++ "fsevents": ["[email protected]", "", { "os": "darwin" }, "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="],++ "get-caller-file": ["[email protected]", "", {}, "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="],++ "get-stream": ["[email protected]", "", { "dependencies": { "pump": "^3.0.0" } }, "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA=="],++ "get-uri": ["[email protected]", "", { "dependencies": { "basic-ftp": "^5.0.2", "data-uri-to-buffer": "^6.0.2", "debug": "^4.3.4" } }, "sha512-b1O07XYq8eRuVzBNgJLstU6FYc1tS6wnMtF1I1D9lE8LxZSOGZ7LhxN54yPP6mGw5f2CkXY2BQUL9Fx41qvcIg=="],++ "http-proxy-agent": ["[email protected]", "", { "dependencies": { "agent-base": "^7.1.0", "debug": "^4.3.4" } }, "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig=="],++ "https-proxy-agent": ["[email protected]", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "4" } }, "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw=="],++ "ip-address": ["[email protected]", "", {}, "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q=="],++ "is-fullwidth-code-point": ["[email protected]", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="],++ "json-schema-to-ts": ["[email protected]", "", { "dependencies": { "@babel/runtime": "^7.18.3", "ts-algebra": "^2.0.0" } }, "sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g=="],++ "lru-cache": ["[email protected]", "", {}, "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA=="],++ "mitt": ["[email protected]", "", {}, "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw=="],++ "ms": ["[email protected]", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],++ "netmask": ["[email protected]", "", {}, "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg=="],++ "once": ["[email protected]", "", { "dependencies": { "wrappy": "1" } }, "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w=="],++ "pac-proxy-agent": ["[email protected]", "", { "dependencies": { "@tootallnate/quickjs-emscripten": "^0.23.0", "agent-base": "^7.1.2", "debug": "^4.3.4", "get-uri": "^6.0.1", "http-proxy-agent": "^7.0.0", "https-proxy-agent": "^7.0.6", "pac-resolver": "^7.0.1", "socks-proxy-agent": "^8.0.5" } }, "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA=="],++ "pac-resolver": ["[email protected]", "", { "dependencies": { "degenerator": "^5.0.0", "netmask": "^2.0.2" } }, "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg=="],++ "pend": ["[email protected]", "", {}, "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg=="],++ "playwright": ["[email protected]", "", { "dependencies": { "playwright-core": "1.58.2" }, "optionalDependencies": { "fsevents": "2.3.2" }, "bin": { "playwright": "cli.js" } }, "sha512-vA30H8Nvkq/cPBnNw4Q8TWz1EJyqgpuinBcHET0YVJVFldr8JDNiU9LaWAE1KqSkRYazuaBhTpB5ZzShOezQ6A=="],++ "playwright-core": ["[email protected]", "", { "bin": { "playwright-core": "cli.js" } }, "sha512-yZkEtftgwS8CsfYo7nm0KE8jsvm6i/PTgVtB8DL726wNf6H2IMsDuxCpJj59KDaxCtSnrWan2AeDqM7JBaultg=="],++ "progress": ["[email protected]", "", {}, "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA=="],++ "proxy-agent": ["[email protected]", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "^4.3.4", "http-proxy-agent": "^7.0.1", "https-proxy-agent": "^7.0.6", "lru-cache": "^7.14.1", "pac-proxy-agent": "^7.1.0", "proxy-from-env": "^1.1.0", "socks-proxy-agent": "^8.0.5" } }, "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A=="],++ "proxy-from-env": ["[email protected]", "", {}, "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="],++ "pump": ["[email protected]", "", { "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA=="],++ "puppeteer-core": ["[email protected]", "", { "dependencies": { "@puppeteer/browsers": "2.13.0", "chromium-bidi": "14.0.0", "debug": "^4.4.3", "devtools-protocol": "0.0.1581282", "typed-query-selector": "^2.12.1", "webdriver-bidi-protocol": "0.4.1", "ws": "^8.19.0" } }, "sha512-MWL3XbUCfVgGR0gRsidzT6oKJT2QydPLhMITU6HoVWiiv4gkb6gJi3pcdAa8q4HwjBTbqISOWVP4aJiiyUJvag=="],++ "require-directory": ["[email protected]", "", {}, "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q=="],++ "semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="],++ "smart-buffer": ["[email protected]", "", {}, "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg=="],++ "socks": ["[email protected]", "", { "dependencies": { "ip-address": "^10.0.1", "smart-buffer": "^4.2.0" } }, "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A=="],++ "socks-proxy-agent": ["[email protected]", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "^4.3.4", "socks": "^2.8.3" } }, "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw=="],++ "source-map": ["[email protected]", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="],++ "streamx": ["[email protected]", "", { "dependencies": { "events-universal": "^1.0.0", "fast-fifo": "^1.3.2", "text-decoder": "^1.1.0" } }, "sha512-0nQuG6jf1w+wddNEEXCF4nTg3LtufWINB5eFEN+5TNZW7KWJp6x87+JFL43vaAUPyCfH1wID+mNVyW6OHtFamg=="],++ "string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],++ "strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],++ "tar-fs": ["[email protected]", "", { "dependencies": { "pump": "^3.0.0", "tar-stream": "^3.1.5" }, "optionalDependencies": { "bare-fs": "^4.0.1", "bare-path": "^3.0.0" } }, "sha512-QGxxTxxyleAdyM3kpFs14ymbYmNFrfY+pHj7Z8FgtbZ7w2//VAgLMac7sT6nRpIHjppXO2AwwEOg0bPFVRcmXw=="],++ "tar-stream": ["[email protected]", "", { "dependencies": { "b4a": "^1.6.4", "bare-fs": "^4.5.5", "fast-fifo": "^1.2.0", "streamx": "^2.15.0" } }, "sha512-U6QpVRyCGHva435KoNWy9PRoi2IFYCgtEhq9nmrPPpbRacPs9IH4aJ3gbrFC8dPcXvdSZ4XXfXT5Fshbp2MtlQ=="],++ "teex": ["[email protected]", "", { "dependencies": { "streamx": "^2.12.5" } }, "sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg=="],++ "text-decoder": ["[email protected]", "", { "dependencies": { "b4a": "^1.6.4" } }, "sha512-vlLytXkeP4xvEq2otHeJfSQIRyWxo/oZGEbXrtEEF9Hnmrdly59sUbzZ/QgyWuLYHctCHxFF4tRQZNQ9k60ExQ=="],++ "ts-algebra": ["[email protected]", "", {}, "sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw=="],++ "tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "typed-query-selector": ["[email protected]", "", {}, "sha512-uzR+FzI8qrUEIu96oaeBJmd9E7CFEiQ3goA5qCVgc4s5llSubcfGHq9yUstZx/k4s9dXHVKsE35YWoFyvEqEHA=="],++ "undici-types": ["[email protected]", "", {}, "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w=="],++ "webdriver-bidi-protocol": ["[email protected]", "", {}, "sha512-ARrjNjtWRRs2w4Tk7nqrf2gBI0QXWuOmMCx2hU+1jUt6d00MjMxURrhxhGbrsoiZKJrhTSTzbIrc554iKI10qw=="],++ "wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],++ "wrappy": ["[email protected]", "", {}, "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="],++ "ws": ["[email protected]", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA=="],++ "y18n": ["[email protected]", "", {}, "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="],++ "yargs": ["[email protected]", "", { "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", "yargs-parser": "^21.1.1" } }, "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w=="],++ "yargs-parser": ["[email protected]", "", {}, "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw=="],++ "yauzl": ["[email protected]", "", { "dependencies": { "buffer-crc32": "~0.2.3", "fd-slicer": "~1.1.0" } }, "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g=="],++ "zod": ["[email protected]", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],+ }+}diff --git a/design-shotgun/SKILL.md b/design-shotgun/SKILL.mdindex 6c3b3f075..080754e6c 100644--- a/design-shotgun/SKILL.md+++ b/design-shotgun/SKILL.md@@ -594,6 +594,7 @@ After all agents complete:image list from whatever variant files actually exist, not a hardcoded A/B/C list:```bash+setopt +o nomatch 2>/dev/null || true # zsh compat_IMAGES=$(ls "$_DESIGN_DIR"/variant-*.png 2>/dev/null | tr '\n' ',' | sed 's/,$//')```diff --git a/design-shotgun/SKILL.md.tmpl b/design-shotgun/SKILL.md.tmplindex 3e3984e2c..436c8bc65 100644--- a/design-shotgun/SKILL.md.tmpl+++ b/design-shotgun/SKILL.md.tmpl@@ -246,6 +246,7 @@ After all agents complete:image list from whatever variant files actually exist, not a hardcoded A/B/C list:```bash+setopt +o nomatch 2>/dev/null || true # zsh compat_IMAGES=$(ls "$_DESIGN_DIR"/variant-*.png 2>/dev/null | tr '\n' ',' | sed 's/,$//')```diff --git a/package.json b/package.jsonindex 7d68f04df..55f7a9fbb 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "gstack",- "version": "0.13.0.0",+ "version": "0.13.3.0","description": "Garry's Stack — Claude Code skills + fast headless browser. One repo, one install, entire AI engineering workflow.","license": "MIT","type": "module",diff --git a/review/SKILL.md b/review/SKILL.mdindex c76040fad..9b47b6902 100644--- a/review/SKILL.md+++ b/review/SKILL.md@@ -419,8 +419,11 @@ Before reviewing code quality, check: **did they build what was requested — nosetopt +o nomatch 2>/dev/null || true # zsh compatBRANCH=$(git branch --show-current 2>/dev/null | tr '/' '-')REPO=$(basename "$(git rev-parse --show-toplevel 2>/dev/null)")-# Search common plan file locations-for PLAN_DIR in "$HOME/.claude/plans" "$HOME/.codex/plans" ".gstack/plans"; do+# Compute project slug for ~/.gstack/projects/ lookup+_PLAN_SLUG=$(git remote get-url origin 2>/dev/null | sed 's|.*[:/]\([^/]*/[^/]*\)\.git$|\1|;s|.*[:/]\([^/]*/[^/]*\)$|\1|' | tr '/' '-' | tr -cd 'a-zA-Z0-9._-') || true+_PLAN_SLUG="${_PLAN_SLUG:-$(basename "$PWD" | tr -cd 'a-zA-Z0-9._-')}"+# Search common plan file locations (project designs first, then personal/local)+for PLAN_DIR in "$HOME/.gstack/projects/$_PLAN_SLUG" "$HOME/.claude/plans" "$HOME/.codex/plans" ".gstack/plans"; do[ -d "$PLAN_DIR" ] || continuePLAN=$(ls -t "$PLAN_DIR"/*.md 2>/dev/null | xargs grep -l "$BRANCH" 2>/dev/null | head -1)[ -z "$PLAN" ] && PLAN=$(ls -t "$PLAN_DIR"/*.md 2>/dev/null | xargs grep -l "$REPO" 2>/dev/null | head -1)diff --git a/scripts/gen-skill-docs.ts b/scripts/gen-skill-docs.tsindex 25733bd3f..a3584bc40 100644--- a/scripts/gen-skill-docs.ts+++ b/scripts/gen-skill-docs.ts@@ -209,7 +209,7 @@ function extractHookSafetyProse(tmplContent: string): string | null {const GENERATED_HEADER = `<!-- AUTO-GENERATED from {{SOURCE}} — do not edit directly -->\n<!-- Regenerate: bun run gen:skill-docs -->\n`;-function processTemplate(tmplPath: string, host: Host = 'claude'): { outputPath: string; content: string } {+function processTemplate(tmplPath: string, host: Host = 'claude'): { outputPath: string; content: string; symlinkLoop?: boolean } {const tmplContent = fs.readFileSync(tmplPath, 'utf-8');const relTmplPath = path.relative(ROOT, tmplPath);let outputPath = tmplPath.replace(/\.tmpl$/, '');@@ -220,11 +220,27 @@ function processTemplate(tmplPath: string, host: Host = 'claude'): { outputPath:let outputDir: string | null = null;// For codex host, route output to .agents/skills/{codexSkillName}/SKILL.md+ let symlinkLoop = false;if (host === 'codex') {const codexName = codexSkillName(skillDir === '.' ? '' : skillDir);outputDir = path.join(ROOT, '.agents', 'skills', codexName);fs.mkdirSync(outputDir, { recursive: true });outputPath = path.join(outputDir, 'SKILL.md');++ // Guard against symlink loops: if .agents/skills/gstack → repo root,+ // writing to .agents/skills/gstack/SKILL.md would overwrite the Claude version.+ // Skip the write entirely for this skill — the codex content is still generated+ // for token budget tracking.+ const claudePath = tmplPath.replace(/\.tmpl$/, '');+ try {+ const resolvedClaude = fs.realpathSync(claudePath);+ const resolvedCodex = fs.realpathSync(path.dirname(outputPath)) + '/' + path.basename(outputPath);+ if (resolvedClaude === resolvedCodex) {+ symlinkLoop = true;+ }+ } catch {+ // realpathSync fails if file doesn't exist yet — that's fine, no symlink loop+ }}// Extract skill name from frontmatter for TemplateContext@@ -276,7 +292,7 @@ function processTemplate(tmplPath: string, host: Host = 'claude'): { outputPath:content = content.replace(/\.claude\/skills\/review/g, '.agents/skills/gstack/review');content = content.replace(/\.claude\/skills/g, '.agents/skills');- if (outputDir) {+ if (outputDir && !symlinkLoop) {const codexName = codexSkillName(skillDir === '.' ? '' : skillDir);const agentsDir = path.join(outputDir, 'agents');fs.mkdirSync(agentsDir, { recursive: true });@@ -296,7 +312,7 @@ function processTemplate(tmplPath: string, host: Host = 'claude'): { outputPath:content = header + content;}- return { outputPath, content };+ return { outputPath, content, symlinkLoop };}// ─── Main ───────────────────────────────────────────────────@@ -315,10 +331,12 @@ for (const tmplPath of findTemplates()) {if (dir === 'codex') continue;}- const { outputPath, content } = processTemplate(tmplPath, HOST);+ const { outputPath, content, symlinkLoop } = processTemplate(tmplPath, HOST);const relOutput = path.relative(ROOT, outputPath);- if (DRY_RUN) {+ if (symlinkLoop) {+ console.log(`SKIPPED (symlink loop): ${relOutput}`);+ } else if (DRY_RUN) {const existing = fs.existsSync(outputPath) ? fs.readFileSync(outputPath, 'utf-8') : '';if (existing !== content) {console.log(`STALE: ${relOutput}`);diff --git a/scripts/resolvers/review.ts b/scripts/resolvers/review.tsindex 393aaed22..02fd77659 100644--- a/scripts/resolvers/review.ts+++ b/scripts/resolvers/review.ts@@ -666,8 +666,11 @@ function generatePlanFileDiscovery(): string {setopt +o nomatch 2>/dev/null || true # zsh compatBRANCH=$(git branch --show-current 2>/dev/null | tr '/' '-')REPO=$(basename "$(git rev-parse --show-toplevel 2>/dev/null)")-# Search common plan file locations-for PLAN_DIR in "$HOME/.claude/plans" "$HOME/.codex/plans" ".gstack/plans"; do+# Compute project slug for ~/.gstack/projects/ lookup+_PLAN_SLUG=$(git remote get-url origin 2>/dev/null | sed 's|.*[:/]\\([^/]*/[^/]*\\)\\.git$|\\1|;s|.*[:/]\\([^/]*/[^/]*\\)$|\\1|' | tr '/' '-' | tr -cd 'a-zA-Z0-9._-') || true+_PLAN_SLUG="\${_PLAN_SLUG:-$(basename "$PWD" | tr -cd 'a-zA-Z0-9._-')}"+# Search common plan file locations (project designs first, then personal/local)+for PLAN_DIR in "$HOME/.gstack/projects/$_PLAN_SLUG" "$HOME/.claude/plans" "$HOME/.codex/plans" ".gstack/plans"; do[ -d "$PLAN_DIR" ] || continuePLAN=$(ls -t "$PLAN_DIR"/*.md 2>/dev/null | xargs grep -l "$BRANCH" 2>/dev/null | head -1)[ -z "$PLAN" ] && PLAN=$(ls -t "$PLAN_DIR"/*.md 2>/dev/null | xargs grep -l "$REPO" 2>/dev/null | head -1)diff --git a/setup b/setupindex e624ecf82..e66a6df0f 100755--- a/setup+++ b/setup@@ -62,8 +62,8 @@ if [ "$SKILL_PREFIX_FLAG" -eq 0 ]; thenecho " 2) Namespaced: /gstack-qa, /gstack-ship, /gstack-review"echo " Use this if you run other skill packs alongside gstack to avoid conflicts."echo ""- printf "Choice [1/2] (default: 1): "- read -r _prefix_choice </dev/tty 2>/dev/null || _prefix_choice=""+ printf "Choice [1/2] (default: 1, auto-selects in 10s): "+ read -t 10 -r _prefix_choice </dev/tty 2>/dev/null || _prefix_choice=""case "$_prefix_choice" in2) SKILL_PREFIX=1 ;;*) SKILL_PREFIX=0 ;;diff --git a/ship/SKILL.md b/ship/SKILL.mdindex 3676510a6..de2743f83 100644--- a/ship/SKILL.md+++ b/ship/SKILL.md@@ -1151,8 +1151,11 @@ Repo: {owner/repo}setopt +o nomatch 2>/dev/null || true # zsh compatBRANCH=$(git branch --show-current 2>/dev/null | tr '/' '-')REPO=$(basename "$(git rev-parse --show-toplevel 2>/dev/null)")-# Search common plan file locations-for PLAN_DIR in "$HOME/.claude/plans" "$HOME/.codex/plans" ".gstack/plans"; do+# Compute project slug for ~/.gstack/projects/ lookup+_PLAN_SLUG=$(git remote get-url origin 2>/dev/null | sed 's|.*[:/]\([^/]*/[^/]*\)\.git$|\1|;s|.*[:/]\([^/]*/[^/]*\)$|\1|' | tr '/' '-' | tr -cd 'a-zA-Z0-9._-') || true+_PLAN_SLUG="${_PLAN_SLUG:-$(basename "$PWD" | tr -cd 'a-zA-Z0-9._-')}"+# Search common plan file locations (project designs first, then personal/local)+for PLAN_DIR in "$HOME/.gstack/projects/$_PLAN_SLUG" "$HOME/.claude/plans" "$HOME/.codex/plans" ".gstack/plans"; do[ -d "$PLAN_DIR" ] || continuePLAN=$(ls -t "$PLAN_DIR"/*.md 2>/dev/null | xargs grep -l "$BRANCH" 2>/dev/null | head -1)[ -z "$PLAN" ] && PLAN=$(ls -t "$PLAN_DIR"/*.md 2>/dev/null | xargs grep -l "$REPO" 2>/dev/null | head -1)diff --git a/test/gen-skill-docs.test.ts b/test/gen-skill-docs.test.tsindex 3091429fc..3bbc1869d 100644--- a/test/gen-skill-docs.test.ts+++ b/test/gen-skill-docs.test.ts@@ -1276,16 +1276,27 @@ describe('Codex generation (--host codex)', () => {});// Dynamic discovery of expected Codex skills: all templates except /codex+ // Also excludes skills where .agents/skills/{name} is a symlink back to the repo root+ // (vendored dev mode — gen-skill-docs skips these to avoid overwriting Claude SKILL.md)const CODEX_SKILLS = (() => {const skills: Array<{ dir: string; codexName: string }> = [];+ const isSymlinkLoop = (codexName: string): boolean => {+ const agentSkillDir = path.join(ROOT, '.agents', 'skills', codexName);+ try {+ return fs.realpathSync(agentSkillDir) === fs.realpathSync(ROOT);+ } catch { return false; }+ };if (fs.existsSync(path.join(ROOT, 'SKILL.md.tmpl'))) {- skills.push({ dir: '.', codexName: 'gstack' });+ if (!isSymlinkLoop('gstack')) {+ skills.push({ dir: '.', codexName: 'gstack' });+ }}for (const entry of fs.readdirSync(ROOT, { withFileTypes: true })) {if (!entry.isDirectory() || entry.name.startsWith('.') || entry.name === 'node_modules') continue;if (entry.name === 'codex') continue; // /codex is excluded from Codex outputif (!fs.existsSync(path.join(ROOT, entry.name, 'SKILL.md.tmpl'))) continue;const codexName = entry.name.startsWith('gstack-') ? entry.name : `gstack-${entry.name}`;+ if (isSymlinkLoop(codexName)) continue;skills.push({ dir: entry.name, codexName });}return skills;