@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.
- package/.agents/skills/gstack/.agents/skills/gstack/SKILL.md +651 -0
- package/.agents/skills/gstack/.agents/skills/gstack-autoplan/SKILL.md +678 -0
- package/.agents/skills/gstack/.agents/skills/gstack-benchmark/SKILL.md +482 -0
- package/.agents/skills/gstack/.agents/skills/gstack-browse/SKILL.md +511 -0
- package/.agents/skills/gstack/.agents/skills/gstack-canary/SKILL.md +486 -0
- package/.agents/skills/gstack/.agents/skills/gstack-careful/SKILL.md +50 -0
- package/.agents/skills/gstack/.agents/skills/gstack-cso/SKILL.md +607 -0
- package/.agents/skills/gstack/.agents/skills/gstack-design-consultation/SKILL.md +615 -0
- package/.agents/skills/gstack/.agents/skills/gstack-design-review/SKILL.md +988 -0
- package/.agents/skills/gstack/.agents/skills/gstack-document-release/SKILL.md +604 -0
- package/.agents/skills/gstack/.agents/skills/gstack-freeze/SKILL.md +67 -0
- package/.agents/skills/gstack/.agents/skills/gstack-guard/SKILL.md +62 -0
- package/.agents/skills/gstack/.agents/skills/gstack-investigate/SKILL.md +415 -0
- package/.agents/skills/gstack/.agents/skills/gstack-land-and-deploy/SKILL.md +873 -0
- package/.agents/skills/gstack/.agents/skills/gstack-office-hours/SKILL.md +986 -0
- package/.agents/skills/gstack/.agents/skills/gstack-plan-ceo-review/SKILL.md +1268 -0
- package/.agents/skills/gstack/.agents/skills/gstack-plan-design-review/SKILL.md +668 -0
- package/.agents/skills/gstack/.agents/skills/gstack-plan-eng-review/SKILL.md +826 -0
- package/.agents/skills/gstack/.agents/skills/gstack-qa/SKILL.md +1006 -0
- package/.agents/skills/gstack/.agents/skills/gstack-qa-only/SKILL.md +626 -0
- package/.agents/skills/gstack/.agents/skills/gstack-retro/SKILL.md +1065 -0
- package/.agents/skills/gstack/.agents/skills/gstack-review/SKILL.md +704 -0
- package/.agents/skills/gstack/.agents/skills/gstack-setup-browser-cookies/SKILL.md +325 -0
- package/.agents/skills/gstack/.agents/skills/gstack-setup-deploy/SKILL.md +450 -0
- package/.agents/skills/gstack/.agents/skills/gstack-ship/SKILL.md +1312 -0
- package/.agents/skills/gstack/.agents/skills/gstack-unfreeze/SKILL.md +36 -0
- package/.agents/skills/gstack/.agents/skills/gstack-upgrade/SKILL.md +220 -0
- package/.agents/skills/gstack/.env.example +5 -0
- package/.agents/skills/gstack/.github/workflows/skill-docs.yml +17 -0
- package/.agents/skills/gstack/AGENTS.md +49 -0
- package/.agents/skills/gstack/ARCHITECTURE.md +359 -0
- package/.agents/skills/gstack/BROWSER.md +271 -0
- package/.agents/skills/gstack/CHANGELOG.md +800 -0
- package/.agents/skills/gstack/CLAUDE.md +284 -0
- package/.agents/skills/gstack/CONTRIBUTING.md +370 -0
- package/.agents/skills/gstack/ETHOS.md +129 -0
- package/.agents/skills/gstack/LICENSE +21 -0
- package/.agents/skills/gstack/README.md +228 -0
- package/.agents/skills/gstack/SKILL.md +657 -0
- package/.agents/skills/gstack/SKILL.md.tmpl +281 -0
- package/.agents/skills/gstack/TODOS.md +564 -0
- package/.agents/skills/gstack/VERSION +1 -0
- package/.agents/skills/gstack/autoplan/SKILL.md +689 -0
- package/.agents/skills/gstack/autoplan/SKILL.md.tmpl +416 -0
- package/.agents/skills/gstack/benchmark/SKILL.md +489 -0
- package/.agents/skills/gstack/benchmark/SKILL.md.tmpl +233 -0
- package/.agents/skills/gstack/bin/dev-setup +68 -0
- package/.agents/skills/gstack/bin/dev-teardown +56 -0
- package/.agents/skills/gstack/bin/gstack-analytics +191 -0
- package/.agents/skills/gstack/bin/gstack-community-dashboard +113 -0
- package/.agents/skills/gstack/bin/gstack-config +38 -0
- package/.agents/skills/gstack/bin/gstack-diff-scope +71 -0
- package/.agents/skills/gstack/bin/gstack-global-discover.ts +591 -0
- package/.agents/skills/gstack/bin/gstack-repo-mode +93 -0
- package/.agents/skills/gstack/bin/gstack-review-log +9 -0
- package/.agents/skills/gstack/bin/gstack-review-read +12 -0
- package/.agents/skills/gstack/bin/gstack-slug +15 -0
- package/.agents/skills/gstack/bin/gstack-telemetry-log +158 -0
- package/.agents/skills/gstack/bin/gstack-telemetry-sync +127 -0
- package/.agents/skills/gstack/bin/gstack-update-check +196 -0
- package/.agents/skills/gstack/browse/SKILL.md +517 -0
- package/.agents/skills/gstack/browse/SKILL.md.tmpl +141 -0
- package/.agents/skills/gstack/browse/bin/find-browse +21 -0
- package/.agents/skills/gstack/browse/bin/remote-slug +14 -0
- package/.agents/skills/gstack/browse/scripts/build-node-server.sh +48 -0
- package/.agents/skills/gstack/browse/src/browser-manager.ts +634 -0
- package/.agents/skills/gstack/browse/src/buffers.ts +137 -0
- package/.agents/skills/gstack/browse/src/bun-polyfill.cjs +109 -0
- package/.agents/skills/gstack/browse/src/cli.ts +420 -0
- package/.agents/skills/gstack/browse/src/commands.ts +111 -0
- package/.agents/skills/gstack/browse/src/config.ts +150 -0
- package/.agents/skills/gstack/browse/src/cookie-import-browser.ts +417 -0
- package/.agents/skills/gstack/browse/src/cookie-picker-routes.ts +207 -0
- package/.agents/skills/gstack/browse/src/cookie-picker-ui.ts +541 -0
- package/.agents/skills/gstack/browse/src/find-browse.ts +61 -0
- package/.agents/skills/gstack/browse/src/meta-commands.ts +269 -0
- package/.agents/skills/gstack/browse/src/platform.ts +17 -0
- package/.agents/skills/gstack/browse/src/read-commands.ts +335 -0
- package/.agents/skills/gstack/browse/src/server.ts +369 -0
- package/.agents/skills/gstack/browse/src/snapshot.ts +398 -0
- package/.agents/skills/gstack/browse/src/url-validation.ts +91 -0
- package/.agents/skills/gstack/browse/src/write-commands.ts +352 -0
- package/.agents/skills/gstack/browse/test/bun-polyfill.test.ts +72 -0
- package/.agents/skills/gstack/browse/test/commands.test.ts +1836 -0
- package/.agents/skills/gstack/browse/test/config.test.ts +250 -0
- package/.agents/skills/gstack/browse/test/cookie-import-browser.test.ts +397 -0
- package/.agents/skills/gstack/browse/test/cookie-picker-routes.test.ts +205 -0
- package/.agents/skills/gstack/browse/test/find-browse.test.ts +50 -0
- package/.agents/skills/gstack/browse/test/fixtures/basic.html +33 -0
- package/.agents/skills/gstack/browse/test/fixtures/cursor-interactive.html +22 -0
- package/.agents/skills/gstack/browse/test/fixtures/dialog.html +15 -0
- package/.agents/skills/gstack/browse/test/fixtures/empty.html +2 -0
- package/.agents/skills/gstack/browse/test/fixtures/forms.html +55 -0
- package/.agents/skills/gstack/browse/test/fixtures/qa-eval-checkout.html +108 -0
- package/.agents/skills/gstack/browse/test/fixtures/qa-eval-spa.html +98 -0
- package/.agents/skills/gstack/browse/test/fixtures/qa-eval.html +51 -0
- package/.agents/skills/gstack/browse/test/fixtures/responsive.html +49 -0
- package/.agents/skills/gstack/browse/test/fixtures/snapshot.html +55 -0
- package/.agents/skills/gstack/browse/test/fixtures/spa.html +24 -0
- package/.agents/skills/gstack/browse/test/fixtures/states.html +17 -0
- package/.agents/skills/gstack/browse/test/fixtures/upload.html +25 -0
- package/.agents/skills/gstack/browse/test/gstack-config.test.ts +125 -0
- package/.agents/skills/gstack/browse/test/gstack-update-check.test.ts +467 -0
- package/.agents/skills/gstack/browse/test/handoff.test.ts +235 -0
- package/.agents/skills/gstack/browse/test/path-validation.test.ts +63 -0
- package/.agents/skills/gstack/browse/test/platform.test.ts +37 -0
- package/.agents/skills/gstack/browse/test/snapshot.test.ts +467 -0
- package/.agents/skills/gstack/browse/test/test-server.ts +57 -0
- package/.agents/skills/gstack/browse/test/url-validation.test.ts +72 -0
- package/.agents/skills/gstack/canary/SKILL.md +493 -0
- package/.agents/skills/gstack/canary/SKILL.md.tmpl +220 -0
- package/.agents/skills/gstack/careful/SKILL.md +59 -0
- package/.agents/skills/gstack/careful/SKILL.md.tmpl +57 -0
- package/.agents/skills/gstack/careful/bin/check-careful.sh +112 -0
- package/.agents/skills/gstack/codex/SKILL.md +677 -0
- package/.agents/skills/gstack/codex/SKILL.md.tmpl +356 -0
- package/.agents/skills/gstack/conductor.json +6 -0
- package/.agents/skills/gstack/cso/SKILL.md +615 -0
- package/.agents/skills/gstack/cso/SKILL.md.tmpl +376 -0
- package/.agents/skills/gstack/design-consultation/SKILL.md +625 -0
- package/.agents/skills/gstack/design-consultation/SKILL.md.tmpl +369 -0
- package/.agents/skills/gstack/design-review/SKILL.md +998 -0
- package/.agents/skills/gstack/design-review/SKILL.md.tmpl +262 -0
- package/.agents/skills/gstack/docs/images/github-2013.png +0 -0
- package/.agents/skills/gstack/docs/images/github-2026.png +0 -0
- package/.agents/skills/gstack/docs/skills.md +877 -0
- package/.agents/skills/gstack/document-release/SKILL.md +613 -0
- package/.agents/skills/gstack/document-release/SKILL.md.tmpl +357 -0
- package/.agents/skills/gstack/freeze/SKILL.md +82 -0
- package/.agents/skills/gstack/freeze/SKILL.md.tmpl +80 -0
- package/.agents/skills/gstack/freeze/bin/check-freeze.sh +68 -0
- package/.agents/skills/gstack/gstack-upgrade/SKILL.md +226 -0
- package/.agents/skills/gstack/gstack-upgrade/SKILL.md.tmpl +224 -0
- package/.agents/skills/gstack/guard/SKILL.md +82 -0
- package/.agents/skills/gstack/guard/SKILL.md.tmpl +80 -0
- package/.agents/skills/gstack/investigate/SKILL.md +435 -0
- package/.agents/skills/gstack/investigate/SKILL.md.tmpl +196 -0
- package/.agents/skills/gstack/land-and-deploy/SKILL.md +880 -0
- package/.agents/skills/gstack/land-and-deploy/SKILL.md.tmpl +575 -0
- package/.agents/skills/gstack/office-hours/SKILL.md +996 -0
- package/.agents/skills/gstack/office-hours/SKILL.md.tmpl +624 -0
- package/.agents/skills/gstack/package.json +55 -0
- package/.agents/skills/gstack/plan-ceo-review/SKILL.md +1277 -0
- package/.agents/skills/gstack/plan-ceo-review/SKILL.md.tmpl +838 -0
- package/.agents/skills/gstack/plan-design-review/SKILL.md +676 -0
- package/.agents/skills/gstack/plan-design-review/SKILL.md.tmpl +314 -0
- package/.agents/skills/gstack/plan-eng-review/SKILL.md +836 -0
- package/.agents/skills/gstack/plan-eng-review/SKILL.md.tmpl +279 -0
- package/.agents/skills/gstack/qa/SKILL.md +1016 -0
- package/.agents/skills/gstack/qa/SKILL.md.tmpl +316 -0
- package/.agents/skills/gstack/qa/references/issue-taxonomy.md +85 -0
- package/.agents/skills/gstack/qa/templates/qa-report-template.md +126 -0
- package/.agents/skills/gstack/qa-only/SKILL.md +633 -0
- package/.agents/skills/gstack/qa-only/SKILL.md.tmpl +101 -0
- package/.agents/skills/gstack/retro/SKILL.md +1072 -0
- package/.agents/skills/gstack/retro/SKILL.md.tmpl +833 -0
- package/.agents/skills/gstack/review/SKILL.md +849 -0
- package/.agents/skills/gstack/review/SKILL.md.tmpl +259 -0
- package/.agents/skills/gstack/review/TODOS-format.md +62 -0
- package/.agents/skills/gstack/review/checklist.md +190 -0
- package/.agents/skills/gstack/review/design-checklist.md +132 -0
- package/.agents/skills/gstack/review/greptile-triage.md +220 -0
- package/.agents/skills/gstack/scripts/analytics.ts +190 -0
- package/.agents/skills/gstack/scripts/dev-skill.ts +82 -0
- package/.agents/skills/gstack/scripts/eval-compare.ts +96 -0
- package/.agents/skills/gstack/scripts/eval-list.ts +116 -0
- package/.agents/skills/gstack/scripts/eval-select.ts +86 -0
- package/.agents/skills/gstack/scripts/eval-summary.ts +187 -0
- package/.agents/skills/gstack/scripts/eval-watch.ts +172 -0
- package/.agents/skills/gstack/scripts/gen-skill-docs.ts +2414 -0
- package/.agents/skills/gstack/scripts/skill-check.ts +167 -0
- package/.agents/skills/gstack/setup +269 -0
- package/.agents/skills/gstack/setup-browser-cookies/SKILL.md +330 -0
- package/.agents/skills/gstack/setup-browser-cookies/SKILL.md.tmpl +74 -0
- package/.agents/skills/gstack/setup-deploy/SKILL.md +459 -0
- package/.agents/skills/gstack/setup-deploy/SKILL.md.tmpl +220 -0
- package/.agents/skills/gstack/ship/SKILL.md +1457 -0
- package/.agents/skills/gstack/ship/SKILL.md.tmpl +528 -0
- package/.agents/skills/gstack/supabase/config.sh +10 -0
- package/.agents/skills/gstack/supabase/functions/community-pulse/index.ts +59 -0
- package/.agents/skills/gstack/supabase/functions/telemetry-ingest/index.ts +135 -0
- package/.agents/skills/gstack/supabase/functions/update-check/index.ts +37 -0
- package/.agents/skills/gstack/supabase/migrations/001_telemetry.sql +89 -0
- package/.agents/skills/gstack/test/analytics.test.ts +277 -0
- package/.agents/skills/gstack/test/codex-e2e.test.ts +197 -0
- package/.agents/skills/gstack/test/fixtures/coverage-audit-fixture.ts +76 -0
- package/.agents/skills/gstack/test/fixtures/eval-baselines.json +7 -0
- package/.agents/skills/gstack/test/fixtures/qa-eval-checkout-ground-truth.json +43 -0
- package/.agents/skills/gstack/test/fixtures/qa-eval-ground-truth.json +43 -0
- package/.agents/skills/gstack/test/fixtures/qa-eval-spa-ground-truth.json +43 -0
- package/.agents/skills/gstack/test/fixtures/review-eval-design-slop.css +86 -0
- package/.agents/skills/gstack/test/fixtures/review-eval-design-slop.html +41 -0
- package/.agents/skills/gstack/test/fixtures/review-eval-enum-diff.rb +30 -0
- package/.agents/skills/gstack/test/fixtures/review-eval-enum.rb +27 -0
- package/.agents/skills/gstack/test/fixtures/review-eval-vuln.rb +14 -0
- package/.agents/skills/gstack/test/gemini-e2e.test.ts +173 -0
- package/.agents/skills/gstack/test/gen-skill-docs.test.ts +1049 -0
- package/.agents/skills/gstack/test/global-discover.test.ts +187 -0
- package/.agents/skills/gstack/test/helpers/codex-session-runner.ts +282 -0
- package/.agents/skills/gstack/test/helpers/e2e-helpers.ts +239 -0
- package/.agents/skills/gstack/test/helpers/eval-store.test.ts +548 -0
- package/.agents/skills/gstack/test/helpers/eval-store.ts +689 -0
- package/.agents/skills/gstack/test/helpers/gemini-session-runner.test.ts +104 -0
- package/.agents/skills/gstack/test/helpers/gemini-session-runner.ts +201 -0
- package/.agents/skills/gstack/test/helpers/llm-judge.ts +130 -0
- package/.agents/skills/gstack/test/helpers/observability.test.ts +283 -0
- package/.agents/skills/gstack/test/helpers/session-runner.test.ts +96 -0
- package/.agents/skills/gstack/test/helpers/session-runner.ts +357 -0
- package/.agents/skills/gstack/test/helpers/skill-parser.ts +206 -0
- package/.agents/skills/gstack/test/helpers/touchfiles.ts +260 -0
- package/.agents/skills/gstack/test/hook-scripts.test.ts +373 -0
- package/.agents/skills/gstack/test/skill-e2e-browse.test.ts +293 -0
- package/.agents/skills/gstack/test/skill-e2e-deploy.test.ts +279 -0
- package/.agents/skills/gstack/test/skill-e2e-design.test.ts +614 -0
- package/.agents/skills/gstack/test/skill-e2e-plan.test.ts +538 -0
- package/.agents/skills/gstack/test/skill-e2e-qa-bugs.test.ts +194 -0
- package/.agents/skills/gstack/test/skill-e2e-qa-workflow.test.ts +412 -0
- package/.agents/skills/gstack/test/skill-e2e-review.test.ts +535 -0
- package/.agents/skills/gstack/test/skill-e2e-workflow.test.ts +586 -0
- package/.agents/skills/gstack/test/skill-e2e.test.ts +3325 -0
- package/.agents/skills/gstack/test/skill-llm-eval.test.ts +787 -0
- package/.agents/skills/gstack/test/skill-parser.test.ts +179 -0
- package/.agents/skills/gstack/test/skill-routing-e2e.test.ts +605 -0
- package/.agents/skills/gstack/test/skill-validation.test.ts +1520 -0
- package/.agents/skills/gstack/test/telemetry.test.ts +278 -0
- package/.agents/skills/gstack/test/touchfiles.test.ts +262 -0
- package/.agents/skills/gstack/unfreeze/SKILL.md +40 -0
- package/.agents/skills/gstack/unfreeze/SKILL.md.tmpl +38 -0
- package/README.md +12 -7
- package/README_KO.md +12 -6
- package/package.json +3 -2
|
@@ -0,0 +1,613 @@
|
|
|
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
|
+
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
|
|
20
|
+
<!-- Regenerate: bun run gen:skill-docs -->
|
|
21
|
+
|
|
22
|
+
## Preamble (run first)
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
_UPD=$(~/.claude/skills/gstack/bin/gstack-update-check 2>/dev/null || .claude/skills/gstack/bin/gstack-update-check 2>/dev/null || true)
|
|
26
|
+
[ -n "$_UPD" ] && echo "$_UPD" || true
|
|
27
|
+
mkdir -p ~/.gstack/sessions
|
|
28
|
+
touch ~/.gstack/sessions/"$PPID"
|
|
29
|
+
_SESSIONS=$(find ~/.gstack/sessions -mmin -120 -type f 2>/dev/null | wc -l | tr -d ' ')
|
|
30
|
+
find ~/.gstack/sessions -mmin +120 -type f -delete 2>/dev/null || true
|
|
31
|
+
_CONTRIB=$(~/.claude/skills/gstack/bin/gstack-config get gstack_contributor 2>/dev/null || true)
|
|
32
|
+
_PROACTIVE=$(~/.claude/skills/gstack/bin/gstack-config get proactive 2>/dev/null || echo "true")
|
|
33
|
+
_BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
|
|
34
|
+
echo "BRANCH: $_BRANCH"
|
|
35
|
+
echo "PROACTIVE: $_PROACTIVE"
|
|
36
|
+
source <(~/.claude/skills/gstack/bin/gstack-repo-mode 2>/dev/null) || true
|
|
37
|
+
REPO_MODE=${REPO_MODE:-unknown}
|
|
38
|
+
echo "REPO_MODE: $REPO_MODE"
|
|
39
|
+
_LAKE_SEEN=$([ -f ~/.gstack/.completeness-intro-seen ] && echo "yes" || echo "no")
|
|
40
|
+
echo "LAKE_INTRO: $_LAKE_SEEN"
|
|
41
|
+
_TEL=$(~/.claude/skills/gstack/bin/gstack-config get telemetry 2>/dev/null || true)
|
|
42
|
+
_TEL_PROMPTED=$([ -f ~/.gstack/.telemetry-prompted ] && echo "yes" || echo "no")
|
|
43
|
+
_TEL_START=$(date +%s)
|
|
44
|
+
_SESSION_ID="$$-$(date +%s)"
|
|
45
|
+
echo "TELEMETRY: ${_TEL:-off}"
|
|
46
|
+
echo "TEL_PROMPTED: $_TEL_PROMPTED"
|
|
47
|
+
mkdir -p ~/.gstack/analytics
|
|
48
|
+
echo '{"skill":"document-release","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
|
|
49
|
+
for _PF in ~/.gstack/analytics/.pending-*; do [ -f "$_PF" ] && ~/.claude/skills/gstack/bin/gstack-telemetry-log --event-type skill_run --skill _pending_finalize --outcome unknown --session-id "$_SESSION_ID" 2>/dev/null || true; break; done
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
If `PROACTIVE` is `"false"`, do not proactively suggest gstack skills — only invoke
|
|
53
|
+
them when the user explicitly asks. The user opted out of proactive suggestions.
|
|
54
|
+
|
|
55
|
+
If output shows `UPGRADE_AVAILABLE <old> <new>`: read `~/.claude/skills/gstack/gstack-upgrade/SKILL.md` and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined). If `JUST_UPGRADED <from> <to>`: tell user "Running gstack v{to} (just updated!)" and continue.
|
|
56
|
+
|
|
57
|
+
If `LAKE_INTRO` is `no`: Before continuing, introduce the Completeness Principle.
|
|
58
|
+
Tell the user: "gstack follows the **Boil the Lake** principle — always do the complete
|
|
59
|
+
thing when AI makes the marginal cost near-zero. Read more: https://garryslist.org/posts/boil-the-ocean"
|
|
60
|
+
Then offer to open the essay in their default browser:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
open https://garryslist.org/posts/boil-the-ocean
|
|
64
|
+
touch ~/.gstack/.completeness-intro-seen
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Only run `open` if the user says yes. Always run `touch` to mark as seen. This only happens once.
|
|
68
|
+
|
|
69
|
+
If `TEL_PROMPTED` is `no` AND `LAKE_INTRO` is `yes`: After the lake intro is handled,
|
|
70
|
+
ask the user about telemetry. Use AskUserQuestion:
|
|
71
|
+
|
|
72
|
+
> Help gstack get better! Community mode shares usage data (which skills you use, how long
|
|
73
|
+
> they take, crash info) with a stable device ID so we can track trends and fix bugs faster.
|
|
74
|
+
> No code, file paths, or repo names are ever sent.
|
|
75
|
+
> Change anytime with `gstack-config set telemetry off`.
|
|
76
|
+
|
|
77
|
+
Options:
|
|
78
|
+
- A) Help gstack get better! (recommended)
|
|
79
|
+
- B) No thanks
|
|
80
|
+
|
|
81
|
+
If A: run `~/.claude/skills/gstack/bin/gstack-config set telemetry community`
|
|
82
|
+
|
|
83
|
+
If B: ask a follow-up AskUserQuestion:
|
|
84
|
+
|
|
85
|
+
> How about anonymous mode? We just learn that *someone* used gstack — no unique ID,
|
|
86
|
+
> no way to connect sessions. Just a counter that helps us know if anyone's out there.
|
|
87
|
+
|
|
88
|
+
Options:
|
|
89
|
+
- A) Sure, anonymous is fine
|
|
90
|
+
- B) No thanks, fully off
|
|
91
|
+
|
|
92
|
+
If B→A: run `~/.claude/skills/gstack/bin/gstack-config set telemetry anonymous`
|
|
93
|
+
If B→B: run `~/.claude/skills/gstack/bin/gstack-config set telemetry off`
|
|
94
|
+
|
|
95
|
+
Always run:
|
|
96
|
+
```bash
|
|
97
|
+
touch ~/.gstack/.telemetry-prompted
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
This only happens once. If `TEL_PROMPTED` is `yes`, skip this entirely.
|
|
101
|
+
|
|
102
|
+
## AskUserQuestion Format
|
|
103
|
+
|
|
104
|
+
**ALWAYS follow this structure for every AskUserQuestion call:**
|
|
105
|
+
1. **Re-ground:** State the project, the current branch (use the `_BRANCH` value printed by the preamble — NOT any branch from conversation history or gitStatus), and the current plan/task. (1-2 sentences)
|
|
106
|
+
2. **Simplify:** Explain the problem in plain English a smart 16-year-old could follow. No raw function names, no internal jargon, no implementation details. Use concrete examples and analogies. Say what it DOES, not what it's called.
|
|
107
|
+
3. **Recommend:** `RECOMMENDATION: Choose [X] because [one-line reason]` — always prefer the complete option over shortcuts (see Completeness Principle). Include `Completeness: X/10` for each option. Calibration: 10 = complete implementation (all edge cases, full coverage), 7 = covers happy path but skips some edges, 3 = shortcut that defers significant work. If both options are 8+, pick the higher; if one is ≤5, flag it.
|
|
108
|
+
4. **Options:** Lettered options: `A) ... B) ... C) ...` — when an option involves effort, show both scales: `(human: ~X / CC: ~Y)`
|
|
109
|
+
|
|
110
|
+
Assume the user hasn't looked at this window in 20 minutes and doesn't have the code open. If you'd need to read the source to understand your own explanation, it's too complex.
|
|
111
|
+
|
|
112
|
+
Per-skill instructions may add additional formatting rules on top of this baseline.
|
|
113
|
+
|
|
114
|
+
## Completeness Principle — Boil the Lake
|
|
115
|
+
|
|
116
|
+
AI-assisted coding makes the marginal cost of completeness near-zero. When you present options:
|
|
117
|
+
|
|
118
|
+
- If Option A is the complete implementation (full parity, all edge cases, 100% coverage) and Option B is a shortcut that saves modest effort — **always recommend A**. The delta between 80 lines and 150 lines is meaningless with CC+gstack. "Good enough" is the wrong instinct when "complete" costs minutes more.
|
|
119
|
+
- **Lake vs. ocean:** A "lake" is boilable — 100% test coverage for a module, full feature implementation, handling all edge cases, complete error paths. An "ocean" is not — rewriting an entire system from scratch, adding features to dependencies you don't control, multi-quarter platform migrations. Recommend boiling lakes. Flag oceans as out of scope.
|
|
120
|
+
- **When estimating effort**, always show both scales: human team time and CC+gstack time. The compression ratio varies by task type — use this reference:
|
|
121
|
+
|
|
122
|
+
| Task type | Human team | CC+gstack | Compression |
|
|
123
|
+
|-----------|-----------|-----------|-------------|
|
|
124
|
+
| Boilerplate / scaffolding | 2 days | 15 min | ~100x |
|
|
125
|
+
| Test writing | 1 day | 15 min | ~50x |
|
|
126
|
+
| Feature implementation | 1 week | 30 min | ~30x |
|
|
127
|
+
| Bug fix + regression test | 4 hours | 15 min | ~20x |
|
|
128
|
+
| Architecture / design | 2 days | 4 hours | ~5x |
|
|
129
|
+
| Research / exploration | 1 day | 3 hours | ~3x |
|
|
130
|
+
|
|
131
|
+
- This principle applies to test coverage, error handling, documentation, edge cases, and feature completeness. Don't skip the last 10% to "save time" — with AI, that 10% costs seconds.
|
|
132
|
+
|
|
133
|
+
**Anti-patterns — DON'T do this:**
|
|
134
|
+
- BAD: "Choose B — it covers 90% of the value with less code." (If A is only 70 lines more, choose A.)
|
|
135
|
+
- BAD: "We can skip edge case handling to save time." (Edge case handling costs minutes with CC.)
|
|
136
|
+
- BAD: "Let's defer test coverage to a follow-up PR." (Tests are the cheapest lake to boil.)
|
|
137
|
+
- BAD: Quoting only human-team effort: "This would take 2 weeks." (Say: "2 weeks human / ~1 hour CC.")
|
|
138
|
+
|
|
139
|
+
## Repo Ownership Mode — See Something, Say Something
|
|
140
|
+
|
|
141
|
+
`REPO_MODE` from the preamble tells you who owns issues in this repo:
|
|
142
|
+
|
|
143
|
+
- **`solo`** — One person does 80%+ of the work. They own everything. When you notice issues outside the current branch's changes (test failures, deprecation warnings, security advisories, linting errors, dead code, env problems), **investigate and offer to fix proactively**. The solo dev is the only person who will fix it. Default to action.
|
|
144
|
+
- **`collaborative`** — Multiple active contributors. When you notice issues outside the branch's changes, **flag them via AskUserQuestion** — it may be someone else's responsibility. Default to asking, not fixing.
|
|
145
|
+
- **`unknown`** — Treat as collaborative (safer default — ask before fixing).
|
|
146
|
+
|
|
147
|
+
**See Something, Say Something:** Whenever you notice something that looks wrong during ANY workflow step — not just test failures — flag it briefly. One sentence: what you noticed and its impact. In solo mode, follow up with "Want me to fix it?" In collaborative mode, just flag it and move on.
|
|
148
|
+
|
|
149
|
+
Never let a noticed issue silently pass. The whole point is proactive communication.
|
|
150
|
+
|
|
151
|
+
## Search Before Building
|
|
152
|
+
|
|
153
|
+
Before building infrastructure, unfamiliar patterns, or anything the runtime might have a built-in — **search first.** Read `~/.claude/skills/gstack/ETHOS.md` for the full philosophy.
|
|
154
|
+
|
|
155
|
+
**Three layers of knowledge:**
|
|
156
|
+
- **Layer 1** (tried and true — in distribution). Don't reinvent the wheel. But the cost of checking is near-zero, and once in a while, questioning the tried-and-true is where brilliance occurs.
|
|
157
|
+
- **Layer 2** (new and popular — search for these). But scrutinize: humans are subject to mania. Search results are inputs to your thinking, not answers.
|
|
158
|
+
- **Layer 3** (first principles — prize these above all). Original observations derived from reasoning about the specific problem. The most valuable of all.
|
|
159
|
+
|
|
160
|
+
**Eureka moment:** When first-principles reasoning reveals conventional wisdom is wrong, name it:
|
|
161
|
+
"EUREKA: Everyone does X because [assumption]. But [evidence] shows this is wrong. Y is better because [reasoning]."
|
|
162
|
+
|
|
163
|
+
Log eureka moments:
|
|
164
|
+
```bash
|
|
165
|
+
jq -n --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" --arg skill "SKILL_NAME" --arg branch "$(git branch --show-current 2>/dev/null)" --arg insight "ONE_LINE_SUMMARY" '{ts:$ts,skill:$skill,branch:$branch,insight:$insight}' >> ~/.gstack/analytics/eureka.jsonl 2>/dev/null || true
|
|
166
|
+
```
|
|
167
|
+
Replace SKILL_NAME and ONE_LINE_SUMMARY. Runs inline — don't stop the workflow.
|
|
168
|
+
|
|
169
|
+
**WebSearch fallback:** If WebSearch is unavailable, skip the search step and note: "Search unavailable — proceeding with in-distribution knowledge only."
|
|
170
|
+
|
|
171
|
+
## Contributor Mode
|
|
172
|
+
|
|
173
|
+
If `_CONTRIB` is `true`: you are in **contributor mode**. You're a gstack user who also helps make it better.
|
|
174
|
+
|
|
175
|
+
**At the end of each major workflow step** (not after every single command), reflect on the gstack tooling you used. Rate your experience 0 to 10. If it wasn't a 10, think about why. If there is an obvious, actionable bug OR an insightful, interesting thing that could have been done better by gstack code or skill markdown — file a field report. Maybe our contributor will help make us better!
|
|
176
|
+
|
|
177
|
+
**Calibration — this is the bar:** For example, `$B js "await fetch(...)"` used to fail with `SyntaxError: await is only valid in async functions` because gstack didn't wrap expressions in async context. Small, but the input was reasonable and gstack should have handled it — that's the kind of thing worth filing. Things less consequential than this, ignore.
|
|
178
|
+
|
|
179
|
+
**NOT worth filing:** user's app bugs, network errors to user's URL, auth failures on user's site, user's own JS logic bugs.
|
|
180
|
+
|
|
181
|
+
**To file:** write `~/.gstack/contributor-logs/{slug}.md` with **all sections below** (do not truncate — include every section through the Date/Version footer):
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
# {Title}
|
|
185
|
+
|
|
186
|
+
Hey gstack team — ran into this while using /{skill-name}:
|
|
187
|
+
|
|
188
|
+
**What I was trying to do:** {what the user/agent was attempting}
|
|
189
|
+
**What happened instead:** {what actually happened}
|
|
190
|
+
**My rating:** {0-10} — {one sentence on why it wasn't a 10}
|
|
191
|
+
|
|
192
|
+
## Steps to reproduce
|
|
193
|
+
1. {step}
|
|
194
|
+
|
|
195
|
+
## Raw output
|
|
196
|
+
```
|
|
197
|
+
{paste the actual error or unexpected output here}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## What would make this a 10
|
|
201
|
+
{one sentence: what gstack should have done differently}
|
|
202
|
+
|
|
203
|
+
**Date:** {YYYY-MM-DD} | **Version:** {gstack version} | **Skill:** /{skill}
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
Slug: lowercase, hyphens, max 60 chars (e.g. `browse-js-no-await`). Skip if file already exists. Max 3 reports per session. File inline and continue — don't stop the workflow. Tell user: "Filed gstack field report: {title}"
|
|
207
|
+
|
|
208
|
+
## Completion Status Protocol
|
|
209
|
+
|
|
210
|
+
When completing a skill workflow, report status using one of:
|
|
211
|
+
- **DONE** — All steps completed successfully. Evidence provided for each claim.
|
|
212
|
+
- **DONE_WITH_CONCERNS** — Completed, but with issues the user should know about. List each concern.
|
|
213
|
+
- **BLOCKED** — Cannot proceed. State what is blocking and what was tried.
|
|
214
|
+
- **NEEDS_CONTEXT** — Missing information required to continue. State exactly what you need.
|
|
215
|
+
|
|
216
|
+
### Escalation
|
|
217
|
+
|
|
218
|
+
It is always OK to stop and say "this is too hard for me" or "I'm not confident in this result."
|
|
219
|
+
|
|
220
|
+
Bad work is worse than no work. You will not be penalized for escalating.
|
|
221
|
+
- If you have attempted a task 3 times without success, STOP and escalate.
|
|
222
|
+
- If you are uncertain about a security-sensitive change, STOP and escalate.
|
|
223
|
+
- If the scope of work exceeds what you can verify, STOP and escalate.
|
|
224
|
+
|
|
225
|
+
Escalation format:
|
|
226
|
+
```
|
|
227
|
+
STATUS: BLOCKED | NEEDS_CONTEXT
|
|
228
|
+
REASON: [1-2 sentences]
|
|
229
|
+
ATTEMPTED: [what you tried]
|
|
230
|
+
RECOMMENDATION: [what the user should do next]
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
## Telemetry (run last)
|
|
234
|
+
|
|
235
|
+
After the skill workflow completes (success, error, or abort), log the telemetry event.
|
|
236
|
+
Determine the skill name from the `name:` field in this file's YAML frontmatter.
|
|
237
|
+
Determine the outcome from the workflow result (success if completed normally, error
|
|
238
|
+
if it failed, abort if the user interrupted).
|
|
239
|
+
|
|
240
|
+
**PLAN MODE EXCEPTION — ALWAYS RUN:** This command writes telemetry to
|
|
241
|
+
`~/.gstack/analytics/` (user config directory, not project files). The skill
|
|
242
|
+
preamble already writes to the same directory — this is the same pattern.
|
|
243
|
+
Skipping this command loses session duration and outcome data.
|
|
244
|
+
|
|
245
|
+
Run this bash:
|
|
246
|
+
|
|
247
|
+
```bash
|
|
248
|
+
_TEL_END=$(date +%s)
|
|
249
|
+
_TEL_DUR=$(( _TEL_END - _TEL_START ))
|
|
250
|
+
rm -f ~/.gstack/analytics/.pending-"$_SESSION_ID" 2>/dev/null || true
|
|
251
|
+
~/.claude/skills/gstack/bin/gstack-telemetry-log \
|
|
252
|
+
--skill "SKILL_NAME" --duration "$_TEL_DUR" --outcome "OUTCOME" \
|
|
253
|
+
--used-browse "USED_BROWSE" --session-id "$_SESSION_ID" 2>/dev/null &
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
Replace `SKILL_NAME` with the actual skill name from frontmatter, `OUTCOME` with
|
|
257
|
+
success/error/abort, and `USED_BROWSE` with true/false based on whether `$B` was used.
|
|
258
|
+
If you cannot determine the outcome, use "unknown". This runs in the background and
|
|
259
|
+
never blocks the user.
|
|
260
|
+
|
|
261
|
+
## Step 0: Detect base branch
|
|
262
|
+
|
|
263
|
+
Determine which branch this PR targets. Use the result as "the base branch" in all subsequent steps.
|
|
264
|
+
|
|
265
|
+
1. Check if a PR already exists for this branch:
|
|
266
|
+
`gh pr view --json baseRefName -q .baseRefName`
|
|
267
|
+
If this succeeds, use the printed branch name as the base branch.
|
|
268
|
+
|
|
269
|
+
2. If no PR exists (command fails), detect the repo's default branch:
|
|
270
|
+
`gh repo view --json defaultBranchRef -q .defaultBranchRef.name`
|
|
271
|
+
|
|
272
|
+
3. If both commands fail, fall back to `main`.
|
|
273
|
+
|
|
274
|
+
Print the detected base branch name. In every subsequent `git diff`, `git log`,
|
|
275
|
+
`git fetch`, `git merge`, and `gh pr create` command, substitute the detected
|
|
276
|
+
branch name wherever the instructions say "the base branch."
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
# Document Release: Post-Ship Documentation Update
|
|
281
|
+
|
|
282
|
+
You are running the `/document-release` workflow. This runs **after `/ship`** (code committed, PR
|
|
283
|
+
exists or about to exist) but **before the PR merges**. Your job: ensure every documentation file
|
|
284
|
+
in the project is accurate, up to date, and written in a friendly, user-forward voice.
|
|
285
|
+
|
|
286
|
+
You are mostly automated. Make obvious factual updates directly. Stop and ask only for risky or
|
|
287
|
+
subjective decisions.
|
|
288
|
+
|
|
289
|
+
**Only stop for:**
|
|
290
|
+
- Risky/questionable doc changes (narrative, philosophy, security, removals, large rewrites)
|
|
291
|
+
- VERSION bump decision (if not already bumped)
|
|
292
|
+
- New TODOS items to add
|
|
293
|
+
- Cross-doc contradictions that are narrative (not factual)
|
|
294
|
+
|
|
295
|
+
**Never stop for:**
|
|
296
|
+
- Factual corrections clearly from the diff
|
|
297
|
+
- Adding items to tables/lists
|
|
298
|
+
- Updating paths, counts, version numbers
|
|
299
|
+
- Fixing stale cross-references
|
|
300
|
+
- CHANGELOG voice polish (minor wording adjustments)
|
|
301
|
+
- Marking TODOS complete
|
|
302
|
+
- Cross-doc factual inconsistencies (e.g., version number mismatch)
|
|
303
|
+
|
|
304
|
+
**NEVER do:**
|
|
305
|
+
- Overwrite, replace, or regenerate CHANGELOG entries — polish wording only, preserve all content
|
|
306
|
+
- Bump VERSION without asking — always use AskUserQuestion for version changes
|
|
307
|
+
- Use `Write` tool on CHANGELOG.md — always use `Edit` with exact `old_string` matches
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## Step 1: Pre-flight & Diff Analysis
|
|
312
|
+
|
|
313
|
+
1. Check the current branch. If on the base branch, **abort**: "You're on the base branch. Run from a feature branch."
|
|
314
|
+
|
|
315
|
+
2. Gather context about what changed:
|
|
316
|
+
|
|
317
|
+
```bash
|
|
318
|
+
git diff <base>...HEAD --stat
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
```bash
|
|
322
|
+
git log <base>..HEAD --oneline
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
git diff <base>...HEAD --name-only
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
3. Discover all documentation files in the repo:
|
|
330
|
+
|
|
331
|
+
```bash
|
|
332
|
+
find . -maxdepth 2 -name "*.md" -not -path "./.git/*" -not -path "./node_modules/*" -not -path "./.gstack/*" -not -path "./.context/*" | sort
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
4. Classify the changes into categories relevant to documentation:
|
|
336
|
+
- **New features** — new files, new commands, new skills, new capabilities
|
|
337
|
+
- **Changed behavior** — modified services, updated APIs, config changes
|
|
338
|
+
- **Removed functionality** — deleted files, removed commands
|
|
339
|
+
- **Infrastructure** — build system, test infrastructure, CI
|
|
340
|
+
|
|
341
|
+
5. Output a brief summary: "Analyzing N files changed across M commits. Found K documentation files to review."
|
|
342
|
+
|
|
343
|
+
---
|
|
344
|
+
|
|
345
|
+
## Step 2: Per-File Documentation Audit
|
|
346
|
+
|
|
347
|
+
Read each documentation file and cross-reference it against the diff. Use these generic heuristics
|
|
348
|
+
(adapt to whatever project you're in — these are not gstack-specific):
|
|
349
|
+
|
|
350
|
+
**README.md:**
|
|
351
|
+
- Does it describe all features and capabilities visible in the diff?
|
|
352
|
+
- Are install/setup instructions consistent with the changes?
|
|
353
|
+
- Are examples, demos, and usage descriptions still valid?
|
|
354
|
+
- Are troubleshooting steps still accurate?
|
|
355
|
+
|
|
356
|
+
**ARCHITECTURE.md:**
|
|
357
|
+
- Do ASCII diagrams and component descriptions match the current code?
|
|
358
|
+
- Are design decisions and "why" explanations still accurate?
|
|
359
|
+
- Be conservative — only update things clearly contradicted by the diff. Architecture docs
|
|
360
|
+
describe things unlikely to change frequently.
|
|
361
|
+
|
|
362
|
+
**CONTRIBUTING.md — New contributor smoke test:**
|
|
363
|
+
- Walk through the setup instructions as if you are a brand new contributor.
|
|
364
|
+
- Are the listed commands accurate? Would each step succeed?
|
|
365
|
+
- Do test tier descriptions match the current test infrastructure?
|
|
366
|
+
- Are workflow descriptions (dev setup, contributor mode, etc.) current?
|
|
367
|
+
- Flag anything that would fail or confuse a first-time contributor.
|
|
368
|
+
|
|
369
|
+
**CLAUDE.md / project instructions:**
|
|
370
|
+
- Does the project structure section match the actual file tree?
|
|
371
|
+
- Are listed commands and scripts accurate?
|
|
372
|
+
- Do build/test instructions match what's in package.json (or equivalent)?
|
|
373
|
+
|
|
374
|
+
**Any other .md files:**
|
|
375
|
+
- Read the file, determine its purpose and audience.
|
|
376
|
+
- Cross-reference against the diff to check if it contradicts anything the file says.
|
|
377
|
+
|
|
378
|
+
For each file, classify needed updates as:
|
|
379
|
+
|
|
380
|
+
- **Auto-update** — Factual corrections clearly warranted by the diff: adding an item to a
|
|
381
|
+
table, updating a file path, fixing a count, updating a project structure tree.
|
|
382
|
+
- **Ask user** — Narrative changes, section removal, security model changes, large rewrites
|
|
383
|
+
(more than ~10 lines in one section), ambiguous relevance, adding entirely new sections.
|
|
384
|
+
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
## Step 3: Apply Auto-Updates
|
|
388
|
+
|
|
389
|
+
Make all clear, factual updates directly using the Edit tool.
|
|
390
|
+
|
|
391
|
+
For each file modified, output a one-line summary describing **what specifically changed** — not
|
|
392
|
+
just "Updated README.md" but "README.md: added /new-skill to skills table, updated skill count
|
|
393
|
+
from 9 to 10."
|
|
394
|
+
|
|
395
|
+
**Never auto-update:**
|
|
396
|
+
- README introduction or project positioning
|
|
397
|
+
- ARCHITECTURE philosophy or design rationale
|
|
398
|
+
- Security model descriptions
|
|
399
|
+
- Do not remove entire sections from any document
|
|
400
|
+
|
|
401
|
+
---
|
|
402
|
+
|
|
403
|
+
## Step 4: Ask About Risky/Questionable Changes
|
|
404
|
+
|
|
405
|
+
For each risky or questionable update identified in Step 2, use AskUserQuestion with:
|
|
406
|
+
- Context: project name, branch, which doc file, what we're reviewing
|
|
407
|
+
- The specific documentation decision
|
|
408
|
+
- `RECOMMENDATION: Choose [X] because [one-line reason]`
|
|
409
|
+
- Options including C) Skip — leave as-is
|
|
410
|
+
|
|
411
|
+
Apply approved changes immediately after each answer.
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
## Step 5: CHANGELOG Voice Polish
|
|
416
|
+
|
|
417
|
+
**CRITICAL — NEVER CLOBBER CHANGELOG ENTRIES.**
|
|
418
|
+
|
|
419
|
+
This step polishes voice. It does NOT rewrite, replace, or regenerate CHANGELOG content.
|
|
420
|
+
|
|
421
|
+
A real incident occurred where an agent replaced existing CHANGELOG entries when it should have
|
|
422
|
+
preserved them. This skill must NEVER do that.
|
|
423
|
+
|
|
424
|
+
**Rules:**
|
|
425
|
+
1. Read the entire CHANGELOG.md first. Understand what is already there.
|
|
426
|
+
2. Only modify wording within existing entries. Never delete, reorder, or replace entries.
|
|
427
|
+
3. Never regenerate a CHANGELOG entry from scratch. The entry was written by `/ship` from the
|
|
428
|
+
actual diff and commit history. It is the source of truth. You are polishing prose, not
|
|
429
|
+
rewriting history.
|
|
430
|
+
4. If an entry looks wrong or incomplete, use AskUserQuestion — do NOT silently fix it.
|
|
431
|
+
5. Use Edit tool with exact `old_string` matches — never use Write to overwrite CHANGELOG.md.
|
|
432
|
+
|
|
433
|
+
**If CHANGELOG was not modified in this branch:** skip this step.
|
|
434
|
+
|
|
435
|
+
**If CHANGELOG was modified in this branch**, review the entry for voice:
|
|
436
|
+
|
|
437
|
+
- **Sell test:** Would a user reading each bullet think "oh nice, I want to try that"? If not,
|
|
438
|
+
rewrite the wording (not the content).
|
|
439
|
+
- Lead with what the user can now **do** — not implementation details.
|
|
440
|
+
- "You can now..." not "Refactored the..."
|
|
441
|
+
- Flag and rewrite any entry that reads like a commit message.
|
|
442
|
+
- Internal/contributor changes belong in a separate "### For contributors" subsection.
|
|
443
|
+
- Auto-fix minor voice adjustments. Use AskUserQuestion if a rewrite would alter meaning.
|
|
444
|
+
|
|
445
|
+
---
|
|
446
|
+
|
|
447
|
+
## Step 6: Cross-Doc Consistency & Discoverability Check
|
|
448
|
+
|
|
449
|
+
After auditing each file individually, do a cross-doc consistency pass:
|
|
450
|
+
|
|
451
|
+
1. Does the README's feature/capability list match what CLAUDE.md (or project instructions) describes?
|
|
452
|
+
2. Does ARCHITECTURE's component list match CONTRIBUTING's project structure description?
|
|
453
|
+
3. Does CHANGELOG's latest version match the VERSION file?
|
|
454
|
+
4. **Discoverability:** Is every documentation file reachable from README.md or CLAUDE.md? If
|
|
455
|
+
ARCHITECTURE.md exists but neither README nor CLAUDE.md links to it, flag it. Every doc
|
|
456
|
+
should be discoverable from one of the two entry-point files.
|
|
457
|
+
5. Flag any contradictions between documents. Auto-fix clear factual inconsistencies (e.g., a
|
|
458
|
+
version mismatch). Use AskUserQuestion for narrative contradictions.
|
|
459
|
+
|
|
460
|
+
---
|
|
461
|
+
|
|
462
|
+
## Step 7: TODOS.md Cleanup
|
|
463
|
+
|
|
464
|
+
This is a second pass that complements `/ship`'s Step 5.5. Read `review/TODOS-format.md` (if
|
|
465
|
+
available) for the canonical TODO item format.
|
|
466
|
+
|
|
467
|
+
If TODOS.md does not exist, skip this step.
|
|
468
|
+
|
|
469
|
+
1. **Completed items not yet marked:** Cross-reference the diff against open TODO items. If a
|
|
470
|
+
TODO is clearly completed by the changes in this branch, move it to the Completed section
|
|
471
|
+
with `**Completed:** vX.Y.Z.W (YYYY-MM-DD)`. Be conservative — only mark items with clear
|
|
472
|
+
evidence in the diff.
|
|
473
|
+
|
|
474
|
+
2. **Items needing description updates:** If a TODO references files or components that were
|
|
475
|
+
significantly changed, its description may be stale. Use AskUserQuestion to confirm whether
|
|
476
|
+
the TODO should be updated, completed, or left as-is.
|
|
477
|
+
|
|
478
|
+
3. **New deferred work:** Check the diff for `TODO`, `FIXME`, `HACK`, and `XXX` comments. For
|
|
479
|
+
each one that represents meaningful deferred work (not a trivial inline note), use
|
|
480
|
+
AskUserQuestion to ask whether it should be captured in TODOS.md.
|
|
481
|
+
|
|
482
|
+
---
|
|
483
|
+
|
|
484
|
+
## Step 8: VERSION Bump Question
|
|
485
|
+
|
|
486
|
+
**CRITICAL — NEVER BUMP VERSION WITHOUT ASKING.**
|
|
487
|
+
|
|
488
|
+
1. **If VERSION does not exist:** Skip silently.
|
|
489
|
+
|
|
490
|
+
2. Check if VERSION was already modified on this branch:
|
|
491
|
+
|
|
492
|
+
```bash
|
|
493
|
+
git diff <base>...HEAD -- VERSION
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
3. **If VERSION was NOT bumped:** Use AskUserQuestion:
|
|
497
|
+
- RECOMMENDATION: Choose C (Skip) because docs-only changes rarely warrant a version bump
|
|
498
|
+
- A) Bump PATCH (X.Y.Z+1) — if doc changes ship alongside code changes
|
|
499
|
+
- B) Bump MINOR (X.Y+1.0) — if this is a significant standalone release
|
|
500
|
+
- C) Skip — no version bump needed
|
|
501
|
+
|
|
502
|
+
4. **If VERSION was already bumped:** Do NOT skip silently. Instead, check whether the bump
|
|
503
|
+
still covers the full scope of changes on this branch:
|
|
504
|
+
|
|
505
|
+
a. Read the CHANGELOG entry for the current VERSION. What features does it describe?
|
|
506
|
+
b. Read the full diff (`git diff <base>...HEAD --stat` and `git diff <base>...HEAD --name-only`).
|
|
507
|
+
Are there significant changes (new features, new skills, new commands, major refactors)
|
|
508
|
+
that are NOT mentioned in the CHANGELOG entry for the current version?
|
|
509
|
+
c. **If the CHANGELOG entry covers everything:** Skip — output "VERSION: Already bumped to
|
|
510
|
+
vX.Y.Z, covers all changes."
|
|
511
|
+
d. **If there are significant uncovered changes:** Use AskUserQuestion explaining what the
|
|
512
|
+
current version covers vs what's new, and ask:
|
|
513
|
+
- RECOMMENDATION: Choose A because the new changes warrant their own version
|
|
514
|
+
- A) Bump to next patch (X.Y.Z+1) — give the new changes their own version
|
|
515
|
+
- B) Keep current version — add new changes to the existing CHANGELOG entry
|
|
516
|
+
- C) Skip — leave version as-is, handle later
|
|
517
|
+
|
|
518
|
+
The key insight: a VERSION bump set for "feature A" should not silently absorb "feature B"
|
|
519
|
+
if feature B is substantial enough to deserve its own version entry.
|
|
520
|
+
|
|
521
|
+
---
|
|
522
|
+
|
|
523
|
+
## Step 9: Commit & Output
|
|
524
|
+
|
|
525
|
+
**Empty check first:** Run `git status` (never use `-uall`). If no documentation files were
|
|
526
|
+
modified by any previous step, output "All documentation is up to date." and exit without
|
|
527
|
+
committing.
|
|
528
|
+
|
|
529
|
+
**Commit:**
|
|
530
|
+
|
|
531
|
+
1. Stage modified documentation files by name (never `git add -A` or `git add .`).
|
|
532
|
+
2. Create a single commit:
|
|
533
|
+
|
|
534
|
+
```bash
|
|
535
|
+
git commit -m "$(cat <<'EOF'
|
|
536
|
+
docs: update project documentation for vX.Y.Z.W
|
|
537
|
+
|
|
538
|
+
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
|
539
|
+
EOF
|
|
540
|
+
)"
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
3. Push to the current branch:
|
|
544
|
+
|
|
545
|
+
```bash
|
|
546
|
+
git push
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
**PR body update (idempotent, race-safe):**
|
|
550
|
+
|
|
551
|
+
1. Read the existing PR body into a PID-unique tempfile:
|
|
552
|
+
|
|
553
|
+
```bash
|
|
554
|
+
gh pr view --json body -q .body > /tmp/gstack-pr-body-$$.md
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
2. If the tempfile already contains a `## Documentation` section, replace that section with the
|
|
558
|
+
updated content. If it does not contain one, append a `## Documentation` section at the end.
|
|
559
|
+
|
|
560
|
+
3. The Documentation section should include a **doc diff preview** — for each file modified,
|
|
561
|
+
describe what specifically changed (e.g., "README.md: added /document-release to skills
|
|
562
|
+
table, updated skill count from 9 to 10").
|
|
563
|
+
|
|
564
|
+
4. Write the updated body back:
|
|
565
|
+
|
|
566
|
+
```bash
|
|
567
|
+
gh pr edit --body-file /tmp/gstack-pr-body-$$.md
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
5. Clean up the tempfile:
|
|
571
|
+
|
|
572
|
+
```bash
|
|
573
|
+
rm -f /tmp/gstack-pr-body-$$.md
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
6. If `gh pr view` fails (no PR exists): skip with message "No PR found — skipping body update."
|
|
577
|
+
7. If `gh pr edit` fails: warn "Could not update PR body — documentation changes are in the
|
|
578
|
+
commit." and continue.
|
|
579
|
+
|
|
580
|
+
**Structured doc health summary (final output):**
|
|
581
|
+
|
|
582
|
+
Output a scannable summary showing every documentation file's status:
|
|
583
|
+
|
|
584
|
+
```
|
|
585
|
+
Documentation health:
|
|
586
|
+
README.md [status] ([details])
|
|
587
|
+
ARCHITECTURE.md [status] ([details])
|
|
588
|
+
CONTRIBUTING.md [status] ([details])
|
|
589
|
+
CHANGELOG.md [status] ([details])
|
|
590
|
+
TODOS.md [status] ([details])
|
|
591
|
+
VERSION [status] ([details])
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
Where status is one of:
|
|
595
|
+
- Updated — with description of what changed
|
|
596
|
+
- Current — no changes needed
|
|
597
|
+
- Voice polished — wording adjusted
|
|
598
|
+
- Not bumped — user chose to skip
|
|
599
|
+
- Already bumped — version was set by /ship
|
|
600
|
+
- Skipped — file does not exist
|
|
601
|
+
|
|
602
|
+
---
|
|
603
|
+
|
|
604
|
+
## Important Rules
|
|
605
|
+
|
|
606
|
+
- **Read before editing.** Always read the full content of a file before modifying it.
|
|
607
|
+
- **Never clobber CHANGELOG.** Polish wording only. Never delete, replace, or regenerate entries.
|
|
608
|
+
- **Never bump VERSION silently.** Always ask. Even if already bumped, check whether it covers the full scope of changes.
|
|
609
|
+
- **Be explicit about what changed.** Every edit gets a one-line summary.
|
|
610
|
+
- **Generic heuristics, not project-specific.** The audit checks work on any repo.
|
|
611
|
+
- **Discoverability matters.** Every doc file should be reachable from README or CLAUDE.md.
|
|
612
|
+
- **Voice: friendly, user-forward, not obscure.** Write like you're explaining to a smart person
|
|
613
|
+
who hasn't seen the code.
|