@runchr/gstack-antigravity 0.1.0 → 0.1.2

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.

Potentially problematic release.


This version of @runchr/gstack-antigravity might be problematic. Click here for more details.

Files changed (231) hide show
  1. package/.agents/skills/gstack/.agents/skills/gstack/SKILL.md +651 -0
  2. package/.agents/skills/gstack/.agents/skills/gstack-autoplan/SKILL.md +678 -0
  3. package/.agents/skills/gstack/.agents/skills/gstack-benchmark/SKILL.md +482 -0
  4. package/.agents/skills/gstack/.agents/skills/gstack-browse/SKILL.md +511 -0
  5. package/.agents/skills/gstack/.agents/skills/gstack-canary/SKILL.md +486 -0
  6. package/.agents/skills/gstack/.agents/skills/gstack-careful/SKILL.md +50 -0
  7. package/.agents/skills/gstack/.agents/skills/gstack-cso/SKILL.md +607 -0
  8. package/.agents/skills/gstack/.agents/skills/gstack-design-consultation/SKILL.md +615 -0
  9. package/.agents/skills/gstack/.agents/skills/gstack-design-review/SKILL.md +988 -0
  10. package/.agents/skills/gstack/.agents/skills/gstack-document-release/SKILL.md +604 -0
  11. package/.agents/skills/gstack/.agents/skills/gstack-freeze/SKILL.md +67 -0
  12. package/.agents/skills/gstack/.agents/skills/gstack-guard/SKILL.md +62 -0
  13. package/.agents/skills/gstack/.agents/skills/gstack-investigate/SKILL.md +415 -0
  14. package/.agents/skills/gstack/.agents/skills/gstack-land-and-deploy/SKILL.md +873 -0
  15. package/.agents/skills/gstack/.agents/skills/gstack-office-hours/SKILL.md +986 -0
  16. package/.agents/skills/gstack/.agents/skills/gstack-plan-ceo-review/SKILL.md +1268 -0
  17. package/.agents/skills/gstack/.agents/skills/gstack-plan-design-review/SKILL.md +668 -0
  18. package/.agents/skills/gstack/.agents/skills/gstack-plan-eng-review/SKILL.md +826 -0
  19. package/.agents/skills/gstack/.agents/skills/gstack-qa/SKILL.md +1006 -0
  20. package/.agents/skills/gstack/.agents/skills/gstack-qa-only/SKILL.md +626 -0
  21. package/.agents/skills/gstack/.agents/skills/gstack-retro/SKILL.md +1065 -0
  22. package/.agents/skills/gstack/.agents/skills/gstack-review/SKILL.md +704 -0
  23. package/.agents/skills/gstack/.agents/skills/gstack-setup-browser-cookies/SKILL.md +325 -0
  24. package/.agents/skills/gstack/.agents/skills/gstack-setup-deploy/SKILL.md +450 -0
  25. package/.agents/skills/gstack/.agents/skills/gstack-ship/SKILL.md +1312 -0
  26. package/.agents/skills/gstack/.agents/skills/gstack-unfreeze/SKILL.md +36 -0
  27. package/.agents/skills/gstack/.agents/skills/gstack-upgrade/SKILL.md +220 -0
  28. package/.agents/skills/gstack/.env.example +5 -0
  29. package/.agents/skills/gstack/.github/workflows/skill-docs.yml +17 -0
  30. package/.agents/skills/gstack/AGENTS.md +49 -0
  31. package/.agents/skills/gstack/ARCHITECTURE.md +359 -0
  32. package/.agents/skills/gstack/BROWSER.md +271 -0
  33. package/.agents/skills/gstack/CHANGELOG.md +800 -0
  34. package/.agents/skills/gstack/CLAUDE.md +284 -0
  35. package/.agents/skills/gstack/CONTRIBUTING.md +370 -0
  36. package/.agents/skills/gstack/ETHOS.md +129 -0
  37. package/.agents/skills/gstack/LICENSE +21 -0
  38. package/.agents/skills/gstack/README.md +228 -0
  39. package/.agents/skills/gstack/SKILL.md +657 -0
  40. package/.agents/skills/gstack/SKILL.md.tmpl +281 -0
  41. package/.agents/skills/gstack/TODOS.md +564 -0
  42. package/.agents/skills/gstack/VERSION +1 -0
  43. package/.agents/skills/gstack/autoplan/SKILL.md +689 -0
  44. package/.agents/skills/gstack/autoplan/SKILL.md.tmpl +416 -0
  45. package/.agents/skills/gstack/benchmark/SKILL.md +489 -0
  46. package/.agents/skills/gstack/benchmark/SKILL.md.tmpl +233 -0
  47. package/.agents/skills/gstack/bin/dev-setup +68 -0
  48. package/.agents/skills/gstack/bin/dev-teardown +56 -0
  49. package/.agents/skills/gstack/bin/gstack-analytics +191 -0
  50. package/.agents/skills/gstack/bin/gstack-community-dashboard +113 -0
  51. package/.agents/skills/gstack/bin/gstack-config +38 -0
  52. package/.agents/skills/gstack/bin/gstack-diff-scope +71 -0
  53. package/.agents/skills/gstack/bin/gstack-global-discover.ts +591 -0
  54. package/.agents/skills/gstack/bin/gstack-repo-mode +93 -0
  55. package/.agents/skills/gstack/bin/gstack-review-log +9 -0
  56. package/.agents/skills/gstack/bin/gstack-review-read +12 -0
  57. package/.agents/skills/gstack/bin/gstack-slug +15 -0
  58. package/.agents/skills/gstack/bin/gstack-telemetry-log +158 -0
  59. package/.agents/skills/gstack/bin/gstack-telemetry-sync +127 -0
  60. package/.agents/skills/gstack/bin/gstack-update-check +196 -0
  61. package/.agents/skills/gstack/browse/SKILL.md +517 -0
  62. package/.agents/skills/gstack/browse/SKILL.md.tmpl +141 -0
  63. package/.agents/skills/gstack/browse/bin/find-browse +21 -0
  64. package/.agents/skills/gstack/browse/bin/remote-slug +14 -0
  65. package/.agents/skills/gstack/browse/scripts/build-node-server.sh +48 -0
  66. package/.agents/skills/gstack/browse/src/browser-manager.ts +634 -0
  67. package/.agents/skills/gstack/browse/src/buffers.ts +137 -0
  68. package/.agents/skills/gstack/browse/src/bun-polyfill.cjs +109 -0
  69. package/.agents/skills/gstack/browse/src/cli.ts +420 -0
  70. package/.agents/skills/gstack/browse/src/commands.ts +111 -0
  71. package/.agents/skills/gstack/browse/src/config.ts +150 -0
  72. package/.agents/skills/gstack/browse/src/cookie-import-browser.ts +417 -0
  73. package/.agents/skills/gstack/browse/src/cookie-picker-routes.ts +207 -0
  74. package/.agents/skills/gstack/browse/src/cookie-picker-ui.ts +541 -0
  75. package/.agents/skills/gstack/browse/src/find-browse.ts +61 -0
  76. package/.agents/skills/gstack/browse/src/meta-commands.ts +269 -0
  77. package/.agents/skills/gstack/browse/src/platform.ts +17 -0
  78. package/.agents/skills/gstack/browse/src/read-commands.ts +335 -0
  79. package/.agents/skills/gstack/browse/src/server.ts +369 -0
  80. package/.agents/skills/gstack/browse/src/snapshot.ts +398 -0
  81. package/.agents/skills/gstack/browse/src/url-validation.ts +91 -0
  82. package/.agents/skills/gstack/browse/src/write-commands.ts +352 -0
  83. package/.agents/skills/gstack/browse/test/bun-polyfill.test.ts +72 -0
  84. package/.agents/skills/gstack/browse/test/commands.test.ts +1836 -0
  85. package/.agents/skills/gstack/browse/test/config.test.ts +250 -0
  86. package/.agents/skills/gstack/browse/test/cookie-import-browser.test.ts +397 -0
  87. package/.agents/skills/gstack/browse/test/cookie-picker-routes.test.ts +205 -0
  88. package/.agents/skills/gstack/browse/test/find-browse.test.ts +50 -0
  89. package/.agents/skills/gstack/browse/test/fixtures/basic.html +33 -0
  90. package/.agents/skills/gstack/browse/test/fixtures/cursor-interactive.html +22 -0
  91. package/.agents/skills/gstack/browse/test/fixtures/dialog.html +15 -0
  92. package/.agents/skills/gstack/browse/test/fixtures/empty.html +2 -0
  93. package/.agents/skills/gstack/browse/test/fixtures/forms.html +55 -0
  94. package/.agents/skills/gstack/browse/test/fixtures/qa-eval-checkout.html +108 -0
  95. package/.agents/skills/gstack/browse/test/fixtures/qa-eval-spa.html +98 -0
  96. package/.agents/skills/gstack/browse/test/fixtures/qa-eval.html +51 -0
  97. package/.agents/skills/gstack/browse/test/fixtures/responsive.html +49 -0
  98. package/.agents/skills/gstack/browse/test/fixtures/snapshot.html +55 -0
  99. package/.agents/skills/gstack/browse/test/fixtures/spa.html +24 -0
  100. package/.agents/skills/gstack/browse/test/fixtures/states.html +17 -0
  101. package/.agents/skills/gstack/browse/test/fixtures/upload.html +25 -0
  102. package/.agents/skills/gstack/browse/test/gstack-config.test.ts +125 -0
  103. package/.agents/skills/gstack/browse/test/gstack-update-check.test.ts +467 -0
  104. package/.agents/skills/gstack/browse/test/handoff.test.ts +235 -0
  105. package/.agents/skills/gstack/browse/test/path-validation.test.ts +63 -0
  106. package/.agents/skills/gstack/browse/test/platform.test.ts +37 -0
  107. package/.agents/skills/gstack/browse/test/snapshot.test.ts +467 -0
  108. package/.agents/skills/gstack/browse/test/test-server.ts +57 -0
  109. package/.agents/skills/gstack/browse/test/url-validation.test.ts +72 -0
  110. package/.agents/skills/gstack/canary/SKILL.md +493 -0
  111. package/.agents/skills/gstack/canary/SKILL.md.tmpl +220 -0
  112. package/.agents/skills/gstack/careful/SKILL.md +59 -0
  113. package/.agents/skills/gstack/careful/SKILL.md.tmpl +57 -0
  114. package/.agents/skills/gstack/careful/bin/check-careful.sh +112 -0
  115. package/.agents/skills/gstack/codex/SKILL.md +677 -0
  116. package/.agents/skills/gstack/codex/SKILL.md.tmpl +356 -0
  117. package/.agents/skills/gstack/conductor.json +6 -0
  118. package/.agents/skills/gstack/cso/SKILL.md +615 -0
  119. package/.agents/skills/gstack/cso/SKILL.md.tmpl +376 -0
  120. package/.agents/skills/gstack/design-consultation/SKILL.md +625 -0
  121. package/.agents/skills/gstack/design-consultation/SKILL.md.tmpl +369 -0
  122. package/.agents/skills/gstack/design-review/SKILL.md +998 -0
  123. package/.agents/skills/gstack/design-review/SKILL.md.tmpl +262 -0
  124. package/.agents/skills/gstack/docs/images/github-2013.png +0 -0
  125. package/.agents/skills/gstack/docs/images/github-2026.png +0 -0
  126. package/.agents/skills/gstack/docs/skills.md +877 -0
  127. package/.agents/skills/gstack/document-release/SKILL.md +613 -0
  128. package/.agents/skills/gstack/document-release/SKILL.md.tmpl +357 -0
  129. package/.agents/skills/gstack/freeze/SKILL.md +82 -0
  130. package/.agents/skills/gstack/freeze/SKILL.md.tmpl +80 -0
  131. package/.agents/skills/gstack/freeze/bin/check-freeze.sh +68 -0
  132. package/.agents/skills/gstack/gstack-upgrade/SKILL.md +226 -0
  133. package/.agents/skills/gstack/gstack-upgrade/SKILL.md.tmpl +224 -0
  134. package/.agents/skills/gstack/guard/SKILL.md +82 -0
  135. package/.agents/skills/gstack/guard/SKILL.md.tmpl +80 -0
  136. package/.agents/skills/gstack/investigate/SKILL.md +435 -0
  137. package/.agents/skills/gstack/investigate/SKILL.md.tmpl +196 -0
  138. package/.agents/skills/gstack/land-and-deploy/SKILL.md +880 -0
  139. package/.agents/skills/gstack/land-and-deploy/SKILL.md.tmpl +575 -0
  140. package/.agents/skills/gstack/office-hours/SKILL.md +996 -0
  141. package/.agents/skills/gstack/office-hours/SKILL.md.tmpl +624 -0
  142. package/.agents/skills/gstack/package.json +55 -0
  143. package/.agents/skills/gstack/plan-ceo-review/SKILL.md +1277 -0
  144. package/.agents/skills/gstack/plan-ceo-review/SKILL.md.tmpl +838 -0
  145. package/.agents/skills/gstack/plan-design-review/SKILL.md +676 -0
  146. package/.agents/skills/gstack/plan-design-review/SKILL.md.tmpl +314 -0
  147. package/.agents/skills/gstack/plan-eng-review/SKILL.md +836 -0
  148. package/.agents/skills/gstack/plan-eng-review/SKILL.md.tmpl +279 -0
  149. package/.agents/skills/gstack/qa/SKILL.md +1016 -0
  150. package/.agents/skills/gstack/qa/SKILL.md.tmpl +316 -0
  151. package/.agents/skills/gstack/qa/references/issue-taxonomy.md +85 -0
  152. package/.agents/skills/gstack/qa/templates/qa-report-template.md +126 -0
  153. package/.agents/skills/gstack/qa-only/SKILL.md +633 -0
  154. package/.agents/skills/gstack/qa-only/SKILL.md.tmpl +101 -0
  155. package/.agents/skills/gstack/retro/SKILL.md +1072 -0
  156. package/.agents/skills/gstack/retro/SKILL.md.tmpl +833 -0
  157. package/.agents/skills/gstack/review/SKILL.md +849 -0
  158. package/.agents/skills/gstack/review/SKILL.md.tmpl +259 -0
  159. package/.agents/skills/gstack/review/TODOS-format.md +62 -0
  160. package/.agents/skills/gstack/review/checklist.md +190 -0
  161. package/.agents/skills/gstack/review/design-checklist.md +132 -0
  162. package/.agents/skills/gstack/review/greptile-triage.md +220 -0
  163. package/.agents/skills/gstack/scripts/analytics.ts +190 -0
  164. package/.agents/skills/gstack/scripts/dev-skill.ts +82 -0
  165. package/.agents/skills/gstack/scripts/eval-compare.ts +96 -0
  166. package/.agents/skills/gstack/scripts/eval-list.ts +116 -0
  167. package/.agents/skills/gstack/scripts/eval-select.ts +86 -0
  168. package/.agents/skills/gstack/scripts/eval-summary.ts +187 -0
  169. package/.agents/skills/gstack/scripts/eval-watch.ts +172 -0
  170. package/.agents/skills/gstack/scripts/gen-skill-docs.ts +2414 -0
  171. package/.agents/skills/gstack/scripts/skill-check.ts +167 -0
  172. package/.agents/skills/gstack/setup +269 -0
  173. package/.agents/skills/gstack/setup-browser-cookies/SKILL.md +330 -0
  174. package/.agents/skills/gstack/setup-browser-cookies/SKILL.md.tmpl +74 -0
  175. package/.agents/skills/gstack/setup-deploy/SKILL.md +459 -0
  176. package/.agents/skills/gstack/setup-deploy/SKILL.md.tmpl +220 -0
  177. package/.agents/skills/gstack/ship/SKILL.md +1457 -0
  178. package/.agents/skills/gstack/ship/SKILL.md.tmpl +528 -0
  179. package/.agents/skills/gstack/supabase/config.sh +10 -0
  180. package/.agents/skills/gstack/supabase/functions/community-pulse/index.ts +59 -0
  181. package/.agents/skills/gstack/supabase/functions/telemetry-ingest/index.ts +135 -0
  182. package/.agents/skills/gstack/supabase/functions/update-check/index.ts +37 -0
  183. package/.agents/skills/gstack/supabase/migrations/001_telemetry.sql +89 -0
  184. package/.agents/skills/gstack/test/analytics.test.ts +277 -0
  185. package/.agents/skills/gstack/test/codex-e2e.test.ts +197 -0
  186. package/.agents/skills/gstack/test/fixtures/coverage-audit-fixture.ts +76 -0
  187. package/.agents/skills/gstack/test/fixtures/eval-baselines.json +7 -0
  188. package/.agents/skills/gstack/test/fixtures/qa-eval-checkout-ground-truth.json +43 -0
  189. package/.agents/skills/gstack/test/fixtures/qa-eval-ground-truth.json +43 -0
  190. package/.agents/skills/gstack/test/fixtures/qa-eval-spa-ground-truth.json +43 -0
  191. package/.agents/skills/gstack/test/fixtures/review-eval-design-slop.css +86 -0
  192. package/.agents/skills/gstack/test/fixtures/review-eval-design-slop.html +41 -0
  193. package/.agents/skills/gstack/test/fixtures/review-eval-enum-diff.rb +30 -0
  194. package/.agents/skills/gstack/test/fixtures/review-eval-enum.rb +27 -0
  195. package/.agents/skills/gstack/test/fixtures/review-eval-vuln.rb +14 -0
  196. package/.agents/skills/gstack/test/gemini-e2e.test.ts +173 -0
  197. package/.agents/skills/gstack/test/gen-skill-docs.test.ts +1049 -0
  198. package/.agents/skills/gstack/test/global-discover.test.ts +187 -0
  199. package/.agents/skills/gstack/test/helpers/codex-session-runner.ts +282 -0
  200. package/.agents/skills/gstack/test/helpers/e2e-helpers.ts +239 -0
  201. package/.agents/skills/gstack/test/helpers/eval-store.test.ts +548 -0
  202. package/.agents/skills/gstack/test/helpers/eval-store.ts +689 -0
  203. package/.agents/skills/gstack/test/helpers/gemini-session-runner.test.ts +104 -0
  204. package/.agents/skills/gstack/test/helpers/gemini-session-runner.ts +201 -0
  205. package/.agents/skills/gstack/test/helpers/llm-judge.ts +130 -0
  206. package/.agents/skills/gstack/test/helpers/observability.test.ts +283 -0
  207. package/.agents/skills/gstack/test/helpers/session-runner.test.ts +96 -0
  208. package/.agents/skills/gstack/test/helpers/session-runner.ts +357 -0
  209. package/.agents/skills/gstack/test/helpers/skill-parser.ts +206 -0
  210. package/.agents/skills/gstack/test/helpers/touchfiles.ts +260 -0
  211. package/.agents/skills/gstack/test/hook-scripts.test.ts +373 -0
  212. package/.agents/skills/gstack/test/skill-e2e-browse.test.ts +293 -0
  213. package/.agents/skills/gstack/test/skill-e2e-deploy.test.ts +279 -0
  214. package/.agents/skills/gstack/test/skill-e2e-design.test.ts +614 -0
  215. package/.agents/skills/gstack/test/skill-e2e-plan.test.ts +538 -0
  216. package/.agents/skills/gstack/test/skill-e2e-qa-bugs.test.ts +194 -0
  217. package/.agents/skills/gstack/test/skill-e2e-qa-workflow.test.ts +412 -0
  218. package/.agents/skills/gstack/test/skill-e2e-review.test.ts +535 -0
  219. package/.agents/skills/gstack/test/skill-e2e-workflow.test.ts +586 -0
  220. package/.agents/skills/gstack/test/skill-e2e.test.ts +3325 -0
  221. package/.agents/skills/gstack/test/skill-llm-eval.test.ts +787 -0
  222. package/.agents/skills/gstack/test/skill-parser.test.ts +179 -0
  223. package/.agents/skills/gstack/test/skill-routing-e2e.test.ts +605 -0
  224. package/.agents/skills/gstack/test/skill-validation.test.ts +1520 -0
  225. package/.agents/skills/gstack/test/telemetry.test.ts +278 -0
  226. package/.agents/skills/gstack/test/touchfiles.test.ts +262 -0
  227. package/.agents/skills/gstack/unfreeze/SKILL.md +40 -0
  228. package/.agents/skills/gstack/unfreeze/SKILL.md.tmpl +38 -0
  229. package/README.md +12 -7
  230. package/README_KO.md +12 -6
  231. package/package.json +3 -2
@@ -0,0 +1,416 @@
1
+ ---
2
+ name: autoplan
3
+ version: 1.0.0
4
+ description: |
5
+ Auto-review pipeline — reads the full CEO, design, and eng review skills from disk
6
+ and runs them sequentially with auto-decisions using 6 decision principles. Surfaces
7
+ taste decisions (close approaches, borderline scope, codex disagreements) at a final
8
+ approval gate. One command, fully reviewed plan out.
9
+ Use when asked to "auto review", "autoplan", "run all reviews", "review this plan
10
+ automatically", or "make the decisions for me".
11
+ Proactively suggest when the user has a plan file and wants to run the full review
12
+ gauntlet without answering 15-30 intermediate questions.
13
+ benefits-from: [office-hours]
14
+ allowed-tools:
15
+ - Bash
16
+ - Read
17
+ - Write
18
+ - Edit
19
+ - Glob
20
+ - Grep
21
+ - WebSearch
22
+ - AskUserQuestion
23
+ ---
24
+
25
+ {{PREAMBLE}}
26
+
27
+ {{BASE_BRANCH_DETECT}}
28
+
29
+ {{BENEFITS_FROM}}
30
+
31
+ # /autoplan — Auto-Review Pipeline
32
+
33
+ One command. Rough plan in, fully reviewed plan out.
34
+
35
+ /autoplan reads the full CEO, design, and eng review skill files from disk and follows
36
+ them at full depth — same rigor, same sections, same methodology as running each skill
37
+ manually. The only difference: intermediate AskUserQuestion calls are auto-decided using
38
+ the 6 principles below. Taste decisions (where reasonable people could disagree) are
39
+ surfaced at a final approval gate.
40
+
41
+ ---
42
+
43
+ ## The 6 Decision Principles
44
+
45
+ These rules auto-answer every intermediate question:
46
+
47
+ 1. **Choose completeness** — Ship the whole thing. Pick the approach that covers more edge cases.
48
+ 2. **Boil lakes** — Fix everything in the blast radius (files modified by this plan + direct importers). Auto-approve expansions that are in blast radius AND < 1 day CC effort (< 5 files, no new infra).
49
+ 3. **Pragmatic** — If two options fix the same thing, pick the cleaner one. 5 seconds choosing, not 5 minutes.
50
+ 4. **DRY** — Duplicates existing functionality? Reject. Reuse what exists.
51
+ 5. **Explicit over clever** — 10-line obvious fix > 200-line abstraction. Pick what a new contributor reads in 30 seconds.
52
+ 6. **Bias toward action** — Merge > review cycles > stale deliberation. Flag concerns but don't block.
53
+
54
+ **Conflict resolution (context-dependent tiebreakers):**
55
+ - **CEO phase:** P1 (completeness) + P2 (boil lakes) dominate.
56
+ - **Eng phase:** P5 (explicit) + P3 (pragmatic) dominate.
57
+ - **Design phase:** P5 (explicit) + P1 (completeness) dominate.
58
+
59
+ ---
60
+
61
+ ## Decision Classification
62
+
63
+ Every auto-decision is classified:
64
+
65
+ **Mechanical** — one clearly right answer. Auto-decide silently.
66
+ Examples: run codex (always yes), run evals (always yes), reduce scope on a complete plan (always no).
67
+
68
+ **Taste** — reasonable people could disagree. Auto-decide with recommendation, but surface at the final gate. Three natural sources:
69
+ 1. **Close approaches** — top two are both viable with different tradeoffs.
70
+ 2. **Borderline scope** — in blast radius but 3-5 files, or ambiguous radius.
71
+ 3. **Codex disagreements** — codex recommends differently and has a valid point.
72
+
73
+ ---
74
+
75
+ ## What "Auto-Decide" Means
76
+
77
+ Auto-decide replaces the USER'S judgment with the 6 principles. It does NOT replace
78
+ the ANALYSIS. Every section in the loaded skill files must still be executed at the
79
+ same depth as the interactive version. The only thing that changes is who answers the
80
+ AskUserQuestion: you do, using the 6 principles, instead of the user.
81
+
82
+ **You MUST still:**
83
+ - READ the actual code, diffs, and files each section references
84
+ - PRODUCE every output the section requires (diagrams, tables, registries, artifacts)
85
+ - IDENTIFY every issue the section is designed to catch
86
+ - DECIDE each issue using the 6 principles (instead of asking the user)
87
+ - LOG each decision in the audit trail
88
+ - WRITE all required artifacts to disk
89
+
90
+ **You MUST NOT:**
91
+ - Compress a review section into a one-liner table row
92
+ - Write "no issues found" without showing what you examined
93
+ - Skip a section because "it doesn't apply" without stating what you checked and why
94
+ - Produce a summary instead of the required output (e.g., "architecture looks good"
95
+ instead of the ASCII dependency graph the section requires)
96
+
97
+ "No issues found" is a valid output for a section — but only after doing the analysis.
98
+ State what you examined and why nothing was flagged (1-2 sentences minimum).
99
+ "Skipped" is never valid for a non-skip-listed section.
100
+
101
+ ---
102
+
103
+ ## Phase 0: Intake + Restore Point
104
+
105
+ ### Step 1: Capture restore point
106
+
107
+ Before doing anything, save the plan file's current state to an external file:
108
+
109
+ ```bash
110
+ source <(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null) && mkdir -p ~/.gstack/projects/$SLUG
111
+ BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null | tr '/' '-')
112
+ DATETIME=$(date +%Y%m%d-%H%M%S)
113
+ echo "RESTORE_PATH=$HOME/.gstack/projects/$SLUG/${BRANCH}-autoplan-restore-${DATETIME}.md"
114
+ ```
115
+
116
+ Write the plan file's full contents to the restore path with this header:
117
+ ```
118
+ # /autoplan Restore Point
119
+ Captured: [timestamp] | Branch: [branch] | Commit: [short hash]
120
+
121
+ ## Re-run Instructions
122
+ 1. Copy "Original Plan State" below back to your plan file
123
+ 2. Invoke /autoplan
124
+
125
+ ## Original Plan State
126
+ [verbatim plan file contents]
127
+ ```
128
+
129
+ Then prepend a one-line HTML comment to the plan file:
130
+ `<!-- /autoplan restore point: [RESTORE_PATH] -->`
131
+
132
+ ### Step 2: Read context
133
+
134
+ - Read CLAUDE.md, TODOS.md, git log -30, git diff against the base branch --stat
135
+ - Discover design docs: `ls -t ~/.gstack/projects/$SLUG/*-design-*.md 2>/dev/null | head -1`
136
+ - Detect UI scope: grep the plan for view/rendering terms (component, screen, form,
137
+ button, modal, layout, dashboard, sidebar, nav, dialog). Require 2+ matches. Exclude
138
+ false positives ("page" alone, "UI" in acronyms).
139
+
140
+ ### Step 3: Load skill files from disk
141
+
142
+ Read each file using the Read tool:
143
+ - `~/.claude/skills/gstack/plan-ceo-review/SKILL.md`
144
+ - `~/.claude/skills/gstack/plan-design-review/SKILL.md` (only if UI scope detected)
145
+ - `~/.claude/skills/gstack/plan-eng-review/SKILL.md`
146
+
147
+ **Section skip list — when following a loaded skill file, SKIP these sections
148
+ (they are already handled by /autoplan):**
149
+ - Preamble (run first)
150
+ - AskUserQuestion Format
151
+ - Completeness Principle — Boil the Lake
152
+ - Search Before Building
153
+ - Contributor Mode
154
+ - Completion Status Protocol
155
+ - Telemetry (run last)
156
+ - Step 0: Detect base branch
157
+ - Review Readiness Dashboard
158
+ - Plan File Review Report
159
+ - Prerequisite Skill Offer (BENEFITS_FROM)
160
+
161
+ Follow ONLY the review-specific methodology, sections, and required outputs.
162
+
163
+ Output: "Here's what I'm working with: [plan summary]. UI scope: [yes/no].
164
+ Loaded review skills from disk. Starting full review pipeline with auto-decisions."
165
+
166
+ ---
167
+
168
+ ## Phase 1: CEO Review (Strategy & Scope)
169
+
170
+ Follow plan-ceo-review/SKILL.md — all sections, full depth.
171
+ Override: every AskUserQuestion → auto-decide using the 6 principles.
172
+
173
+ **Override rules:**
174
+ - Mode selection: SELECTIVE EXPANSION
175
+ - Premises: accept reasonable ones (P6), challenge only clearly wrong ones
176
+ - **GATE: Present premises to user for confirmation** — this is the ONE AskUserQuestion
177
+ that is NOT auto-decided. Premises require human judgment.
178
+ - Alternatives: pick highest completeness (P1). If tied, pick simplest (P5).
179
+ If top 2 are close → mark TASTE DECISION.
180
+ - Scope expansion: in blast radius + <1d CC → approve (P2). Outside → defer to TODOS.md (P3).
181
+ Duplicates → reject (P4). Borderline (3-5 files) → mark TASTE DECISION.
182
+ - All 10 review sections: run fully, auto-decide each issue, log every decision.
183
+
184
+ **Required execution checklist (CEO):**
185
+
186
+ Step 0 (0A-0F) — run each sub-step and produce:
187
+ - 0A: Premise challenge with specific premises named and evaluated
188
+ - 0B: Existing code leverage map (sub-problems → existing code)
189
+ - 0C: Dream state diagram (CURRENT → THIS PLAN → 12-MONTH IDEAL)
190
+ - 0C-bis: Implementation alternatives table (2-3 approaches with effort/risk/pros/cons)
191
+ - 0D: Mode-specific analysis with scope decisions logged
192
+ - 0E: Temporal interrogation (HOUR 1 → HOUR 6+)
193
+ - 0F: Mode selection confirmation
194
+
195
+ Sections 1-10 — for EACH section, run the evaluation criteria from the loaded skill file:
196
+ - Sections WITH findings: full analysis, auto-decide each issue, log to audit trail
197
+ - Sections with NO findings: 1-2 sentences stating what was examined and why nothing
198
+ was flagged. NEVER compress a section to just its name in a table row.
199
+ - Section 11 (Design): run only if UI scope was detected in Phase 0
200
+
201
+ **Mandatory outputs from Phase 1:**
202
+ - "NOT in scope" section with deferred items and rationale
203
+ - "What already exists" section mapping sub-problems to existing code
204
+ - Error & Rescue Registry table (from Section 2)
205
+ - Failure Modes Registry table (from review sections)
206
+ - Dream state delta (where this plan leaves us vs 12-month ideal)
207
+ - Completion Summary (the full summary table from the CEO skill)
208
+
209
+ ---
210
+
211
+ ## Phase 2: Design Review (conditional — skip if no UI scope)
212
+
213
+ Follow plan-design-review/SKILL.md — all 7 dimensions, full depth.
214
+ Override: every AskUserQuestion → auto-decide using the 6 principles.
215
+
216
+ **Override rules:**
217
+ - Focus areas: all relevant dimensions (P1)
218
+ - Structural issues (missing states, broken hierarchy): auto-fix (P5)
219
+ - Aesthetic/taste issues: mark TASTE DECISION
220
+ - Design system alignment: auto-fix if DESIGN.md exists and fix is obvious
221
+
222
+ ---
223
+
224
+ ## Phase 3: Eng Review + Codex
225
+
226
+ Follow plan-eng-review/SKILL.md — all sections, full depth.
227
+ Override: every AskUserQuestion → auto-decide using the 6 principles.
228
+
229
+ **Override rules:**
230
+ - Scope challenge: never reduce (P2)
231
+ - Codex review: always run if available (P6)
232
+ Command: `codex exec "Review this plan for architectural issues, missing edge cases, and hidden complexity. Be adversarial. File: <plan_path>" -s read-only --enable web_search_cached`
233
+ Timeout: 10 minutes, then proceed with "Codex timed out — single-reviewer mode"
234
+ - Architecture choices: explicit over clever (P5). If codex disagrees with valid reason → TASTE DECISION.
235
+ - Evals: always include all relevant suites (P1)
236
+ - Test plan: generate artifact at `~/.gstack/projects/$SLUG/{user}-{branch}-test-plan-{datetime}.md`
237
+ - TODOS.md: collect all deferred scope expansions from Phase 1, auto-write
238
+
239
+ **Required execution checklist (Eng):**
240
+
241
+ 1. Step 0 (Scope Challenge): Read actual code referenced by the plan. Map each
242
+ sub-problem to existing code. Run the complexity check. Produce concrete findings.
243
+
244
+ 2. Step 0.5 (Codex): Run if available. Present full output under CODEX SAYS header.
245
+
246
+ 3. Section 1 (Architecture): Produce ASCII dependency graph showing new components
247
+ and their relationships to existing ones. Evaluate coupling, scaling, security.
248
+
249
+ 4. Section 2 (Code Quality): Identify DRY violations, naming issues, complexity.
250
+ Reference specific files and patterns. Auto-decide each finding.
251
+
252
+ 5. **Section 3 (Test Review) — NEVER SKIP OR COMPRESS.**
253
+ This section requires reading actual code, not summarizing from memory.
254
+ - Read the diff or the plan's affected files
255
+ - Build the test diagram: list every NEW UX flow, data flow, codepath, and branch
256
+ - For EACH item in the diagram: what type of test covers it? Does one exist? Gaps?
257
+ - For LLM/prompt changes: which eval suites must run?
258
+ - Auto-deciding test gaps means: identify the gap → decide whether to add a test
259
+ or defer (with rationale and principle) → log the decision. It does NOT mean
260
+ skipping the analysis.
261
+ - Write the test plan artifact to disk
262
+
263
+ 6. Section 4 (Performance): Evaluate N+1 queries, memory, caching, slow paths.
264
+
265
+ **Mandatory outputs from Phase 3:**
266
+ - "NOT in scope" section
267
+ - "What already exists" section
268
+ - Architecture ASCII diagram (Section 1)
269
+ - Test diagram mapping codepaths to coverage (Section 3)
270
+ - Test plan artifact written to disk (Section 3)
271
+ - Failure modes registry with critical gap flags
272
+ - Completion Summary (the full summary from the Eng skill)
273
+ - TODOS.md updates (collected from all phases)
274
+
275
+ ---
276
+
277
+ ## Decision Audit Trail
278
+
279
+ After each auto-decision, append a row to the plan file using Edit:
280
+
281
+ ```markdown
282
+ <!-- AUTONOMOUS DECISION LOG -->
283
+ ## Decision Audit Trail
284
+
285
+ | # | Phase | Decision | Principle | Rationale | Rejected |
286
+ |---|-------|----------|-----------|-----------|----------|
287
+ ```
288
+
289
+ Write one row per decision incrementally (via Edit). This keeps the audit on disk,
290
+ not accumulated in conversation context.
291
+
292
+ ---
293
+
294
+ ## Pre-Gate Verification
295
+
296
+ Before presenting the Final Approval Gate, verify that required outputs were actually
297
+ produced. Check the plan file and conversation for each item.
298
+
299
+ **Phase 1 (CEO) outputs:**
300
+ - [ ] Premise challenge with specific premises named (not just "premises accepted")
301
+ - [ ] All applicable review sections have findings OR explicit "examined X, nothing flagged"
302
+ - [ ] Error & Rescue Registry table produced (or noted N/A with reason)
303
+ - [ ] Failure Modes Registry table produced (or noted N/A with reason)
304
+ - [ ] "NOT in scope" section written
305
+ - [ ] "What already exists" section written
306
+ - [ ] Dream state delta written
307
+ - [ ] Completion Summary produced
308
+
309
+ **Phase 2 (Design) outputs — only if UI scope detected:**
310
+ - [ ] All 7 dimensions evaluated with scores
311
+ - [ ] Issues identified and auto-decided
312
+
313
+ **Phase 3 (Eng) outputs:**
314
+ - [ ] Scope challenge with actual code analysis (not just "scope is fine")
315
+ - [ ] Architecture ASCII diagram produced
316
+ - [ ] Test diagram mapping codepaths to test coverage
317
+ - [ ] Test plan artifact written to disk at ~/.gstack/projects/$SLUG/
318
+ - [ ] "NOT in scope" section written
319
+ - [ ] "What already exists" section written
320
+ - [ ] Failure modes registry with critical gap assessment
321
+ - [ ] Completion Summary produced
322
+
323
+ **Audit trail:**
324
+ - [ ] Decision Audit Trail has at least one row per auto-decision (not empty)
325
+
326
+ If ANY checkbox above is missing, go back and produce the missing output. Max 2
327
+ attempts — if still missing after retrying twice, proceed to the gate with a warning
328
+ noting which items are incomplete. Do not loop indefinitely.
329
+
330
+ ---
331
+
332
+ ## Phase 4: Final Approval Gate
333
+
334
+ **STOP here and present the final state to the user.**
335
+
336
+ Present as a message, then use AskUserQuestion:
337
+
338
+ ```
339
+ ## /autoplan Review Complete
340
+
341
+ ### Plan Summary
342
+ [1-3 sentence summary]
343
+
344
+ ### Decisions Made: [N] total ([M] auto-decided, [K] choices for you)
345
+
346
+ ### Your Choices (taste decisions)
347
+ [For each taste decision:]
348
+ **Choice [N]: [title]** (from [phase])
349
+ I recommend [X] — [principle]. But [Y] is also viable:
350
+ [1-sentence downstream impact if you pick Y]
351
+
352
+ ### Auto-Decided: [M] decisions [see Decision Audit Trail in plan file]
353
+
354
+ ### Review Scores
355
+ - CEO: [summary]
356
+ - Design: [summary or "skipped, no UI scope"]
357
+ - Eng: [summary]
358
+ - Codex: [summary or "unavailable"]
359
+
360
+ ### Deferred to TODOS.md
361
+ [Items auto-deferred with reasons]
362
+ ```
363
+
364
+ **Cognitive load management:**
365
+ - 0 taste decisions: skip "Your Choices" section
366
+ - 1-7 taste decisions: flat list
367
+ - 8+: group by phase. Add warning: "This plan had unusually high ambiguity ([N] taste decisions). Review carefully."
368
+
369
+ AskUserQuestion options:
370
+ - A) Approve as-is (accept all recommendations)
371
+ - B) Approve with overrides (specify which taste decisions to change)
372
+ - C) Interrogate (ask about any specific decision)
373
+ - D) Revise (the plan itself needs changes)
374
+ - E) Reject (start over)
375
+
376
+ **Option handling:**
377
+ - A: mark APPROVED, write review logs, suggest /ship
378
+ - B: ask which overrides, apply, re-present gate
379
+ - C: answer freeform, re-present gate
380
+ - D: make changes, re-run affected phases (scope→1B, design→2, test plan→3, arch→3). Max 3 cycles.
381
+ - E: start over
382
+
383
+ ---
384
+
385
+ ## Completion: Write Review Logs
386
+
387
+ On approval, write 3 separate review log entries so /ship's dashboard recognizes them:
388
+
389
+ ```bash
390
+ COMMIT=$(git rev-parse --short HEAD 2>/dev/null)
391
+ TIMESTAMP=$(date -u +%Y-%m-%dT%H:%M:%SZ)
392
+
393
+ ~/.claude/skills/gstack/bin/gstack-review-log '{"skill":"plan-ceo-review","timestamp":"'"$TIMESTAMP"'","status":"clean","unresolved":0,"critical_gaps":0,"mode":"SELECTIVE_EXPANSION","via":"autoplan","commit":"'"$COMMIT"'"}'
394
+
395
+ ~/.claude/skills/gstack/bin/gstack-review-log '{"skill":"plan-eng-review","timestamp":"'"$TIMESTAMP"'","status":"clean","unresolved":0,"critical_gaps":0,"issues_found":0,"mode":"FULL_REVIEW","via":"autoplan","commit":"'"$COMMIT"'"}'
396
+ ```
397
+
398
+ If Phase 2 ran (UI scope):
399
+ ```bash
400
+ ~/.claude/skills/gstack/bin/gstack-review-log '{"skill":"plan-design-review","timestamp":"'"$TIMESTAMP"'","status":"clean","unresolved":0,"via":"autoplan","commit":"'"$COMMIT"'"}'
401
+ ```
402
+
403
+ Replace field values with actual counts from the review.
404
+
405
+ Suggest next step: `/ship` when ready to create the PR.
406
+
407
+ ---
408
+
409
+ ## Important Rules
410
+
411
+ - **Never abort.** The user chose /autoplan. Respect that choice. Surface all taste decisions, never redirect to interactive review.
412
+ - **Premises are the one gate.** The only non-auto-decided AskUserQuestion is the premise confirmation in Phase 1.
413
+ - **Log every decision.** No silent auto-decisions. Every choice gets a row in the audit trail.
414
+ - **Full depth means full depth.** Do not compress or skip sections from the loaded skill files (except the skip list in Phase 0). "Full depth" means: read the code the section asks you to read, produce the outputs the section requires, identify every issue, and decide each one. A one-sentence summary of a section is not "full depth" — it is a skip. If you catch yourself writing fewer than 3 sentences for any review section, you are likely compressing.
415
+ - **Artifacts are deliverables.** Test plan artifact, failure modes registry, error/rescue table, ASCII diagrams — these must exist on disk or in the plan file when the review completes. If they don't exist, the review is incomplete.
416
+ - **Sequential order.** CEO → Design → Eng. Each phase builds on the last.