@runchr/gstack-antigravity 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/rules/ETHOS.md +129 -0
- package/.agents/rules/global-gstack.md +117 -0
- package/.agents/rules/persona-gstack-autoplan.md +14 -0
- package/.agents/rules/persona-gstack-benchmark.md +14 -0
- package/.agents/rules/persona-gstack-browse.md +14 -0
- package/.agents/rules/persona-gstack-canary.md +14 -0
- package/.agents/rules/persona-gstack-careful.md +14 -0
- package/.agents/rules/persona-gstack-codex.md +14 -0
- package/.agents/rules/persona-gstack-cso.md +14 -0
- package/.agents/rules/persona-gstack-design-consultation.md +14 -0
- package/.agents/rules/persona-gstack-design-review.md +14 -0
- package/.agents/rules/persona-gstack-document-release.md +14 -0
- package/.agents/rules/persona-gstack-freeze.md +14 -0
- package/.agents/rules/persona-gstack-gstack-upgrade.md +14 -0
- package/.agents/rules/persona-gstack-guard.md +14 -0
- package/.agents/rules/persona-gstack-investigate.md +14 -0
- package/.agents/rules/persona-gstack-land-and-deploy.md +14 -0
- package/.agents/rules/persona-gstack-office-hours.md +14 -0
- package/.agents/rules/persona-gstack-plan-ceo-review.md +14 -0
- package/.agents/rules/persona-gstack-plan-design-review.md +14 -0
- package/.agents/rules/persona-gstack-plan-eng-review.md +14 -0
- package/.agents/rules/persona-gstack-qa-only.md +14 -0
- package/.agents/rules/persona-gstack-qa.md +14 -0
- package/.agents/rules/persona-gstack-retro.md +14 -0
- package/.agents/rules/persona-gstack-review.md +14 -0
- package/.agents/rules/persona-gstack-setup-browser-cookies.md +14 -0
- package/.agents/rules/persona-gstack-setup-deploy.md +14 -0
- package/.agents/rules/persona-gstack-ship.md +14 -0
- package/.agents/rules/persona-gstack-unfreeze.md +14 -0
- package/.agents/rules/persona-gstack.md +40 -0
- package/.agents/rules/recursive-identities.md +22 -0
- package/.agents/workflows/autoplan.md +30 -0
- package/.agents/workflows/benchmark.md +31 -0
- package/.agents/workflows/browse.md +26 -0
- package/.agents/workflows/canary.md +33 -0
- package/.agents/workflows/careful.md +22 -0
- package/.agents/workflows/codex.md +36 -0
- package/.agents/workflows/cso.md +29 -0
- package/.agents/workflows/design-consultation.md +28 -0
- package/.agents/workflows/design-review.md +28 -0
- package/.agents/workflows/document-release.md +32 -0
- package/.agents/workflows/freeze.md +17 -0
- package/.agents/workflows/gstack-upgrade.md +54 -0
- package/.agents/workflows/gstack.md +56 -0
- package/.agents/workflows/guard.md +18 -0
- package/.agents/workflows/investigate.md +37 -0
- package/.agents/workflows/land-and-deploy.md +35 -0
- package/.agents/workflows/office-hours.md +27 -0
- package/.agents/workflows/plan-ceo-review.md +34 -0
- package/.agents/workflows/plan-design-review.md +31 -0
- package/.agents/workflows/plan-eng-review.md +28 -0
- package/.agents/workflows/qa-only.md +28 -0
- package/.agents/workflows/qa.md +73 -0
- package/.agents/workflows/retro.md +34 -0
- package/.agents/workflows/review.md +30 -0
- package/.agents/workflows/setup-browser-cookies.md +15 -0
- package/.agents/workflows/setup-cookies.md +8 -0
- package/.agents/workflows/setup-deploy.md +21 -0
- package/.agents/workflows/ship.md +93 -0
- package/.agents/workflows/unfreeze.md +12 -0
- package/LICENSE +22 -0
- package/README.md +189 -0
- package/README_KO.md +191 -0
- package/bin/install.js +105 -0
- package/gstack-origin/.agents/skills/gstack/SKILL.md +651 -0
- package/gstack-origin/.agents/skills/gstack-autoplan/SKILL.md +678 -0
- package/gstack-origin/.agents/skills/gstack-benchmark/SKILL.md +482 -0
- package/gstack-origin/.agents/skills/gstack-browse/SKILL.md +511 -0
- package/gstack-origin/.agents/skills/gstack-canary/SKILL.md +486 -0
- package/gstack-origin/.agents/skills/gstack-careful/SKILL.md +50 -0
- package/gstack-origin/.agents/skills/gstack-cso/SKILL.md +607 -0
- package/gstack-origin/.agents/skills/gstack-design-consultation/SKILL.md +615 -0
- package/gstack-origin/.agents/skills/gstack-design-review/SKILL.md +988 -0
- package/gstack-origin/.agents/skills/gstack-document-release/SKILL.md +604 -0
- package/gstack-origin/.agents/skills/gstack-freeze/SKILL.md +67 -0
- package/gstack-origin/.agents/skills/gstack-guard/SKILL.md +62 -0
- package/gstack-origin/.agents/skills/gstack-investigate/SKILL.md +415 -0
- package/gstack-origin/.agents/skills/gstack-land-and-deploy/SKILL.md +873 -0
- package/gstack-origin/.agents/skills/gstack-office-hours/SKILL.md +986 -0
- package/gstack-origin/.agents/skills/gstack-plan-ceo-review/SKILL.md +1268 -0
- package/gstack-origin/.agents/skills/gstack-plan-design-review/SKILL.md +668 -0
- package/gstack-origin/.agents/skills/gstack-plan-eng-review/SKILL.md +826 -0
- package/gstack-origin/.agents/skills/gstack-qa/SKILL.md +1006 -0
- package/gstack-origin/.agents/skills/gstack-qa-only/SKILL.md +626 -0
- package/gstack-origin/.agents/skills/gstack-retro/SKILL.md +1065 -0
- package/gstack-origin/.agents/skills/gstack-review/SKILL.md +704 -0
- package/gstack-origin/.agents/skills/gstack-setup-browser-cookies/SKILL.md +325 -0
- package/gstack-origin/.agents/skills/gstack-setup-deploy/SKILL.md +450 -0
- package/gstack-origin/.agents/skills/gstack-ship/SKILL.md +1312 -0
- package/gstack-origin/.agents/skills/gstack-unfreeze/SKILL.md +36 -0
- package/gstack-origin/.agents/skills/gstack-upgrade/SKILL.md +220 -0
- package/gstack-origin/.env.example +5 -0
- package/gstack-origin/.github/workflows/skill-docs.yml +17 -0
- package/gstack-origin/AGENTS.md +49 -0
- package/gstack-origin/ARCHITECTURE.md +359 -0
- package/gstack-origin/BROWSER.md +271 -0
- package/gstack-origin/CHANGELOG.md +800 -0
- package/gstack-origin/CLAUDE.md +284 -0
- package/gstack-origin/CONTRIBUTING.md +370 -0
- package/gstack-origin/ETHOS.md +129 -0
- package/gstack-origin/LICENSE +21 -0
- package/gstack-origin/README.md +228 -0
- package/gstack-origin/SKILL.md +657 -0
- package/gstack-origin/SKILL.md.tmpl +281 -0
- package/gstack-origin/TODOS.md +564 -0
- package/gstack-origin/VERSION +1 -0
- package/gstack-origin/autoplan/SKILL.md +689 -0
- package/gstack-origin/autoplan/SKILL.md.tmpl +416 -0
- package/gstack-origin/benchmark/SKILL.md +489 -0
- package/gstack-origin/benchmark/SKILL.md.tmpl +233 -0
- package/gstack-origin/bin/dev-setup +68 -0
- package/gstack-origin/bin/dev-teardown +56 -0
- package/gstack-origin/bin/gstack-analytics +191 -0
- package/gstack-origin/bin/gstack-community-dashboard +113 -0
- package/gstack-origin/bin/gstack-config +38 -0
- package/gstack-origin/bin/gstack-diff-scope +71 -0
- package/gstack-origin/bin/gstack-global-discover.ts +591 -0
- package/gstack-origin/bin/gstack-repo-mode +93 -0
- package/gstack-origin/bin/gstack-review-log +9 -0
- package/gstack-origin/bin/gstack-review-read +12 -0
- package/gstack-origin/bin/gstack-slug +15 -0
- package/gstack-origin/bin/gstack-telemetry-log +158 -0
- package/gstack-origin/bin/gstack-telemetry-sync +127 -0
- package/gstack-origin/bin/gstack-update-check +196 -0
- package/gstack-origin/browse/SKILL.md +517 -0
- package/gstack-origin/browse/SKILL.md.tmpl +141 -0
- package/gstack-origin/browse/bin/find-browse +21 -0
- package/gstack-origin/browse/bin/remote-slug +14 -0
- package/gstack-origin/browse/scripts/build-node-server.sh +48 -0
- package/gstack-origin/browse/src/browser-manager.ts +634 -0
- package/gstack-origin/browse/src/buffers.ts +137 -0
- package/gstack-origin/browse/src/bun-polyfill.cjs +109 -0
- package/gstack-origin/browse/src/cli.ts +420 -0
- package/gstack-origin/browse/src/commands.ts +111 -0
- package/gstack-origin/browse/src/config.ts +150 -0
- package/gstack-origin/browse/src/cookie-import-browser.ts +417 -0
- package/gstack-origin/browse/src/cookie-picker-routes.ts +207 -0
- package/gstack-origin/browse/src/cookie-picker-ui.ts +541 -0
- package/gstack-origin/browse/src/find-browse.ts +61 -0
- package/gstack-origin/browse/src/meta-commands.ts +269 -0
- package/gstack-origin/browse/src/platform.ts +17 -0
- package/gstack-origin/browse/src/read-commands.ts +335 -0
- package/gstack-origin/browse/src/server.ts +369 -0
- package/gstack-origin/browse/src/snapshot.ts +398 -0
- package/gstack-origin/browse/src/url-validation.ts +91 -0
- package/gstack-origin/browse/src/write-commands.ts +352 -0
- package/gstack-origin/browse/test/bun-polyfill.test.ts +72 -0
- package/gstack-origin/browse/test/commands.test.ts +1836 -0
- package/gstack-origin/browse/test/config.test.ts +250 -0
- package/gstack-origin/browse/test/cookie-import-browser.test.ts +397 -0
- package/gstack-origin/browse/test/cookie-picker-routes.test.ts +205 -0
- package/gstack-origin/browse/test/find-browse.test.ts +50 -0
- package/gstack-origin/browse/test/fixtures/basic.html +33 -0
- package/gstack-origin/browse/test/fixtures/cursor-interactive.html +22 -0
- package/gstack-origin/browse/test/fixtures/dialog.html +15 -0
- package/gstack-origin/browse/test/fixtures/empty.html +2 -0
- package/gstack-origin/browse/test/fixtures/forms.html +55 -0
- package/gstack-origin/browse/test/fixtures/qa-eval-checkout.html +108 -0
- package/gstack-origin/browse/test/fixtures/qa-eval-spa.html +98 -0
- package/gstack-origin/browse/test/fixtures/qa-eval.html +51 -0
- package/gstack-origin/browse/test/fixtures/responsive.html +49 -0
- package/gstack-origin/browse/test/fixtures/snapshot.html +55 -0
- package/gstack-origin/browse/test/fixtures/spa.html +24 -0
- package/gstack-origin/browse/test/fixtures/states.html +17 -0
- package/gstack-origin/browse/test/fixtures/upload.html +25 -0
- package/gstack-origin/browse/test/gstack-config.test.ts +125 -0
- package/gstack-origin/browse/test/gstack-update-check.test.ts +467 -0
- package/gstack-origin/browse/test/handoff.test.ts +235 -0
- package/gstack-origin/browse/test/path-validation.test.ts +63 -0
- package/gstack-origin/browse/test/platform.test.ts +37 -0
- package/gstack-origin/browse/test/snapshot.test.ts +467 -0
- package/gstack-origin/browse/test/test-server.ts +57 -0
- package/gstack-origin/browse/test/url-validation.test.ts +72 -0
- package/gstack-origin/canary/SKILL.md +493 -0
- package/gstack-origin/canary/SKILL.md.tmpl +220 -0
- package/gstack-origin/careful/SKILL.md +59 -0
- package/gstack-origin/careful/SKILL.md.tmpl +57 -0
- package/gstack-origin/careful/bin/check-careful.sh +112 -0
- package/gstack-origin/codex/SKILL.md +677 -0
- package/gstack-origin/codex/SKILL.md.tmpl +356 -0
- package/gstack-origin/conductor.json +6 -0
- package/gstack-origin/cso/SKILL.md +615 -0
- package/gstack-origin/cso/SKILL.md.tmpl +376 -0
- package/gstack-origin/design-consultation/SKILL.md +625 -0
- package/gstack-origin/design-consultation/SKILL.md.tmpl +369 -0
- package/gstack-origin/design-review/SKILL.md +998 -0
- package/gstack-origin/design-review/SKILL.md.tmpl +262 -0
- package/gstack-origin/docs/images/github-2013.png +0 -0
- package/gstack-origin/docs/images/github-2026.png +0 -0
- package/gstack-origin/docs/skills.md +877 -0
- package/gstack-origin/document-release/SKILL.md +613 -0
- package/gstack-origin/document-release/SKILL.md.tmpl +357 -0
- package/gstack-origin/freeze/SKILL.md +82 -0
- package/gstack-origin/freeze/SKILL.md.tmpl +80 -0
- package/gstack-origin/freeze/bin/check-freeze.sh +68 -0
- package/gstack-origin/gstack-upgrade/SKILL.md +226 -0
- package/gstack-origin/gstack-upgrade/SKILL.md.tmpl +224 -0
- package/gstack-origin/guard/SKILL.md +82 -0
- package/gstack-origin/guard/SKILL.md.tmpl +80 -0
- package/gstack-origin/investigate/SKILL.md +435 -0
- package/gstack-origin/investigate/SKILL.md.tmpl +196 -0
- package/gstack-origin/land-and-deploy/SKILL.md +880 -0
- package/gstack-origin/land-and-deploy/SKILL.md.tmpl +575 -0
- package/gstack-origin/office-hours/SKILL.md +996 -0
- package/gstack-origin/office-hours/SKILL.md.tmpl +624 -0
- package/gstack-origin/package.json +55 -0
- package/gstack-origin/plan-ceo-review/SKILL.md +1277 -0
- package/gstack-origin/plan-ceo-review/SKILL.md.tmpl +838 -0
- package/gstack-origin/plan-design-review/SKILL.md +676 -0
- package/gstack-origin/plan-design-review/SKILL.md.tmpl +314 -0
- package/gstack-origin/plan-eng-review/SKILL.md +836 -0
- package/gstack-origin/plan-eng-review/SKILL.md.tmpl +279 -0
- package/gstack-origin/qa/SKILL.md +1016 -0
- package/gstack-origin/qa/SKILL.md.tmpl +316 -0
- package/gstack-origin/qa/references/issue-taxonomy.md +85 -0
- package/gstack-origin/qa/templates/qa-report-template.md +126 -0
- package/gstack-origin/qa-only/SKILL.md +633 -0
- package/gstack-origin/qa-only/SKILL.md.tmpl +101 -0
- package/gstack-origin/retro/SKILL.md +1072 -0
- package/gstack-origin/retro/SKILL.md.tmpl +833 -0
- package/gstack-origin/review/SKILL.md +849 -0
- package/gstack-origin/review/SKILL.md.tmpl +259 -0
- package/gstack-origin/review/TODOS-format.md +62 -0
- package/gstack-origin/review/checklist.md +190 -0
- package/gstack-origin/review/design-checklist.md +132 -0
- package/gstack-origin/review/greptile-triage.md +220 -0
- package/gstack-origin/scripts/analytics.ts +190 -0
- package/gstack-origin/scripts/dev-skill.ts +82 -0
- package/gstack-origin/scripts/eval-compare.ts +96 -0
- package/gstack-origin/scripts/eval-list.ts +116 -0
- package/gstack-origin/scripts/eval-select.ts +86 -0
- package/gstack-origin/scripts/eval-summary.ts +187 -0
- package/gstack-origin/scripts/eval-watch.ts +172 -0
- package/gstack-origin/scripts/gen-skill-docs.ts +2414 -0
- package/gstack-origin/scripts/skill-check.ts +167 -0
- package/gstack-origin/setup +269 -0
- package/gstack-origin/setup-browser-cookies/SKILL.md +330 -0
- package/gstack-origin/setup-browser-cookies/SKILL.md.tmpl +74 -0
- package/gstack-origin/setup-deploy/SKILL.md +459 -0
- package/gstack-origin/setup-deploy/SKILL.md.tmpl +220 -0
- package/gstack-origin/ship/SKILL.md +1457 -0
- package/gstack-origin/ship/SKILL.md.tmpl +528 -0
- package/gstack-origin/supabase/config.sh +10 -0
- package/gstack-origin/supabase/functions/community-pulse/index.ts +59 -0
- package/gstack-origin/supabase/functions/telemetry-ingest/index.ts +135 -0
- package/gstack-origin/supabase/functions/update-check/index.ts +37 -0
- package/gstack-origin/supabase/migrations/001_telemetry.sql +89 -0
- package/gstack-origin/test/analytics.test.ts +277 -0
- package/gstack-origin/test/codex-e2e.test.ts +197 -0
- package/gstack-origin/test/fixtures/coverage-audit-fixture.ts +76 -0
- package/gstack-origin/test/fixtures/eval-baselines.json +7 -0
- package/gstack-origin/test/fixtures/qa-eval-checkout-ground-truth.json +43 -0
- package/gstack-origin/test/fixtures/qa-eval-ground-truth.json +43 -0
- package/gstack-origin/test/fixtures/qa-eval-spa-ground-truth.json +43 -0
- package/gstack-origin/test/fixtures/review-eval-design-slop.css +86 -0
- package/gstack-origin/test/fixtures/review-eval-design-slop.html +41 -0
- package/gstack-origin/test/fixtures/review-eval-enum-diff.rb +30 -0
- package/gstack-origin/test/fixtures/review-eval-enum.rb +27 -0
- package/gstack-origin/test/fixtures/review-eval-vuln.rb +14 -0
- package/gstack-origin/test/gemini-e2e.test.ts +173 -0
- package/gstack-origin/test/gen-skill-docs.test.ts +1049 -0
- package/gstack-origin/test/global-discover.test.ts +187 -0
- package/gstack-origin/test/helpers/codex-session-runner.ts +282 -0
- package/gstack-origin/test/helpers/e2e-helpers.ts +239 -0
- package/gstack-origin/test/helpers/eval-store.test.ts +548 -0
- package/gstack-origin/test/helpers/eval-store.ts +689 -0
- package/gstack-origin/test/helpers/gemini-session-runner.test.ts +104 -0
- package/gstack-origin/test/helpers/gemini-session-runner.ts +201 -0
- package/gstack-origin/test/helpers/llm-judge.ts +130 -0
- package/gstack-origin/test/helpers/observability.test.ts +283 -0
- package/gstack-origin/test/helpers/session-runner.test.ts +96 -0
- package/gstack-origin/test/helpers/session-runner.ts +357 -0
- package/gstack-origin/test/helpers/skill-parser.ts +206 -0
- package/gstack-origin/test/helpers/touchfiles.ts +260 -0
- package/gstack-origin/test/hook-scripts.test.ts +373 -0
- package/gstack-origin/test/skill-e2e-browse.test.ts +293 -0
- package/gstack-origin/test/skill-e2e-deploy.test.ts +279 -0
- package/gstack-origin/test/skill-e2e-design.test.ts +614 -0
- package/gstack-origin/test/skill-e2e-plan.test.ts +538 -0
- package/gstack-origin/test/skill-e2e-qa-bugs.test.ts +194 -0
- package/gstack-origin/test/skill-e2e-qa-workflow.test.ts +412 -0
- package/gstack-origin/test/skill-e2e-review.test.ts +535 -0
- package/gstack-origin/test/skill-e2e-workflow.test.ts +586 -0
- package/gstack-origin/test/skill-e2e.test.ts +3325 -0
- package/gstack-origin/test/skill-llm-eval.test.ts +787 -0
- package/gstack-origin/test/skill-parser.test.ts +179 -0
- package/gstack-origin/test/skill-routing-e2e.test.ts +605 -0
- package/gstack-origin/test/skill-validation.test.ts +1520 -0
- package/gstack-origin/test/telemetry.test.ts +278 -0
- package/gstack-origin/test/touchfiles.test.ts +262 -0
- package/gstack-origin/unfreeze/SKILL.md +40 -0
- package/gstack-origin/unfreeze/SKILL.md.tmpl +38 -0
- package/package.json +38 -0
- package/scripts/install-antigravity-skill.ps1 +33 -0
- package/scripts/install-antigravity-skill.sh +41 -0
- package/scripts/sync-gstack-origin.ps1 +37 -0
- package/scripts/sync-gstack-origin.sh +35 -0
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ship
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: |
|
|
5
|
+
Ship workflow: detect + merge base branch, run tests, review diff, bump VERSION, update CHANGELOG, commit, push, create PR. Use when asked to "ship", "deploy", "push to main", "create a PR", or "merge and push".
|
|
6
|
+
Proactively suggest when the user says code is ready or asks about deploying.
|
|
7
|
+
allowed-tools:
|
|
8
|
+
- Bash
|
|
9
|
+
- Read
|
|
10
|
+
- Write
|
|
11
|
+
- Edit
|
|
12
|
+
- Grep
|
|
13
|
+
- Glob
|
|
14
|
+
- Agent
|
|
15
|
+
- AskUserQuestion
|
|
16
|
+
- WebSearch
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
{{PREAMBLE}}
|
|
20
|
+
|
|
21
|
+
{{BASE_BRANCH_DETECT}}
|
|
22
|
+
|
|
23
|
+
# Ship: Fully Automated Ship Workflow
|
|
24
|
+
|
|
25
|
+
You are running the `/ship` workflow. This is a **non-interactive, fully automated** workflow. Do NOT ask for confirmation at any step. The user said `/ship` which means DO IT. Run straight through and output the PR URL at the end.
|
|
26
|
+
|
|
27
|
+
**Only stop for:**
|
|
28
|
+
- On the base branch (abort)
|
|
29
|
+
- Merge conflicts that can't be auto-resolved (stop, show conflicts)
|
|
30
|
+
- In-branch test failures (pre-existing failures are triaged, not auto-blocking)
|
|
31
|
+
- Pre-landing review finds ASK items that need user judgment
|
|
32
|
+
- MINOR or MAJOR version bump needed (ask — see Step 4)
|
|
33
|
+
- Greptile review comments that need user decision (complex fixes, false positives)
|
|
34
|
+
- TODOS.md missing and user wants to create one (ask — see Step 5.5)
|
|
35
|
+
- TODOS.md disorganized and user wants to reorganize (ask — see Step 5.5)
|
|
36
|
+
|
|
37
|
+
**Never stop for:**
|
|
38
|
+
- Uncommitted changes (always include them)
|
|
39
|
+
- Version bump choice (auto-pick MICRO or PATCH — see Step 4)
|
|
40
|
+
- CHANGELOG content (auto-generate from diff)
|
|
41
|
+
- Commit message approval (auto-commit)
|
|
42
|
+
- Multi-file changesets (auto-split into bisectable commits)
|
|
43
|
+
- TODOS.md completed-item detection (auto-mark)
|
|
44
|
+
- Auto-fixable review findings (dead code, N+1, stale comments — fixed automatically)
|
|
45
|
+
- Test coverage gaps (auto-generate and commit, or flag in PR body)
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Step 1: Pre-flight
|
|
50
|
+
|
|
51
|
+
1. Check the current branch. If on the base branch or the repo's default branch, **abort**: "You're on the base branch. Ship from a feature branch."
|
|
52
|
+
|
|
53
|
+
2. Run `git status` (never use `-uall`). Uncommitted changes are always included — no need to ask.
|
|
54
|
+
|
|
55
|
+
3. Run `git diff <base>...HEAD --stat` and `git log <base>..HEAD --oneline` to understand what's being shipped.
|
|
56
|
+
|
|
57
|
+
4. Check review readiness:
|
|
58
|
+
|
|
59
|
+
{{REVIEW_DASHBOARD}}
|
|
60
|
+
|
|
61
|
+
If the Eng Review is NOT "CLEAR":
|
|
62
|
+
|
|
63
|
+
1. **Check for a prior override on this branch:**
|
|
64
|
+
```bash
|
|
65
|
+
source <(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)
|
|
66
|
+
grep '"skill":"ship-review-override"' ~/.gstack/projects/$SLUG/$BRANCH-reviews.jsonl 2>/dev/null || echo "NO_OVERRIDE"
|
|
67
|
+
```
|
|
68
|
+
If an override exists, display the dashboard and note "Review gate previously accepted — continuing." Do NOT ask again.
|
|
69
|
+
|
|
70
|
+
2. **If no override exists,** use AskUserQuestion:
|
|
71
|
+
- Show that Eng Review is missing or has open issues
|
|
72
|
+
- RECOMMENDATION: Choose C if the change is obviously trivial (< 20 lines, typo fix, config-only); Choose B for larger changes
|
|
73
|
+
- Options: A) Ship anyway B) Abort — run /plan-eng-review first C) Change is too small to need eng review
|
|
74
|
+
- If CEO Review is missing, mention as informational ("CEO Review not run — recommended for product changes") but do NOT block
|
|
75
|
+
- For Design Review: run `source <(~/.claude/skills/gstack/bin/gstack-diff-scope <base> 2>/dev/null)`. If `SCOPE_FRONTEND=true` and no design review (plan-design-review or design-review-lite) exists in the dashboard, mention: "Design Review not run — this PR changes frontend code. The lite design check will run automatically in Step 3.5, but consider running /design-review for a full visual audit post-implementation." Still never block.
|
|
76
|
+
|
|
77
|
+
3. **If the user chooses A or C,** persist the decision so future `/ship` runs on this branch skip the gate:
|
|
78
|
+
```bash
|
|
79
|
+
source <(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)
|
|
80
|
+
echo '{"skill":"ship-review-override","timestamp":"'"$(date -u +%Y-%m-%dT%H:%M:%SZ)"'","decision":"USER_CHOICE"}' >> ~/.gstack/projects/$SLUG/$BRANCH-reviews.jsonl
|
|
81
|
+
```
|
|
82
|
+
Substitute USER_CHOICE with "ship_anyway" or "not_relevant".
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Step 2: Merge the base branch (BEFORE tests)
|
|
87
|
+
|
|
88
|
+
Fetch and merge the base branch into the feature branch so tests run against the merged state:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
git fetch origin <base> && git merge origin/<base> --no-edit
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**If there are merge conflicts:** Try to auto-resolve if they are simple (VERSION, schema.rb, CHANGELOG ordering). If conflicts are complex or ambiguous, **STOP** and show them.
|
|
95
|
+
|
|
96
|
+
**If already up to date:** Continue silently.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Step 2.5: Test Framework Bootstrap
|
|
101
|
+
|
|
102
|
+
{{TEST_BOOTSTRAP}}
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Step 3: Run tests (on merged code)
|
|
107
|
+
|
|
108
|
+
**Do NOT run `RAILS_ENV=test bin/rails db:migrate`** — `bin/test-lane` already calls
|
|
109
|
+
`db:test:prepare` internally, which loads the schema into the correct lane database.
|
|
110
|
+
Running bare test migrations without INSTANCE hits an orphan DB and corrupts structure.sql.
|
|
111
|
+
|
|
112
|
+
Run both test suites in parallel:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
bin/test-lane 2>&1 | tee /tmp/ship_tests.txt &
|
|
116
|
+
npm run test 2>&1 | tee /tmp/ship_vitest.txt &
|
|
117
|
+
wait
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
After both complete, read the output files and check pass/fail.
|
|
121
|
+
|
|
122
|
+
**If any test fails:** Do NOT immediately stop. Apply the Test Failure Ownership Triage:
|
|
123
|
+
|
|
124
|
+
{{TEST_FAILURE_TRIAGE}}
|
|
125
|
+
|
|
126
|
+
**After triage:** If any in-branch failures remain unfixed, **STOP**. Do not proceed. If all failures were pre-existing and handled (fixed, TODOed, assigned, or skipped), continue to Step 3.25.
|
|
127
|
+
|
|
128
|
+
**If all pass:** Continue silently — just note the counts briefly.
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Step 3.25: Eval Suites (conditional)
|
|
133
|
+
|
|
134
|
+
Evals are mandatory when prompt-related files change. Skip this step entirely if no prompt files are in the diff.
|
|
135
|
+
|
|
136
|
+
**1. Check if the diff touches prompt-related files:**
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
git diff origin/<base> --name-only
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Match against these patterns (from CLAUDE.md):
|
|
143
|
+
- `app/services/*_prompt_builder.rb`
|
|
144
|
+
- `app/services/*_generation_service.rb`, `*_writer_service.rb`, `*_designer_service.rb`
|
|
145
|
+
- `app/services/*_evaluator.rb`, `*_scorer.rb`, `*_classifier_service.rb`, `*_analyzer.rb`
|
|
146
|
+
- `app/services/concerns/*voice*.rb`, `*writing*.rb`, `*prompt*.rb`, `*token*.rb`
|
|
147
|
+
- `app/services/chat_tools/*.rb`, `app/services/x_thread_tools/*.rb`
|
|
148
|
+
- `config/system_prompts/*.txt`
|
|
149
|
+
- `test/evals/**/*` (eval infrastructure changes affect all suites)
|
|
150
|
+
|
|
151
|
+
**If no matches:** Print "No prompt-related files changed — skipping evals." and continue to Step 3.5.
|
|
152
|
+
|
|
153
|
+
**2. Identify affected eval suites:**
|
|
154
|
+
|
|
155
|
+
Each eval runner (`test/evals/*_eval_runner.rb`) declares `PROMPT_SOURCE_FILES` listing which source files affect it. Grep these to find which suites match the changed files:
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
grep -l "changed_file_basename" test/evals/*_eval_runner.rb
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Map runner → test file: `post_generation_eval_runner.rb` → `post_generation_eval_test.rb`.
|
|
162
|
+
|
|
163
|
+
**Special cases:**
|
|
164
|
+
- Changes to `test/evals/judges/*.rb`, `test/evals/support/*.rb`, or `test/evals/fixtures/` affect ALL suites that use those judges/support files. Check imports in the eval test files to determine which.
|
|
165
|
+
- Changes to `config/system_prompts/*.txt` — grep eval runners for the prompt filename to find affected suites.
|
|
166
|
+
- If unsure which suites are affected, run ALL suites that could plausibly be impacted. Over-testing is better than missing a regression.
|
|
167
|
+
|
|
168
|
+
**3. Run affected suites at `EVAL_JUDGE_TIER=full`:**
|
|
169
|
+
|
|
170
|
+
`/ship` is a pre-merge gate, so always use full tier (Sonnet structural + Opus persona judges).
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
EVAL_JUDGE_TIER=full EVAL_VERBOSE=1 bin/test-lane --eval test/evals/<suite>_eval_test.rb 2>&1 | tee /tmp/ship_evals.txt
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
If multiple suites need to run, run them sequentially (each needs a test lane). If the first suite fails, stop immediately — don't burn API cost on remaining suites.
|
|
177
|
+
|
|
178
|
+
**4. Check results:**
|
|
179
|
+
|
|
180
|
+
- **If any eval fails:** Show the failures, the cost dashboard, and **STOP**. Do not proceed.
|
|
181
|
+
- **If all pass:** Note pass counts and cost. Continue to Step 3.5.
|
|
182
|
+
|
|
183
|
+
**5. Save eval output** — include eval results and cost dashboard in the PR body (Step 8).
|
|
184
|
+
|
|
185
|
+
**Tier reference (for context — /ship always uses `full`):**
|
|
186
|
+
| Tier | When | Speed (cached) | Cost |
|
|
187
|
+
|------|------|----------------|------|
|
|
188
|
+
| `fast` (Haiku) | Dev iteration, smoke tests | ~5s (14x faster) | ~$0.07/run |
|
|
189
|
+
| `standard` (Sonnet) | Default dev, `bin/test-lane --eval` | ~17s (4x faster) | ~$0.37/run |
|
|
190
|
+
| `full` (Opus persona) | **`/ship` and pre-merge** | ~72s (baseline) | ~$1.27/run |
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Step 3.4: Test Coverage Audit
|
|
195
|
+
|
|
196
|
+
{{TEST_COVERAGE_AUDIT_SHIP}}
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## Step 3.5: Pre-Landing Review
|
|
201
|
+
|
|
202
|
+
Review the diff for structural issues that tests don't catch.
|
|
203
|
+
|
|
204
|
+
1. Read `.claude/skills/review/checklist.md`. If the file cannot be read, **STOP** and report the error.
|
|
205
|
+
|
|
206
|
+
2. Run `git diff origin/<base>` to get the full diff (scoped to feature changes against the freshly-fetched base branch).
|
|
207
|
+
|
|
208
|
+
3. Apply the review checklist in two passes:
|
|
209
|
+
- **Pass 1 (CRITICAL):** SQL & Data Safety, LLM Output Trust Boundary
|
|
210
|
+
- **Pass 2 (INFORMATIONAL):** All remaining categories
|
|
211
|
+
|
|
212
|
+
{{DESIGN_REVIEW_LITE}}
|
|
213
|
+
|
|
214
|
+
Include any design findings alongside the code review findings. They follow the same Fix-First flow below.
|
|
215
|
+
|
|
216
|
+
4. **Classify each finding as AUTO-FIX or ASK** per the Fix-First Heuristic in
|
|
217
|
+
checklist.md. Critical findings lean toward ASK; informational lean toward AUTO-FIX.
|
|
218
|
+
|
|
219
|
+
5. **Auto-fix all AUTO-FIX items.** Apply each fix. Output one line per fix:
|
|
220
|
+
`[AUTO-FIXED] [file:line] Problem → what you did`
|
|
221
|
+
|
|
222
|
+
6. **If ASK items remain,** present them in ONE AskUserQuestion:
|
|
223
|
+
- List each with number, severity, problem, recommended fix
|
|
224
|
+
- Per-item options: A) Fix B) Skip
|
|
225
|
+
- Overall RECOMMENDATION
|
|
226
|
+
- If 3 or fewer ASK items, you may use individual AskUserQuestion calls instead
|
|
227
|
+
|
|
228
|
+
7. **After all fixes (auto + user-approved):**
|
|
229
|
+
- If ANY fixes were applied: commit fixed files by name (`git add <fixed-files> && git commit -m "fix: pre-landing review fixes"`), then **STOP** and tell the user to run `/ship` again to re-test.
|
|
230
|
+
- If no fixes applied (all ASK items skipped, or no issues found): continue to Step 4.
|
|
231
|
+
|
|
232
|
+
8. Output summary: `Pre-Landing Review: N issues — M auto-fixed, K asked (J fixed, L skipped)`
|
|
233
|
+
|
|
234
|
+
If no issues found: `Pre-Landing Review: No issues found.`
|
|
235
|
+
|
|
236
|
+
Save the review output — it goes into the PR body in Step 8.
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## Step 3.75: Address Greptile review comments (if PR exists)
|
|
241
|
+
|
|
242
|
+
Read `.claude/skills/review/greptile-triage.md` and follow the fetch, filter, classify, and **escalation detection** steps.
|
|
243
|
+
|
|
244
|
+
**If no PR exists, `gh` fails, API returns an error, or there are zero Greptile comments:** Skip this step silently. Continue to Step 4.
|
|
245
|
+
|
|
246
|
+
**If Greptile comments are found:**
|
|
247
|
+
|
|
248
|
+
Include a Greptile summary in your output: `+ N Greptile comments (X valid, Y fixed, Z FP)`
|
|
249
|
+
|
|
250
|
+
Before replying to any comment, run the **Escalation Detection** algorithm from greptile-triage.md to determine whether to use Tier 1 (friendly) or Tier 2 (firm) reply templates.
|
|
251
|
+
|
|
252
|
+
For each classified comment:
|
|
253
|
+
|
|
254
|
+
**VALID & ACTIONABLE:** Use AskUserQuestion with:
|
|
255
|
+
- The comment (file:line or [top-level] + body summary + permalink URL)
|
|
256
|
+
- `RECOMMENDATION: Choose A because [one-line reason]`
|
|
257
|
+
- Options: A) Fix now, B) Acknowledge and ship anyway, C) It's a false positive
|
|
258
|
+
- If user chooses A: apply the fix, commit the fixed files (`git add <fixed-files> && git commit -m "fix: address Greptile review — <brief description>"`), reply using the **Fix reply template** from greptile-triage.md (include inline diff + explanation), and save to both per-project and global greptile-history (type: fix).
|
|
259
|
+
- If user chooses C: reply using the **False Positive reply template** from greptile-triage.md (include evidence + suggested re-rank), save to both per-project and global greptile-history (type: fp).
|
|
260
|
+
|
|
261
|
+
**VALID BUT ALREADY FIXED:** Reply using the **Already Fixed reply template** from greptile-triage.md — no AskUserQuestion needed:
|
|
262
|
+
- Include what was done and the fixing commit SHA
|
|
263
|
+
- Save to both per-project and global greptile-history (type: already-fixed)
|
|
264
|
+
|
|
265
|
+
**FALSE POSITIVE:** Use AskUserQuestion:
|
|
266
|
+
- Show the comment and why you think it's wrong (file:line or [top-level] + body summary + permalink URL)
|
|
267
|
+
- Options:
|
|
268
|
+
- A) Reply to Greptile explaining the false positive (recommended if clearly wrong)
|
|
269
|
+
- B) Fix it anyway (if trivial)
|
|
270
|
+
- C) Ignore silently
|
|
271
|
+
- If user chooses A: reply using the **False Positive reply template** from greptile-triage.md (include evidence + suggested re-rank), save to both per-project and global greptile-history (type: fp)
|
|
272
|
+
|
|
273
|
+
**SUPPRESSED:** Skip silently — these are known false positives from previous triage.
|
|
274
|
+
|
|
275
|
+
**After all comments are resolved:** If any fixes were applied, the tests from Step 3 are now stale. **Re-run tests** (Step 3) before continuing to Step 4. If no fixes were applied, continue to Step 4.
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
{{ADVERSARIAL_STEP}}
|
|
280
|
+
|
|
281
|
+
## Step 4: Version bump (auto-decide)
|
|
282
|
+
|
|
283
|
+
1. Read the current `VERSION` file (4-digit format: `MAJOR.MINOR.PATCH.MICRO`)
|
|
284
|
+
|
|
285
|
+
2. **Auto-decide the bump level based on the diff:**
|
|
286
|
+
- Count lines changed (`git diff origin/<base>...HEAD --stat | tail -1`)
|
|
287
|
+
- **MICRO** (4th digit): < 50 lines changed, trivial tweaks, typos, config
|
|
288
|
+
- **PATCH** (3rd digit): 50+ lines changed, bug fixes, small-medium features
|
|
289
|
+
- **MINOR** (2nd digit): **ASK the user** — only for major features or significant architectural changes
|
|
290
|
+
- **MAJOR** (1st digit): **ASK the user** — only for milestones or breaking changes
|
|
291
|
+
|
|
292
|
+
3. Compute the new version:
|
|
293
|
+
- Bumping a digit resets all digits to its right to 0
|
|
294
|
+
- Example: `0.19.1.0` + PATCH → `0.19.2.0`
|
|
295
|
+
|
|
296
|
+
4. Write the new version to the `VERSION` file.
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
## Step 5: CHANGELOG (auto-generate)
|
|
301
|
+
|
|
302
|
+
1. Read `CHANGELOG.md` header to know the format.
|
|
303
|
+
|
|
304
|
+
2. Auto-generate the entry from **ALL commits on the branch** (not just recent ones):
|
|
305
|
+
- Use `git log <base>..HEAD --oneline` to see every commit being shipped
|
|
306
|
+
- Use `git diff <base>...HEAD` to see the full diff against the base branch
|
|
307
|
+
- The CHANGELOG entry must be comprehensive of ALL changes going into the PR
|
|
308
|
+
- If existing CHANGELOG entries on the branch already cover some commits, replace them with one unified entry for the new version
|
|
309
|
+
- Categorize changes into applicable sections:
|
|
310
|
+
- `### Added` — new features
|
|
311
|
+
- `### Changed` — changes to existing functionality
|
|
312
|
+
- `### Fixed` — bug fixes
|
|
313
|
+
- `### Removed` — removed features
|
|
314
|
+
- Write concise, descriptive bullet points
|
|
315
|
+
- Insert after the file header (line 5), dated today
|
|
316
|
+
- Format: `## [X.Y.Z.W] - YYYY-MM-DD`
|
|
317
|
+
|
|
318
|
+
**Do NOT ask the user to describe changes.** Infer from the diff and commit history.
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## Step 5.5: TODOS.md (auto-update)
|
|
323
|
+
|
|
324
|
+
Cross-reference the project's TODOS.md against the changes being shipped. Mark completed items automatically; prompt only if the file is missing or disorganized.
|
|
325
|
+
|
|
326
|
+
Read `.claude/skills/review/TODOS-format.md` for the canonical format reference.
|
|
327
|
+
|
|
328
|
+
**1. Check if TODOS.md exists** in the repository root.
|
|
329
|
+
|
|
330
|
+
**If TODOS.md does not exist:** Use AskUserQuestion:
|
|
331
|
+
- Message: "GStack recommends maintaining a TODOS.md organized by skill/component, then priority (P0 at top through P4, then Completed at bottom). See TODOS-format.md for the full format. Would you like to create one?"
|
|
332
|
+
- Options: A) Create it now, B) Skip for now
|
|
333
|
+
- If A: Create `TODOS.md` with a skeleton (# TODOS heading + ## Completed section). Continue to step 3.
|
|
334
|
+
- If B: Skip the rest of Step 5.5. Continue to Step 6.
|
|
335
|
+
|
|
336
|
+
**2. Check structure and organization:**
|
|
337
|
+
|
|
338
|
+
Read TODOS.md and verify it follows the recommended structure:
|
|
339
|
+
- Items grouped under `## <Skill/Component>` headings
|
|
340
|
+
- Each item has `**Priority:**` field with P0-P4 value
|
|
341
|
+
- A `## Completed` section at the bottom
|
|
342
|
+
|
|
343
|
+
**If disorganized** (missing priority fields, no component groupings, no Completed section): Use AskUserQuestion:
|
|
344
|
+
- Message: "TODOS.md doesn't follow the recommended structure (skill/component groupings, P0-P4 priority, Completed section). Would you like to reorganize it?"
|
|
345
|
+
- Options: A) Reorganize now (recommended), B) Leave as-is
|
|
346
|
+
- If A: Reorganize in-place following TODOS-format.md. Preserve all content — only restructure, never delete items.
|
|
347
|
+
- If B: Continue to step 3 without restructuring.
|
|
348
|
+
|
|
349
|
+
**3. Detect completed TODOs:**
|
|
350
|
+
|
|
351
|
+
This step is fully automatic — no user interaction.
|
|
352
|
+
|
|
353
|
+
Use the diff and commit history already gathered in earlier steps:
|
|
354
|
+
- `git diff <base>...HEAD` (full diff against the base branch)
|
|
355
|
+
- `git log <base>..HEAD --oneline` (all commits being shipped)
|
|
356
|
+
|
|
357
|
+
For each TODO item, check if the changes in this PR complete it by:
|
|
358
|
+
- Matching commit messages against the TODO title and description
|
|
359
|
+
- Checking if files referenced in the TODO appear in the diff
|
|
360
|
+
- Checking if the TODO's described work matches the functional changes
|
|
361
|
+
|
|
362
|
+
**Be conservative:** Only mark a TODO as completed if there is clear evidence in the diff. If uncertain, leave it alone.
|
|
363
|
+
|
|
364
|
+
**4. Move completed items** to the `## Completed` section at the bottom. Append: `**Completed:** vX.Y.Z (YYYY-MM-DD)`
|
|
365
|
+
|
|
366
|
+
**5. Output summary:**
|
|
367
|
+
- `TODOS.md: N items marked complete (item1, item2, ...). M items remaining.`
|
|
368
|
+
- Or: `TODOS.md: No completed items detected. M items remaining.`
|
|
369
|
+
- Or: `TODOS.md: Created.` / `TODOS.md: Reorganized.`
|
|
370
|
+
|
|
371
|
+
**6. Defensive:** If TODOS.md cannot be written (permission error, disk full), warn the user and continue. Never stop the ship workflow for a TODOS failure.
|
|
372
|
+
|
|
373
|
+
Save this summary — it goes into the PR body in Step 8.
|
|
374
|
+
|
|
375
|
+
---
|
|
376
|
+
|
|
377
|
+
## Step 6: Commit (bisectable chunks)
|
|
378
|
+
|
|
379
|
+
**Goal:** Create small, logical commits that work well with `git bisect` and help LLMs understand what changed.
|
|
380
|
+
|
|
381
|
+
1. Analyze the diff and group changes into logical commits. Each commit should represent **one coherent change** — not one file, but one logical unit.
|
|
382
|
+
|
|
383
|
+
2. **Commit ordering** (earlier commits first):
|
|
384
|
+
- **Infrastructure:** migrations, config changes, route additions
|
|
385
|
+
- **Models & services:** new models, services, concerns (with their tests)
|
|
386
|
+
- **Controllers & views:** controllers, views, JS/React components (with their tests)
|
|
387
|
+
- **VERSION + CHANGELOG + TODOS.md:** always in the final commit
|
|
388
|
+
|
|
389
|
+
3. **Rules for splitting:**
|
|
390
|
+
- A model and its test file go in the same commit
|
|
391
|
+
- A service and its test file go in the same commit
|
|
392
|
+
- A controller, its views, and its test go in the same commit
|
|
393
|
+
- Migrations are their own commit (or grouped with the model they support)
|
|
394
|
+
- Config/route changes can group with the feature they enable
|
|
395
|
+
- If the total diff is small (< 50 lines across < 4 files), a single commit is fine
|
|
396
|
+
|
|
397
|
+
4. **Each commit must be independently valid** — no broken imports, no references to code that doesn't exist yet. Order commits so dependencies come first.
|
|
398
|
+
|
|
399
|
+
5. Compose each commit message:
|
|
400
|
+
- First line: `<type>: <summary>` (type = feat/fix/chore/refactor/docs)
|
|
401
|
+
- Body: brief description of what this commit contains
|
|
402
|
+
- Only the **final commit** (VERSION + CHANGELOG) gets the version tag and co-author trailer:
|
|
403
|
+
|
|
404
|
+
```bash
|
|
405
|
+
git commit -m "$(cat <<'EOF'
|
|
406
|
+
chore: bump version and changelog (vX.Y.Z.W)
|
|
407
|
+
|
|
408
|
+
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
|
409
|
+
EOF
|
|
410
|
+
)"
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
## Step 6.5: Verification Gate
|
|
416
|
+
|
|
417
|
+
**IRON LAW: NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE.**
|
|
418
|
+
|
|
419
|
+
Before pushing, re-verify if code changed during Steps 4-6:
|
|
420
|
+
|
|
421
|
+
1. **Test verification:** If ANY code changed after Step 3's test run (fixes from review findings, CHANGELOG edits don't count), re-run the test suite. Paste fresh output. Stale output from Step 3 is NOT acceptable.
|
|
422
|
+
|
|
423
|
+
2. **Build verification:** If the project has a build step, run it. Paste output.
|
|
424
|
+
|
|
425
|
+
3. **Rationalization prevention:**
|
|
426
|
+
- "Should work now" → RUN IT.
|
|
427
|
+
- "I'm confident" → Confidence is not evidence.
|
|
428
|
+
- "I already tested earlier" → Code changed since then. Test again.
|
|
429
|
+
- "It's a trivial change" → Trivial changes break production.
|
|
430
|
+
|
|
431
|
+
**If tests fail here:** STOP. Do not push. Fix the issue and return to Step 3.
|
|
432
|
+
|
|
433
|
+
Claiming work is complete without verification is dishonesty, not efficiency.
|
|
434
|
+
|
|
435
|
+
---
|
|
436
|
+
|
|
437
|
+
## Step 7: Push
|
|
438
|
+
|
|
439
|
+
Push to the remote with upstream tracking:
|
|
440
|
+
|
|
441
|
+
```bash
|
|
442
|
+
git push -u origin <branch-name>
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
---
|
|
446
|
+
|
|
447
|
+
## Step 8: Create PR
|
|
448
|
+
|
|
449
|
+
Create a pull request using `gh`:
|
|
450
|
+
|
|
451
|
+
```bash
|
|
452
|
+
gh pr create --base <base> --title "<type>: <summary>" --body "$(cat <<'EOF'
|
|
453
|
+
## Summary
|
|
454
|
+
<bullet points from CHANGELOG>
|
|
455
|
+
|
|
456
|
+
## Test Coverage
|
|
457
|
+
<coverage diagram from Step 3.4, or "All new code paths have test coverage.">
|
|
458
|
+
<If Step 3.4 ran: "Tests: {before} → {after} (+{delta} new)">
|
|
459
|
+
|
|
460
|
+
## Pre-Landing Review
|
|
461
|
+
<findings from Step 3.5 code review, or "No issues found.">
|
|
462
|
+
|
|
463
|
+
## Design Review
|
|
464
|
+
<If design review ran: "Design Review (lite): N findings — M auto-fixed, K skipped. AI Slop: clean/N issues.">
|
|
465
|
+
<If no frontend files changed: "No frontend files changed — design review skipped.">
|
|
466
|
+
|
|
467
|
+
## Eval Results
|
|
468
|
+
<If evals ran: suite names, pass/fail counts, cost dashboard summary. If skipped: "No prompt-related files changed — evals skipped.">
|
|
469
|
+
|
|
470
|
+
## Greptile Review
|
|
471
|
+
<If Greptile comments were found: bullet list with [FIXED] / [FALSE POSITIVE] / [ALREADY FIXED] tag + one-line summary per comment>
|
|
472
|
+
<If no Greptile comments found: "No Greptile comments.">
|
|
473
|
+
<If no PR existed during Step 3.75: omit this section entirely>
|
|
474
|
+
|
|
475
|
+
## TODOS
|
|
476
|
+
<If items marked complete: bullet list of completed items with version>
|
|
477
|
+
<If no items completed: "No TODO items completed in this PR.">
|
|
478
|
+
<If TODOS.md created or reorganized: note that>
|
|
479
|
+
<If TODOS.md doesn't exist and user skipped: omit this section>
|
|
480
|
+
|
|
481
|
+
## Test plan
|
|
482
|
+
- [x] All Rails tests pass (N runs, 0 failures)
|
|
483
|
+
- [x] All Vitest tests pass (N tests)
|
|
484
|
+
|
|
485
|
+
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
|
486
|
+
EOF
|
|
487
|
+
)"
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
**Output the PR URL** — then proceed to Step 8.5.
|
|
491
|
+
|
|
492
|
+
---
|
|
493
|
+
|
|
494
|
+
## Step 8.5: Auto-invoke /document-release
|
|
495
|
+
|
|
496
|
+
After the PR is created, automatically sync project documentation. Read the
|
|
497
|
+
`document-release/SKILL.md` skill file (adjacent to this skill's directory) and
|
|
498
|
+
execute its full workflow:
|
|
499
|
+
|
|
500
|
+
1. Read the `/document-release` skill: `cat ${CLAUDE_SKILL_DIR}/../document-release/SKILL.md`
|
|
501
|
+
2. Follow its instructions — it reads all .md files in the project, cross-references
|
|
502
|
+
the diff, and updates anything that drifted (README, ARCHITECTURE, CONTRIBUTING,
|
|
503
|
+
CLAUDE.md, TODOS, etc.)
|
|
504
|
+
3. If any docs were updated, commit the changes and push to the same branch:
|
|
505
|
+
```bash
|
|
506
|
+
git add -A && git commit -m "docs: sync documentation with shipped changes" && git push
|
|
507
|
+
```
|
|
508
|
+
4. If no docs needed updating, say "Documentation is current — no updates needed."
|
|
509
|
+
|
|
510
|
+
This step is automatic. Do not ask the user for confirmation. The goal is zero-friction
|
|
511
|
+
doc updates — the user runs `/ship` and documentation stays current without a separate command.
|
|
512
|
+
|
|
513
|
+
---
|
|
514
|
+
|
|
515
|
+
## Important Rules
|
|
516
|
+
|
|
517
|
+
- **Never skip tests.** If tests fail, stop.
|
|
518
|
+
- **Never skip the pre-landing review.** If checklist.md is unreadable, stop.
|
|
519
|
+
- **Never force push.** Use regular `git push` only.
|
|
520
|
+
- **Never ask for trivial confirmations** (e.g., "ready to push?", "create PR?"). DO stop for: version bumps (MINOR/MAJOR), pre-landing review findings (ASK items), and Codex structured review [P1] findings (large diffs only).
|
|
521
|
+
- **Always use the 4-digit version format** from the VERSION file.
|
|
522
|
+
- **Date format in CHANGELOG:** `YYYY-MM-DD`
|
|
523
|
+
- **Split commits for bisectability** — each commit = one logical change.
|
|
524
|
+
- **TODOS.md completion detection must be conservative.** Only mark items as completed when the diff clearly shows the work is done.
|
|
525
|
+
- **Use Greptile reply templates from greptile-triage.md.** Every reply includes evidence (inline diff, code references, re-rank suggestion). Never post vague replies.
|
|
526
|
+
- **Never push without fresh verification evidence.** If code changed after Step 3 tests, re-run before pushing.
|
|
527
|
+
- **Step 3.4 generates coverage tests.** They must pass before committing. Never commit failing tests.
|
|
528
|
+
- **The goal is: user says `/ship`, next thing they see is the review + PR URL + auto-synced docs.**
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Supabase project config for gstack telemetry
|
|
3
|
+
# These are PUBLIC keys — safe to commit (like Firebase public config).
|
|
4
|
+
# RLS policies restrict what the anon/publishable key can do (INSERT only).
|
|
5
|
+
|
|
6
|
+
GSTACK_SUPABASE_URL="https://frugpmstpnojnhfyimgv.supabase.co"
|
|
7
|
+
GSTACK_SUPABASE_ANON_KEY="sb_publishable_tR4i6cyMIrYTE3s6OyHGHw_ppx2p6WK"
|
|
8
|
+
|
|
9
|
+
# Telemetry ingest endpoint (Data API)
|
|
10
|
+
GSTACK_TELEMETRY_ENDPOINT="${GSTACK_SUPABASE_URL}/rest/v1"
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// gstack community-pulse edge function
|
|
2
|
+
// Returns weekly active installation count for preamble display.
|
|
3
|
+
// Cached for 1 hour via Cache-Control header.
|
|
4
|
+
|
|
5
|
+
import { createClient } from "https://esm.sh/@supabase/supabase-js@2";
|
|
6
|
+
|
|
7
|
+
Deno.serve(async () => {
|
|
8
|
+
const supabase = createClient(
|
|
9
|
+
Deno.env.get("SUPABASE_URL") ?? "",
|
|
10
|
+
Deno.env.get("SUPABASE_SERVICE_ROLE_KEY") ?? ""
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
try {
|
|
14
|
+
// Count unique update checks in the last 7 days (install base proxy)
|
|
15
|
+
const weekAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString();
|
|
16
|
+
const twoWeeksAgo = new Date(Date.now() - 14 * 24 * 60 * 60 * 1000).toISOString();
|
|
17
|
+
|
|
18
|
+
// This week's active
|
|
19
|
+
const { count: thisWeek } = await supabase
|
|
20
|
+
.from("update_checks")
|
|
21
|
+
.select("*", { count: "exact", head: true })
|
|
22
|
+
.gte("checked_at", weekAgo);
|
|
23
|
+
|
|
24
|
+
// Last week's active (for change %)
|
|
25
|
+
const { count: lastWeek } = await supabase
|
|
26
|
+
.from("update_checks")
|
|
27
|
+
.select("*", { count: "exact", head: true })
|
|
28
|
+
.gte("checked_at", twoWeeksAgo)
|
|
29
|
+
.lt("checked_at", weekAgo);
|
|
30
|
+
|
|
31
|
+
const current = thisWeek ?? 0;
|
|
32
|
+
const previous = lastWeek ?? 0;
|
|
33
|
+
const changePct = previous > 0
|
|
34
|
+
? Math.round(((current - previous) / previous) * 100)
|
|
35
|
+
: 0;
|
|
36
|
+
|
|
37
|
+
return new Response(
|
|
38
|
+
JSON.stringify({
|
|
39
|
+
weekly_active: current,
|
|
40
|
+
change_pct: changePct,
|
|
41
|
+
}),
|
|
42
|
+
{
|
|
43
|
+
status: 200,
|
|
44
|
+
headers: {
|
|
45
|
+
"Content-Type": "application/json",
|
|
46
|
+
"Cache-Control": "public, max-age=3600", // 1 hour cache
|
|
47
|
+
},
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
} catch {
|
|
51
|
+
return new Response(
|
|
52
|
+
JSON.stringify({ weekly_active: 0, change_pct: 0 }),
|
|
53
|
+
{
|
|
54
|
+
status: 200,
|
|
55
|
+
headers: { "Content-Type": "application/json" },
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
});
|