/verify is now /build-check, so Claude Code's built-in /verify works again (#4593) (#4714)

gstack's build-and-check skill is renamed from `/verify` to
`/build-check`, so typing `/verify` opens Claude Code's own built-in
skill again and Claude Code stops running gstack's skill before every
commit.

Why: Claude Code ships a skill named `verify`, and gstack's skill with
the same name hid it. Fixes #4593.

What you do: use `/build-check` from now on. If your gstack config has
`disabled_skills: verify`, change it to `build-check`. Upgrading removes
gstack's old `verify` entry but never a `verify` skill of your own.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: test/skill-descriptions.test.ts:16:testing reader=core
Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/outside-voice#1 reader=outside-voice
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-22 19:40:36 +00:00
1 parent 20ab591412
commit 9d758432eb
43 files changed
+310 -243

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ gstack/
├── land-and-deploy/ # /land-and-deploy skill (merge → deploy → canary verify)
├── modernize/ # /modernize skill (aging PR → MODERNIZE / REWORK / CLOSE disposition, range-diff proof, pinned-lease push)
├── office-hours/ # /office-hours skill (YC Office Hours — startup diagnostic + builder brainstorm)
├── verify/ # /verify skill (build-and-verify loop over bin/gstack-checks + lib/checks.ts; tests come from lib/pregate)
├── build-check/ # /build-check skill (build-and-verify loop over bin/gstack-checks + lib/checks.ts; tests come from lib/pregate)
├── spec/ # /spec skill (five-phase spec → GitHub issue, optional agent spawn, /ship auto-closes)
├── retro/ # Retrospective skill (includes /retro global cross-project mode)
├── careful/ # /careful skill; bin/check-careful.sh (PreToolUse destructive-command hook) + bin/hook-extract.sh (shared hook helpers: payload extraction, deny JSON, gstack_hook_state_root)
+9 -6
View File
@@ -27,6 +27,15 @@
"plan": "none",
"seed": "GEVA-2, 2026-11-02: browse: untested (never measured)"
},
"build-check": {
"status": "untested",
"grandfathered": true,
"plan": "none",
"seed": "not in GEVA-2's table (2026-11-02); never measured",
"aliases": [
"verify"
]
},
"canary": {
"status": "untested",
"grandfathered": true,
@@ -488,12 +497,6 @@
"owner": "GStack Minder (GSTA-36)",
"measure_by": "2026-11-24"
},
"verify": {
"status": "untested",
"grandfathered": true,
"plan": "none",
"seed": "not in GEVA-2's table (2026-11-02); never measured"
},
"write-skill": {
"status": "untested",
"grandfathered": true,
+7 -7
View File
@@ -2,7 +2,7 @@
Three Claude Code hooks that help a model actually run gstack's skills (GST-1088, GST-3110); all three also run on Codex ([Codex](#codex)). All three are on by default. On Opus 5.5, unattended, a hook line naming a skill got it loaded in 58 of 60 bug-fix sessions, where the same skill relying on its description loaded in 0 of 60 (gstack-evals#369, and B1 before it on the same 60 tasks). With the contract hook, all 66 /review sessions ran its specialist reviewers, 42 of them after the hook's one block; in an earlier run without it, 0 of 66 did (gstack-evals board posts GEVA-271 and GEVA-105). Each has one default, `SWITCH_DEFAULT` in `lib/skill-route.ts`; `gstack-config defaults` prints it. With all three off nothing changes. The opt-in gates that hold one skill rule mid-run (the /plan-ceo-review and /autoplan gates) are in [skill-gates.md](skill-gates.md).
- **Skill routing** (`skill_routing`, a UserPromptSubmit hook). When a prompt matches an installed skill's `triggers:`, the hook adds one line of context naming that skill, for example "this request fits /verify. Run /verify with the Skill tool before you start".
- **Skill routing** (`skill_routing`, a UserPromptSubmit hook). When a prompt matches an installed skill's `triggers:`, the hook adds one line of context naming that skill, for example "this request fits /build-check. Run /build-check with the Skill tool before you start".
- **Skill contracts** (`skill_contracts`, a Stop hook). A skill can declare the outputs that must exist before it is done. When the model tries to stop without them, the hook blocks once and names what is missing.
- **Destructive-command check** (`destructive_guard`, a PreToolUse hook on Bash and PowerShell). /careful's check, run in every session without the model loading /careful: see [below](#destructive-command-check).
@@ -41,11 +41,11 @@ The hook scores the prompt against the `triggers:` list in each installed `SKILL
- A trigger scores 1 when its whole phrase appears in the prompt. Otherwise it scores the share of its content words (common words dropped, light stemming, so "failing" matches "fails") that the prompt contains. A trigger with one content word counts only on its whole phrase, unless that word has five or more letters and is not a question word.
- A bug report is full of everyday words (find, test, run, site) and defect words, so they never add up to a request by themselves. A trigger only partly present needs one of its five-letter-or-longer words, other than the defect word, among the words it shares: "pip cannot find the package and the install fails" no longer matches "find bugs on site". A trigger made only of shorter everyday words, with no defect word, needs them within 8 words of each other, and the defect word counts as everyday unless the prompt reads as a bug report: a report that mentions a "call site" and, much later, "regression tests" no longer matches "test the site" (GST-3123).
- Of gstack's own skills, only /review, /qa and /verify route (/investigate did too until it was cut, GST-1717). In the d7 check (PR #3912), scoring every gstack skill's triggers sent 17 of 32 non-fit Terminal-Bench prompts to some skill at 0.66; routing only the four routed skills of that time sent 4. The other gstack skills wait for their own trigger review.
- Of gstack's own skills, only /review, /qa and /build-check route (/investigate did too until it was cut, GST-1717). In the d7 check (PR #3912), scoring every gstack skill's triggers sent 17 of 32 non-fit Terminal-Bench prompts to some skill at 0.66; routing only the four routed skills of that time sent 4. The other gstack skills wait for their own trigger review.
- Any other installed skill that lists `triggers:` in its own SKILL.md routes too (GST-3123). No host but gstack reads that field, so writing it is how a skill asks gstack to route it. A skill is gstack's own when its directory holds `.gstack-owned`, its SKILL.md links into gstack's checkout, or its name is one gstack generates or installs as an alias. A skill built from a gstack-style template, with the same generated-file banner, is not gstack's own.
- An installed skill's triggers are used only when its name is letters, digits, `_`, `:` and `-`, it lists at most 12 triggers of at most 200 characters, and every trigger is letters, digits, spaces and `. , ' ? ! / -`. Otherwise the whole skill is skipped and named in `gstack-skill-route --explain` and the routing log, so trigger text cannot leave its quotes or add markup or shell characters to the hook's line. The quoted trigger is still the skill author's own words, so install only skills you trust.
- Another installed skill's trigger needs at least two content words; a defect word counts as one word however it is spelled, so "error", "the crash" and "error exception" are each one. Shorter triggers are skipped and named the same way, and the skill keeps its others (GST-3142): a lone defect word would otherwise claim most bug reports.
- The skills that reach the threshold, 0.66 (both words of a two-word trigger, or two of three), are ranked by score; at the same score gstack's own skill comes first, then the trigger with more matched words, then the name. The line names the top skill, or the top two different skills: "this request fits /verify or /notes. Run the one that fits better ...".
- The skills that reach the threshold, 0.66 (both words of a two-word trigger, or two of three), are ranked by score; at the same score gstack's own skill comes first, then the trigger with more matched words, then the name. The line names the top skill, or the top two different skills: "this request fits /build-check or /notes. Run the one that fits better ...".
- No installed skill is named for a bug report because it fixes bugs: another installed skill's trigger that names the defect and fixing it, and nothing else ("fix this bug", "reproduce the bug in a test"), routes nothing, while a trigger that names its own target ("fix lint errors", "fix postgres bugs") still routes that kind of fix. Such a trigger is dropped quietly: `gstack-skill-route --explain` and the routing log do not list it as a problem, and the skill keeps its other triggers. Until gstack-evals#426 the hook named such a bug-fix skill (prove-it and the like) alone on every bug report (GST-3237), and first when it reached the threshold beside a gstack skill. In that preregistered test on 183 real Python bugs across Opus 5.5, GPT-6.2 Sol and particle-1, the bug-fix skill's steps were followed in 80% of sessions against 3%, but no more bugs were fixed (-1.5 points, 95% interval -3.8 to +0.9), so gstack dropped the rule. With prove-it installed, every prompt in the router's fixtures now routes as it does without it.
- A report of a defect still routes on triggers, but never to /review or /qa unless it holds one of their triggers' words in the same order, with other small words in place of the trigger's, and does not ask for a fix ("review my PR, the login page is broken" keeps /review and "find bugs on my site" keeps /qa; "the site crashes during the smoke test" and "a PR review page throws TypeError" name neither): three long first-draft reports that said "we test the site" or "find" and "broken" went to /qa (GSTA-759). "Test the site and fix what you find" reports no defect and keeps /qa.
- A prompt reads as a bug report on one strong sign: a word for what went wrong (bug, crash, hang, stuck, leak, wrong, incorrect, unexpected, regression and the like), an exception name such as `ValueError`, the verb fix, an issue template's expected or actual heading ("expected behavior", "steps to reproduce", "correct output"), a failure verb ("fails", "failed to", "doesn't work"), a "should X, not Y" or "should X, but Y" correction, a regression ("started with 0.19", "used to work", "no longer"), a security hole or lost data. Feature requests use error, exception and failure as nouns ("add error handling", "a custom exception class"), so those words, a negated verb or "never", "should" or "must", "instead of" and a word for an unwanted outcome (lost, ignored, dropped, twice) are weak signs, and it takes two different ones. A request whose title (its first line, or the first line inside its first tag such as `<task>` when nothing outside that tag names a defect, standing alone) starts with a word that asks for something new ("[Feature]", "feat:", "Enhancement", "Add", "Support", "Allow", "Implement", "Introduce", "Provide", "Expose", "New") is not a bug report, whatever errors its body mentions, unless the title itself names a defect (any strong or weak sign, the verb fix, or an error status such as "returns 404"), the body asks for a fix, or the body follows an issue template (steps to reproduce, expected or actual behavior). A title whose feature word leads a noun phrase and a verb that says what happens ("Support page shows a blank screen", "New users see a blank dashboard", "New tab is empty") states a symptom, so it is no feature title. That is how gstack-evals draws its non-fit tasks (GEVA-558). On the 34 probes in `test/fixtures/skill-route-feature-title-probes.json`, fixed before the rule was written, all 18 bug reports read as bug reports and 15 of the 16 feature requests do not; the miss, a feature title that says "no longer", is listed in the test. None of the 60 plain prompts in `test/fixtures/skill-route-plain-prompts.txt` reads as a bug report. On the 60 first-draft synthetic prompts (`test/fixtures/skill-route-synthetic-first-draft.json`, held in: the rules above were written after reading them), 42 of the 46 bug reports read as one, and 1 of the 14 feature requests does. Reading a prompt as a bug report names no skill by itself: it keeps the report from /review and /qa (above) and decides whether the defect word counts as everyday.
@@ -54,7 +54,7 @@ The hook scores the prompt against the `triggers:` list in each installed `SKILL
- When a trigger ties with another of the same skill on score and words, a whole-phrase match wins.
- A prompt longer than 5,000 characters is scored on its first 4,000 and last 1,000 characters, where the request usually sits; a log pasted between them is not scored, so its words cannot match everything. Until GST-3110 such prompts (over 8,000 characters) were never routed.
- Prompts that start with `/` (you already picked a skill) are never routed.
- Messages no person typed are never routed: Claude Code also runs the hook on a message from another session (`<cross-session-message …>`) and on a background agent's or command's hand-back (`<task-notification>`), and a peer's report full of "tests" and "review" would otherwise route to /verify or /review (#4423). Its payload has no field that marks such a turn, so the hook reads the wrapper at the start of the text and logs `reason=agent-message`.
- Messages no person typed are never routed: Claude Code also runs the hook on a message from another session (`<cross-session-message …>`) and on a background agent's or command's hand-back (`<task-notification>`), and a peer's report full of "tests" and "review" would otherwise route to /build-check or /review (#4423). Its payload has no field that marks such a turn, so the hook reads the wrapper at the start of the text and logs `reason=agent-message`.
- The injected line names its source and its off switch, and asks the model to tell you in one sentence that gstack routed the request.
The hook replaces the `## Skill routing` section gstack used to offer for your project's CLAUDE.md. In a preregistered test on Claude Opus 5.5 (gstack-evals#415), the hook alone got the bug-fix skill loaded in 45 of 60 and 48 of 60 unattended sessions, past the 39 of 60 the CLAUDE.md section managed, so gstack stopped offering the section. A section an older gstack added keeps working; gstack never edits it, and you can delete it.
@@ -68,9 +68,9 @@ The hook replaces the `## Skill routing` section gstack used to offer for your p
threshold: 0.66
skills: 63 scanned in /home/you/.claude/skills
candidates:
1.00 /verify "verify my change" (2 words, gstack)
1.00 /build-check "verify my change" (2 words, gstack)
0.50 /review "review my changes" (1 words, gstack)
route: /verify
route: /build-check
hint: gstack skill routing (UserPromptSubmit hook; ...
Add `--json` for a machine-readable answer, or `--threshold <n>` to see another cutoff. `GSTACK_SKILL_ROUTE_HINT=name|step|contract` picks the hint wording the d6 pilot compares: the skill name only (default), plus the skill's first step, or plus its contract. The step and contract styles quote only gstack's own skills, whose text ships in gstack's checkout; for any other skill the line is the default one, so an installed skill's body or contract text never reaches the model unchecked (GST-3142).
@@ -127,7 +127,7 @@ Every item has an `id` (lowercase letters, digits, `.`, `_`, `-`) and a `kind`,
| `selected_specialists_dispatched` | optional `marker`, `empty_marker` | The selection line was printed in an assistant message or a Bash result (never a fetched page or file), its names are plain (letters, digits, spaces, `_`, `.`, `-`, at most 40 characters), and each specialist it names has an Agent dispatch that mentions it. The marker is literal text in which a whole-word N stands for a number; the default is `Dispatching N specialists:`. N = 0 (`Dispatching 0 specialists: (small diff)`) or a "specialists skipped" line means zero specialists were selected, which passes. Text in parentheses is not a name (`Dispatching 1 specialists: State Machines (small diff)` selects State Machines) |
| `agent_dispatch` | `match` (regular expression, case-insensitive), optional `task_name` | An Agent dispatch's description or prompt matches `match`. On Codex only, a started `spawn_agent` whose message Codex encrypted counts when its agent is named `task_name` (lowercase letters, digits, `_`, `-`). A `marker` is rejected until the checker can bind it to the dispatch it names (GST-1242) |
There is no item for "run a test after your last edit". /verify asks for that in its text, and Opus 5.5 and GPT-6.1 Sol already did it in 96% and 89% of runs; a Stop-hook item for it added no measurable gain (gstack-evals#356), so it was removed. A contract that still lists `check_after_last_edit` keeps its other items. The checker skips that item and prints `SKILL_CONTRACT_SKIPPED <SKILL.md>: <item id>: ...` on stderr each time it reads the contract (the Stop hook and `check`). A contract whose only items use that kind is invalid.
There is no item for "run a test after your last edit". /build-check asks for that in its text, and Opus 5.5 and GPT-6.1 Sol already did it in 96% and 89% of runs; a Stop-hook item for it added no measurable gain (gstack-evals#356), so it was removed. A contract that still lists `check_after_last_edit` keeps its other items. The checker skips that item and prints `SKILL_CONTRACT_SKIPPED <SKILL.md>: <item id>: ...` on stderr each time it reads the contract (the Stop hook and `check`). A contract whose only items use that kind is invalid.
A run the skill ended early counts as met: a final `STATUS: BLOCKED` (or `Status: BLOCKED` in the skill's report) or a final message with a line that starts "Nothing to review" (/review's early exit).
+7 -5
View File
@@ -11,7 +11,7 @@ Detailed guides for every gstack skill — philosophy, workflow, and examples.
| [`/plan-design-review`](#plan-design-review) | **Senior Designer** | Interactive plan-mode design review. Rates each dimension 0-10, explains what a 10 looks like, fixes the plan. Works in plan mode. |
| [`/design-consultation`](#design-consultation) | **Design Partner** | Build a complete design system from scratch. Knows the landscape, proposes creative risks, generates realistic product mockups. Design at the heart of all other phases. |
| [`/review`](#review) | **Staff Engineer** | Looks for the bugs that pass CI but blow up in production. Auto-fixes the obvious ones. Flags completeness gaps. Advisory simplification lens flags over-built code — never blocks, never auto-applies. |
| [`/verify`](#verify) | **Build Loop** | Run the repo's checks and the tests `/ship`'s pre-gate would pick for your change, fix, repeat until green, then hand off to `/ship`. Never green on an unmapped change. |
| [`/build-check`](#build-check) | **Build Loop** | Run the repo's checks and the tests `/ship`'s pre-gate would pick for your change, fix, repeat until green, then hand off to `/ship`. Never green on an unmapped change. |
| [`/design-review`](#design-review) | **Designer Who Codes** | Live-site visual audit + fix loop. 80-item audit, then fixes what it finds. Atomic commits, before/after screenshots. |
| [`/design-shotgun`](#design-shotgun) | **Design Explorer** | Generate multiple AI design variants, open a comparison board in your browser, and iterate until you approve a direction. Taste memory biases toward your preferences. |
| [`/design-html`](#design-html) | **Design Engineer** | Generates production-quality Pretext-native HTML. Works with approved mockups, CEO plans, design reviews, or from scratch. Text reflows on resize, heights adjust to content. Smart API routing per design type. Framework detection for React/Svelte/Vue. Previews render through your Aside browser. |
@@ -662,17 +662,19 @@ I want the model imagining the production incident before it happens.
`/investigate` was cut on 2026-11-07 (GST-1717) after a preregistered eval found no gain. On 18 real bug-fix tasks that plain Opus 5.5 solves about half the time, 20 trials each, Opus told to use /investigate passed 50.0% of trials against 47.2% with no skill: +2.8 points (95% CI -5.8 to +11.4), below the 10-point lift the run could detect. A passing fix cost about 43% more with the skill. The evidence is GEVA-380's R3c result, [gstack-evals c90ab277, wiki/board/2026-11-07-geva-380-r3c-results.md](https://github.com/garrytan/gstack-evals/blob/c90ab277/wiki/board/2026-11-07-geva-380-r3c-results.md).
The skill no longer installs, and `./setup` removes an existing gstack-owned `investigate` / `gstack-investigate` entry on every host, along with the opt-in /investigate gate's hooks. For a bug, just ask the model to fix it. gstack's router also stopped giving bug reports a fix-it-test-first rule on 2026-11-17 (GST-2873), because a test on 26 hard real bugs found no clear gain from it: +3.8 points, with a 95% interval of -11.5 to +19.2. The CLAUDE.md routing block's bugs line now says only to check the cause once, then fix it; it dropped its failing-test-first step after gstack-evals#426. `/verify` runs the repo's checks while you build, and `/qa` tests a running site, API or CLI and fixes what it finds.
The skill no longer installs, and `./setup` removes an existing gstack-owned `investigate` / `gstack-investigate` entry on every host, along with the opt-in /investigate gate's hooks. For a bug, just ask the model to fix it. gstack's router also stopped giving bug reports a fix-it-test-first rule on 2026-11-17 (GST-2873), because a test on 26 hard real bugs found no clear gain from it: +3.8 points, with a 95% interval of -11.5 to +19.2. The CLAUDE.md routing block's bugs line now says only to check the cause once, then fix it; it dropped its failing-test-first step after gstack-evals#426. `/build-check` runs the repo's checks while you build, and `/qa` tests a running site, API or CLI and fixes what it finds.
---
## `/verify`
## `/build-check`
`/verify` is the loop you run while you build: change something, run the repo's checks, fix what broke, run again. `gstack-checks detect` finds the checks the repo already declares (a `gstack:verify:` line or a `## Health Stack` section in CLAUDE.md, else package.json scripts, tsconfig, eslint or biome, pyproject, Cargo.toml, go.mod) and never makes one up. `gstack-checks run` runs them plus the tests `/ship`'s pre-gate selects for your change, using pregate's own selector, so a green `/verify` predicts a green pre-gate. `/health` finds its tools with the same detector (`gstack-checks detect --for health`), which adds its test, knip, shellcheck and gbrain dimensions.
`/build-check` is the loop you run while you build: change something, run the repo's checks, fix what broke, run again. `gstack-checks detect` finds the checks the repo already declares (a `gstack:verify:` line or a `## Health Stack` section in CLAUDE.md, else package.json scripts, tsconfig, eslint or biome, pyproject, Cargo.toml, go.mod) and never makes one up. `gstack-checks run` runs them plus the tests `/ship`'s pre-gate selects for your change, using pregate's own selector, so a green `/build-check` predicts a green pre-gate. `/health` finds its tools with the same detector (`gstack-checks detect --for health`), which adds its test, knip, shellcheck and gbrain dimensions.
It asks once before running any repo command (`gstack-checks trust`) and asks again when a command changes. A touched file no test covers is `UNMAPPED`, a selection that ran zero tests is `ZERO_RUN`, and neither counts as green. A missing tool or service is reported, not worked around. It stops after five runs or when the same failure comes back twice, and asks for a focused failing test and a root-cause trace before another fix to a stubborn red. When everything passes, `gstack-checks status` prints `READY_FOR_SHIP tree=<tree>` without rerunning anything, and you run `/ship`. It never reviews, bumps versions, pushes or opens a PR.
Since Claude Code 2.1.286, any installed skill named `verify` makes Claude Code tell the model to run it right before each `git commit` (except docs-only and tests-only commits). When the model calls `/verify` that way, without you typing it or asking for checks, it gets a quick check-only pass instead of the loop: one `gstack-checks quick` call that runs the same checks and selected tests, edits nothing, adds no tests, asks nothing and skips gstack's startup steps, then ends with one line, `VERIFY PASS`, `VERIFY FAIL` or `VERIFY skipped: <reason>`. A check that runs out of time is a `FAIL` (`<check> TIMEOUT`). The checks share one `--timeout` budget, and the test stage starts with what is left. A skip (no `origin` to select tests against, commands you haven't trusted yet, nothing declared) lets the commit go ahead; a `FAIL` makes the model stop and ask you before committing. The arguments `quick` or `pre-commit` ask for the same pass. `gstack-config set verify_before_commit off` turns the pass into an immediate `VERIFY skipped`; installing with `./setup --prefix` (`/gstack-verify`) removes Claude Code's instruction altogether.
`/build-check` was called `/verify` until this release. Claude Code ships its own `/verify` skill, which checks a change end to end by running your app, and an installed skill with the same name hid it. Since Claude Code 2.1.286 the name alone also made Claude Code run gstack's skill right before every commit (#4593). Upgrading removes gstack's old `verify` and `gstack-verify` entries on every host, but never a `verify` skill of your own, so `/verify` opens Claude Code's built-in again and the before-every-commit instruction goes away.
`/build-check quick` (or `pre-commit`) runs a quick check-only pass instead of the loop: one `gstack-checks quick` call that runs the same checks and selected tests, edits nothing, adds no tests, asks nothing and skips gstack's startup steps, then ends with one line, `VERIFY PASS`, `VERIFY FAIL` or `VERIFY skipped: <reason>`. A check that runs out of time is a `FAIL` (`<check> TIMEOUT`). The checks share one `--timeout` budget, and the test stage starts with what is left. A skip (no `origin` to select tests against, commands you haven't trusted yet, nothing declared) lets the commit go ahead; a `FAIL` makes the model stop and ask you before committing. Nothing starts this pass before a commit on its own any more, so the old `verify_before_commit` setting is retired: it does nothing, and a config file that still sets it keeps working. A `disabled_skills` entry of `verify` no longer matches anything; write `build-check` instead.
---
+1 -1
View File
@@ -174,7 +174,7 @@ clones that repo on its own.
Checkpoints, learnings, decisions, the timeline and design docs follow the
marker. Records that belong to one repository never do: pregate policy and run
scratch, approvals, `/verify` results, the per-branch review log, the `/ship`
scratch, approvals, `/build-check` results, the per-branch review log, the `/ship`
spend-cap pointer, the cached solo or collaborative repo mode and the Greptile
early-push answer stay
under the slug the repository has without a marker (`gstack-slug --get