@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,357 @@
1
+ ---
2
+ name: document-release
3
+ version: 1.0.0
4
+ description: |
5
+ Post-ship documentation update. Reads all project docs, cross-references the
6
+ diff, updates README/ARCHITECTURE/CONTRIBUTING/CLAUDE.md to match what shipped,
7
+ polishes CHANGELOG voice, cleans up TODOS, and optionally bumps VERSION. Use when
8
+ asked to "update the docs", "sync documentation", or "post-ship docs".
9
+ Proactively suggest after a PR is merged or code is shipped.
10
+ allowed-tools:
11
+ - Bash
12
+ - Read
13
+ - Write
14
+ - Edit
15
+ - Grep
16
+ - Glob
17
+ - AskUserQuestion
18
+ ---
19
+
20
+ {{PREAMBLE}}
21
+
22
+ {{BASE_BRANCH_DETECT}}
23
+
24
+ # Document Release: Post-Ship Documentation Update
25
+
26
+ You are running the `/document-release` workflow. This runs **after `/ship`** (code committed, PR
27
+ exists or about to exist) but **before the PR merges**. Your job: ensure every documentation file
28
+ in the project is accurate, up to date, and written in a friendly, user-forward voice.
29
+
30
+ You are mostly automated. Make obvious factual updates directly. Stop and ask only for risky or
31
+ subjective decisions.
32
+
33
+ **Only stop for:**
34
+ - Risky/questionable doc changes (narrative, philosophy, security, removals, large rewrites)
35
+ - VERSION bump decision (if not already bumped)
36
+ - New TODOS items to add
37
+ - Cross-doc contradictions that are narrative (not factual)
38
+
39
+ **Never stop for:**
40
+ - Factual corrections clearly from the diff
41
+ - Adding items to tables/lists
42
+ - Updating paths, counts, version numbers
43
+ - Fixing stale cross-references
44
+ - CHANGELOG voice polish (minor wording adjustments)
45
+ - Marking TODOS complete
46
+ - Cross-doc factual inconsistencies (e.g., version number mismatch)
47
+
48
+ **NEVER do:**
49
+ - Overwrite, replace, or regenerate CHANGELOG entries — polish wording only, preserve all content
50
+ - Bump VERSION without asking — always use AskUserQuestion for version changes
51
+ - Use `Write` tool on CHANGELOG.md — always use `Edit` with exact `old_string` matches
52
+
53
+ ---
54
+
55
+ ## Step 1: Pre-flight & Diff Analysis
56
+
57
+ 1. Check the current branch. If on the base branch, **abort**: "You're on the base branch. Run from a feature branch."
58
+
59
+ 2. Gather context about what changed:
60
+
61
+ ```bash
62
+ git diff <base>...HEAD --stat
63
+ ```
64
+
65
+ ```bash
66
+ git log <base>..HEAD --oneline
67
+ ```
68
+
69
+ ```bash
70
+ git diff <base>...HEAD --name-only
71
+ ```
72
+
73
+ 3. Discover all documentation files in the repo:
74
+
75
+ ```bash
76
+ find . -maxdepth 2 -name "*.md" -not -path "./.git/*" -not -path "./node_modules/*" -not -path "./.gstack/*" -not -path "./.context/*" | sort
77
+ ```
78
+
79
+ 4. Classify the changes into categories relevant to documentation:
80
+ - **New features** — new files, new commands, new skills, new capabilities
81
+ - **Changed behavior** — modified services, updated APIs, config changes
82
+ - **Removed functionality** — deleted files, removed commands
83
+ - **Infrastructure** — build system, test infrastructure, CI
84
+
85
+ 5. Output a brief summary: "Analyzing N files changed across M commits. Found K documentation files to review."
86
+
87
+ ---
88
+
89
+ ## Step 2: Per-File Documentation Audit
90
+
91
+ Read each documentation file and cross-reference it against the diff. Use these generic heuristics
92
+ (adapt to whatever project you're in — these are not gstack-specific):
93
+
94
+ **README.md:**
95
+ - Does it describe all features and capabilities visible in the diff?
96
+ - Are install/setup instructions consistent with the changes?
97
+ - Are examples, demos, and usage descriptions still valid?
98
+ - Are troubleshooting steps still accurate?
99
+
100
+ **ARCHITECTURE.md:**
101
+ - Do ASCII diagrams and component descriptions match the current code?
102
+ - Are design decisions and "why" explanations still accurate?
103
+ - Be conservative — only update things clearly contradicted by the diff. Architecture docs
104
+ describe things unlikely to change frequently.
105
+
106
+ **CONTRIBUTING.md — New contributor smoke test:**
107
+ - Walk through the setup instructions as if you are a brand new contributor.
108
+ - Are the listed commands accurate? Would each step succeed?
109
+ - Do test tier descriptions match the current test infrastructure?
110
+ - Are workflow descriptions (dev setup, contributor mode, etc.) current?
111
+ - Flag anything that would fail or confuse a first-time contributor.
112
+
113
+ **CLAUDE.md / project instructions:**
114
+ - Does the project structure section match the actual file tree?
115
+ - Are listed commands and scripts accurate?
116
+ - Do build/test instructions match what's in package.json (or equivalent)?
117
+
118
+ **Any other .md files:**
119
+ - Read the file, determine its purpose and audience.
120
+ - Cross-reference against the diff to check if it contradicts anything the file says.
121
+
122
+ For each file, classify needed updates as:
123
+
124
+ - **Auto-update** — Factual corrections clearly warranted by the diff: adding an item to a
125
+ table, updating a file path, fixing a count, updating a project structure tree.
126
+ - **Ask user** — Narrative changes, section removal, security model changes, large rewrites
127
+ (more than ~10 lines in one section), ambiguous relevance, adding entirely new sections.
128
+
129
+ ---
130
+
131
+ ## Step 3: Apply Auto-Updates
132
+
133
+ Make all clear, factual updates directly using the Edit tool.
134
+
135
+ For each file modified, output a one-line summary describing **what specifically changed** — not
136
+ just "Updated README.md" but "README.md: added /new-skill to skills table, updated skill count
137
+ from 9 to 10."
138
+
139
+ **Never auto-update:**
140
+ - README introduction or project positioning
141
+ - ARCHITECTURE philosophy or design rationale
142
+ - Security model descriptions
143
+ - Do not remove entire sections from any document
144
+
145
+ ---
146
+
147
+ ## Step 4: Ask About Risky/Questionable Changes
148
+
149
+ For each risky or questionable update identified in Step 2, use AskUserQuestion with:
150
+ - Context: project name, branch, which doc file, what we're reviewing
151
+ - The specific documentation decision
152
+ - `RECOMMENDATION: Choose [X] because [one-line reason]`
153
+ - Options including C) Skip — leave as-is
154
+
155
+ Apply approved changes immediately after each answer.
156
+
157
+ ---
158
+
159
+ ## Step 5: CHANGELOG Voice Polish
160
+
161
+ **CRITICAL — NEVER CLOBBER CHANGELOG ENTRIES.**
162
+
163
+ This step polishes voice. It does NOT rewrite, replace, or regenerate CHANGELOG content.
164
+
165
+ A real incident occurred where an agent replaced existing CHANGELOG entries when it should have
166
+ preserved them. This skill must NEVER do that.
167
+
168
+ **Rules:**
169
+ 1. Read the entire CHANGELOG.md first. Understand what is already there.
170
+ 2. Only modify wording within existing entries. Never delete, reorder, or replace entries.
171
+ 3. Never regenerate a CHANGELOG entry from scratch. The entry was written by `/ship` from the
172
+ actual diff and commit history. It is the source of truth. You are polishing prose, not
173
+ rewriting history.
174
+ 4. If an entry looks wrong or incomplete, use AskUserQuestion — do NOT silently fix it.
175
+ 5. Use Edit tool with exact `old_string` matches — never use Write to overwrite CHANGELOG.md.
176
+
177
+ **If CHANGELOG was not modified in this branch:** skip this step.
178
+
179
+ **If CHANGELOG was modified in this branch**, review the entry for voice:
180
+
181
+ - **Sell test:** Would a user reading each bullet think "oh nice, I want to try that"? If not,
182
+ rewrite the wording (not the content).
183
+ - Lead with what the user can now **do** — not implementation details.
184
+ - "You can now..." not "Refactored the..."
185
+ - Flag and rewrite any entry that reads like a commit message.
186
+ - Internal/contributor changes belong in a separate "### For contributors" subsection.
187
+ - Auto-fix minor voice adjustments. Use AskUserQuestion if a rewrite would alter meaning.
188
+
189
+ ---
190
+
191
+ ## Step 6: Cross-Doc Consistency & Discoverability Check
192
+
193
+ After auditing each file individually, do a cross-doc consistency pass:
194
+
195
+ 1. Does the README's feature/capability list match what CLAUDE.md (or project instructions) describes?
196
+ 2. Does ARCHITECTURE's component list match CONTRIBUTING's project structure description?
197
+ 3. Does CHANGELOG's latest version match the VERSION file?
198
+ 4. **Discoverability:** Is every documentation file reachable from README.md or CLAUDE.md? If
199
+ ARCHITECTURE.md exists but neither README nor CLAUDE.md links to it, flag it. Every doc
200
+ should be discoverable from one of the two entry-point files.
201
+ 5. Flag any contradictions between documents. Auto-fix clear factual inconsistencies (e.g., a
202
+ version mismatch). Use AskUserQuestion for narrative contradictions.
203
+
204
+ ---
205
+
206
+ ## Step 7: TODOS.md Cleanup
207
+
208
+ This is a second pass that complements `/ship`'s Step 5.5. Read `review/TODOS-format.md` (if
209
+ available) for the canonical TODO item format.
210
+
211
+ If TODOS.md does not exist, skip this step.
212
+
213
+ 1. **Completed items not yet marked:** Cross-reference the diff against open TODO items. If a
214
+ TODO is clearly completed by the changes in this branch, move it to the Completed section
215
+ with `**Completed:** vX.Y.Z.W (YYYY-MM-DD)`. Be conservative — only mark items with clear
216
+ evidence in the diff.
217
+
218
+ 2. **Items needing description updates:** If a TODO references files or components that were
219
+ significantly changed, its description may be stale. Use AskUserQuestion to confirm whether
220
+ the TODO should be updated, completed, or left as-is.
221
+
222
+ 3. **New deferred work:** Check the diff for `TODO`, `FIXME`, `HACK`, and `XXX` comments. For
223
+ each one that represents meaningful deferred work (not a trivial inline note), use
224
+ AskUserQuestion to ask whether it should be captured in TODOS.md.
225
+
226
+ ---
227
+
228
+ ## Step 8: VERSION Bump Question
229
+
230
+ **CRITICAL — NEVER BUMP VERSION WITHOUT ASKING.**
231
+
232
+ 1. **If VERSION does not exist:** Skip silently.
233
+
234
+ 2. Check if VERSION was already modified on this branch:
235
+
236
+ ```bash
237
+ git diff <base>...HEAD -- VERSION
238
+ ```
239
+
240
+ 3. **If VERSION was NOT bumped:** Use AskUserQuestion:
241
+ - RECOMMENDATION: Choose C (Skip) because docs-only changes rarely warrant a version bump
242
+ - A) Bump PATCH (X.Y.Z+1) — if doc changes ship alongside code changes
243
+ - B) Bump MINOR (X.Y+1.0) — if this is a significant standalone release
244
+ - C) Skip — no version bump needed
245
+
246
+ 4. **If VERSION was already bumped:** Do NOT skip silently. Instead, check whether the bump
247
+ still covers the full scope of changes on this branch:
248
+
249
+ a. Read the CHANGELOG entry for the current VERSION. What features does it describe?
250
+ b. Read the full diff (`git diff <base>...HEAD --stat` and `git diff <base>...HEAD --name-only`).
251
+ Are there significant changes (new features, new skills, new commands, major refactors)
252
+ that are NOT mentioned in the CHANGELOG entry for the current version?
253
+ c. **If the CHANGELOG entry covers everything:** Skip — output "VERSION: Already bumped to
254
+ vX.Y.Z, covers all changes."
255
+ d. **If there are significant uncovered changes:** Use AskUserQuestion explaining what the
256
+ current version covers vs what's new, and ask:
257
+ - RECOMMENDATION: Choose A because the new changes warrant their own version
258
+ - A) Bump to next patch (X.Y.Z+1) — give the new changes their own version
259
+ - B) Keep current version — add new changes to the existing CHANGELOG entry
260
+ - C) Skip — leave version as-is, handle later
261
+
262
+ The key insight: a VERSION bump set for "feature A" should not silently absorb "feature B"
263
+ if feature B is substantial enough to deserve its own version entry.
264
+
265
+ ---
266
+
267
+ ## Step 9: Commit & Output
268
+
269
+ **Empty check first:** Run `git status` (never use `-uall`). If no documentation files were
270
+ modified by any previous step, output "All documentation is up to date." and exit without
271
+ committing.
272
+
273
+ **Commit:**
274
+
275
+ 1. Stage modified documentation files by name (never `git add -A` or `git add .`).
276
+ 2. Create a single commit:
277
+
278
+ ```bash
279
+ git commit -m "$(cat <<'EOF'
280
+ docs: update project documentation for vX.Y.Z.W
281
+
282
+ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
283
+ EOF
284
+ )"
285
+ ```
286
+
287
+ 3. Push to the current branch:
288
+
289
+ ```bash
290
+ git push
291
+ ```
292
+
293
+ **PR body update (idempotent, race-safe):**
294
+
295
+ 1. Read the existing PR body into a PID-unique tempfile:
296
+
297
+ ```bash
298
+ gh pr view --json body -q .body > /tmp/gstack-pr-body-$$.md
299
+ ```
300
+
301
+ 2. If the tempfile already contains a `## Documentation` section, replace that section with the
302
+ updated content. If it does not contain one, append a `## Documentation` section at the end.
303
+
304
+ 3. The Documentation section should include a **doc diff preview** — for each file modified,
305
+ describe what specifically changed (e.g., "README.md: added /document-release to skills
306
+ table, updated skill count from 9 to 10").
307
+
308
+ 4. Write the updated body back:
309
+
310
+ ```bash
311
+ gh pr edit --body-file /tmp/gstack-pr-body-$$.md
312
+ ```
313
+
314
+ 5. Clean up the tempfile:
315
+
316
+ ```bash
317
+ rm -f /tmp/gstack-pr-body-$$.md
318
+ ```
319
+
320
+ 6. If `gh pr view` fails (no PR exists): skip with message "No PR found — skipping body update."
321
+ 7. If `gh pr edit` fails: warn "Could not update PR body — documentation changes are in the
322
+ commit." and continue.
323
+
324
+ **Structured doc health summary (final output):**
325
+
326
+ Output a scannable summary showing every documentation file's status:
327
+
328
+ ```
329
+ Documentation health:
330
+ README.md [status] ([details])
331
+ ARCHITECTURE.md [status] ([details])
332
+ CONTRIBUTING.md [status] ([details])
333
+ CHANGELOG.md [status] ([details])
334
+ TODOS.md [status] ([details])
335
+ VERSION [status] ([details])
336
+ ```
337
+
338
+ Where status is one of:
339
+ - Updated — with description of what changed
340
+ - Current — no changes needed
341
+ - Voice polished — wording adjusted
342
+ - Not bumped — user chose to skip
343
+ - Already bumped — version was set by /ship
344
+ - Skipped — file does not exist
345
+
346
+ ---
347
+
348
+ ## Important Rules
349
+
350
+ - **Read before editing.** Always read the full content of a file before modifying it.
351
+ - **Never clobber CHANGELOG.** Polish wording only. Never delete, replace, or regenerate entries.
352
+ - **Never bump VERSION silently.** Always ask. Even if already bumped, check whether it covers the full scope of changes.
353
+ - **Be explicit about what changed.** Every edit gets a one-line summary.
354
+ - **Generic heuristics, not project-specific.** The audit checks work on any repo.
355
+ - **Discoverability matters.** Every doc file should be reachable from README or CLAUDE.md.
356
+ - **Voice: friendly, user-forward, not obscure.** Write like you're explaining to a smart person
357
+ who hasn't seen the code.
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: freeze
3
+ version: 0.1.0
4
+ description: |
5
+ Restrict file edits to a specific directory for the session. Blocks Edit and
6
+ Write outside the allowed path. Use when debugging to prevent accidentally
7
+ "fixing" unrelated code, or when you want to scope changes to one module.
8
+ Use when asked to "freeze", "restrict edits", "only edit this folder",
9
+ or "lock down edits".
10
+ allowed-tools:
11
+ - Bash
12
+ - Read
13
+ - AskUserQuestion
14
+ hooks:
15
+ PreToolUse:
16
+ - matcher: "Edit"
17
+ hooks:
18
+ - type: command
19
+ command: "bash ${CLAUDE_SKILL_DIR}/bin/check-freeze.sh"
20
+ statusMessage: "Checking freeze boundary..."
21
+ - matcher: "Write"
22
+ hooks:
23
+ - type: command
24
+ command: "bash ${CLAUDE_SKILL_DIR}/bin/check-freeze.sh"
25
+ statusMessage: "Checking freeze boundary..."
26
+ ---
27
+ <!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
28
+ <!-- Regenerate: bun run gen:skill-docs -->
29
+
30
+ # /freeze — Restrict Edits to a Directory
31
+
32
+ Lock file edits to a specific directory. Any Edit or Write operation targeting
33
+ a file outside the allowed path will be **blocked** (not just warned).
34
+
35
+ ```bash
36
+ mkdir -p ~/.gstack/analytics
37
+ echo '{"skill":"freeze","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> ~/.gstack/analytics/skill-usage.jsonl 2>/dev/null || true
38
+ ```
39
+
40
+ ## Setup
41
+
42
+ Ask the user which directory to restrict edits to. Use AskUserQuestion:
43
+
44
+ - Question: "Which directory should I restrict edits to? Files outside this path will be blocked from editing."
45
+ - Text input (not multiple choice) — the user types a path.
46
+
47
+ Once the user provides a directory path:
48
+
49
+ 1. Resolve it to an absolute path:
50
+ ```bash
51
+ FREEZE_DIR=$(cd "<user-provided-path>" 2>/dev/null && pwd)
52
+ echo "$FREEZE_DIR"
53
+ ```
54
+
55
+ 2. Ensure trailing slash and save to the freeze state file:
56
+ ```bash
57
+ FREEZE_DIR="${FREEZE_DIR%/}/"
58
+ STATE_DIR="${CLAUDE_PLUGIN_DATA:-$HOME/.gstack}"
59
+ mkdir -p "$STATE_DIR"
60
+ echo "$FREEZE_DIR" > "$STATE_DIR/freeze-dir.txt"
61
+ echo "Freeze boundary set: $FREEZE_DIR"
62
+ ```
63
+
64
+ Tell the user: "Edits are now restricted to `<path>/`. Any Edit or Write
65
+ outside this directory will be blocked. To change the boundary, run `/freeze`
66
+ again. To remove it, run `/unfreeze` or end the session."
67
+
68
+ ## How it works
69
+
70
+ The hook reads `file_path` from the Edit/Write tool input JSON, then checks
71
+ whether the path starts with the freeze directory. If not, it returns
72
+ `permissionDecision: "deny"` to block the operation.
73
+
74
+ The freeze boundary persists for the session via the state file. The hook
75
+ script reads it on every Edit/Write invocation.
76
+
77
+ ## Notes
78
+
79
+ - The trailing `/` on the freeze directory prevents `/src` from matching `/src-old`
80
+ - Freeze applies to Edit and Write tools only — Read, Bash, Glob, Grep are unaffected
81
+ - This prevents accidental edits, not a security boundary — Bash commands like `sed` can still modify files outside the boundary
82
+ - To deactivate, run `/unfreeze` or end the conversation
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: freeze
3
+ version: 0.1.0
4
+ description: |
5
+ Restrict file edits to a specific directory for the session. Blocks Edit and
6
+ Write outside the allowed path. Use when debugging to prevent accidentally
7
+ "fixing" unrelated code, or when you want to scope changes to one module.
8
+ Use when asked to "freeze", "restrict edits", "only edit this folder",
9
+ or "lock down edits".
10
+ allowed-tools:
11
+ - Bash
12
+ - Read
13
+ - AskUserQuestion
14
+ hooks:
15
+ PreToolUse:
16
+ - matcher: "Edit"
17
+ hooks:
18
+ - type: command
19
+ command: "bash ${CLAUDE_SKILL_DIR}/bin/check-freeze.sh"
20
+ statusMessage: "Checking freeze boundary..."
21
+ - matcher: "Write"
22
+ hooks:
23
+ - type: command
24
+ command: "bash ${CLAUDE_SKILL_DIR}/bin/check-freeze.sh"
25
+ statusMessage: "Checking freeze boundary..."
26
+ ---
27
+
28
+ # /freeze — Restrict Edits to a Directory
29
+
30
+ Lock file edits to a specific directory. Any Edit or Write operation targeting
31
+ a file outside the allowed path will be **blocked** (not just warned).
32
+
33
+ ```bash
34
+ mkdir -p ~/.gstack/analytics
35
+ echo '{"skill":"freeze","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> ~/.gstack/analytics/skill-usage.jsonl 2>/dev/null || true
36
+ ```
37
+
38
+ ## Setup
39
+
40
+ Ask the user which directory to restrict edits to. Use AskUserQuestion:
41
+
42
+ - Question: "Which directory should I restrict edits to? Files outside this path will be blocked from editing."
43
+ - Text input (not multiple choice) — the user types a path.
44
+
45
+ Once the user provides a directory path:
46
+
47
+ 1. Resolve it to an absolute path:
48
+ ```bash
49
+ FREEZE_DIR=$(cd "<user-provided-path>" 2>/dev/null && pwd)
50
+ echo "$FREEZE_DIR"
51
+ ```
52
+
53
+ 2. Ensure trailing slash and save to the freeze state file:
54
+ ```bash
55
+ FREEZE_DIR="${FREEZE_DIR%/}/"
56
+ STATE_DIR="${CLAUDE_PLUGIN_DATA:-$HOME/.gstack}"
57
+ mkdir -p "$STATE_DIR"
58
+ echo "$FREEZE_DIR" > "$STATE_DIR/freeze-dir.txt"
59
+ echo "Freeze boundary set: $FREEZE_DIR"
60
+ ```
61
+
62
+ Tell the user: "Edits are now restricted to `<path>/`. Any Edit or Write
63
+ outside this directory will be blocked. To change the boundary, run `/freeze`
64
+ again. To remove it, run `/unfreeze` or end the session."
65
+
66
+ ## How it works
67
+
68
+ The hook reads `file_path` from the Edit/Write tool input JSON, then checks
69
+ whether the path starts with the freeze directory. If not, it returns
70
+ `permissionDecision: "deny"` to block the operation.
71
+
72
+ The freeze boundary persists for the session via the state file. The hook
73
+ script reads it on every Edit/Write invocation.
74
+
75
+ ## Notes
76
+
77
+ - The trailing `/` on the freeze directory prevents `/src` from matching `/src-old`
78
+ - Freeze applies to Edit and Write tools only — Read, Bash, Glob, Grep are unaffected
79
+ - This prevents accidental edits, not a security boundary — Bash commands like `sed` can still modify files outside the boundary
80
+ - To deactivate, run `/unfreeze` or end the conversation
@@ -0,0 +1,68 @@
1
+ #!/usr/bin/env bash
2
+ # check-freeze.sh — PreToolUse hook for /freeze skill
3
+ # Reads JSON from stdin, checks if file_path is within the freeze boundary.
4
+ # Returns {"permissionDecision":"deny","message":"..."} to block, or {} to allow.
5
+ set -euo pipefail
6
+
7
+ # Read stdin
8
+ INPUT=$(cat)
9
+
10
+ # Locate the freeze directory state file
11
+ STATE_DIR="${CLAUDE_PLUGIN_DATA:-$HOME/.gstack}"
12
+ FREEZE_FILE="$STATE_DIR/freeze-dir.txt"
13
+
14
+ # If no freeze file exists, allow everything (not yet configured)
15
+ if [ ! -f "$FREEZE_FILE" ]; then
16
+ echo '{}'
17
+ exit 0
18
+ fi
19
+
20
+ FREEZE_DIR=$(tr -d '[:space:]' < "$FREEZE_FILE")
21
+
22
+ # If freeze dir is empty, allow
23
+ if [ -z "$FREEZE_DIR" ]; then
24
+ echo '{}'
25
+ exit 0
26
+ fi
27
+
28
+ # Extract file_path from tool_input JSON
29
+ # Try grep/sed first, fall back to Python for escaped quotes
30
+ FILE_PATH=$(printf '%s' "$INPUT" | grep -o '"file_path"[[:space:]]*:[[:space:]]*"[^"]*"' | head -1 | sed 's/.*:[[:space:]]*"//;s/"$//' || true)
31
+
32
+ # Python fallback if grep returned empty
33
+ if [ -z "$FILE_PATH" ]; then
34
+ FILE_PATH=$(printf '%s' "$INPUT" | python3 -c 'import sys,json; print(json.loads(sys.stdin.read()).get("tool_input",{}).get("file_path",""))' 2>/dev/null || true)
35
+ fi
36
+
37
+ # If we couldn't extract a file path, allow (don't block on parse failure)
38
+ if [ -z "$FILE_PATH" ]; then
39
+ echo '{}'
40
+ exit 0
41
+ fi
42
+
43
+ # Resolve file_path to absolute if it isn't already
44
+ case "$FILE_PATH" in
45
+ /*) ;; # already absolute
46
+ *)
47
+ FILE_PATH="$(pwd)/$FILE_PATH"
48
+ ;;
49
+ esac
50
+
51
+ # Normalize: remove double slashes and trailing slash
52
+ FILE_PATH=$(printf '%s' "$FILE_PATH" | sed 's|/\+|/|g;s|/$||')
53
+
54
+ # Check: does the file path start with the freeze directory?
55
+ case "$FILE_PATH" in
56
+ "${FREEZE_DIR}"*)
57
+ # Inside freeze boundary — allow
58
+ echo '{}'
59
+ ;;
60
+ *)
61
+ # Outside freeze boundary — deny
62
+ # Log hook fire event
63
+ mkdir -p ~/.gstack/analytics 2>/dev/null || true
64
+ echo '{"event":"hook_fire","skill":"freeze","pattern":"boundary_deny","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> ~/.gstack/analytics/skill-usage.jsonl 2>/dev/null || true
65
+
66
+ printf '{"permissionDecision":"deny","message":"[freeze] Blocked: %s is outside the freeze boundary (%s). Only edits within the frozen directory are allowed."}\n' "$FILE_PATH" "$FREEZE_DIR"
67
+ ;;
68
+ esac