Repository navigation
Say when to use each gstack skill in Claude Code's skill list (GST-2774) - #4387
Merged
Merged
Conversation
Claude Code's listing of each gstack skill now keeps a short when-to-use clause after its first sentence, so Opus 5.5 loads /review on "review my changes" and /plan-eng-review on "plan this feature" (GSTA-558). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…budgets CI on the first head found five size and fact checks the new catalog clause moved: the per-host SKILL.md size pins, the context-budget ceilings, the deslop-shared-libs catalog byte pin, the Claude ship golden and the catalog ceiling CLAUDE.md states. /review's and /plan-eng-review's full descriptions are now shorter than before, so their pins go down, and /plan-eng-review's scope gate is unchanged from main. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…clause Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ions-say-when-to-use Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # test/fixtures/context-budget.json # test/helpers/carve-guards.ts
Deploying belongs to /land-and-deploy, so /ship's when-to-use clause keeps "ship it, create a pr, push to main" only. Budgets, the size ledger and the Claude ship golden are re-measured. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=specialist-batched Review-Finding: p1/red-team#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ions-say-when-to-use
Main grew setup-gbrain's always-loaded part to 38,621 bytes, and this branch's when-to-use clause adds 55 more, so the cap measured on the old base (38,637) is stale. The cap is now the merged measurement, 38,676. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ions-say-when-to-use Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # test/fixtures/context-budget.json
…ions-say-when-to-use Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # test/fixtures/context-budget.json # test/helpers/carve-guards.ts
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 17, 2026
- /autoplan's approval page no longer hides a reviewer's product objection behind "keep your direction". (#4431) - Every skill that loads the shared preamble, on every host, now says to ask a question once and to check a file before handing it over. (#4383) - The Captain manuals now name the `Failed or skipped:` and `Also changed:` lines that READY and lane reports carry. (#4432) - gstack's shell locks hold again on Ubuntu 26.04, where `mkdir` reports success when another process won the race (GST-2247). (#4262) - `test/gstack-lock-race.test.ts` runs the old pattern and the helper against a PATH shim that behaves like uutils 0.8.0 `mkdir`, so it runs on any runner image: the old pattern lets two of four racers win, the helper admits exactly one in each of 60 races and never overlaps across take, hold and release loops, and parallel `gstack-config` writers keep every key. (#4262) - Windows Setup E2E now runs when `bin/gstack-lock.sh` changes. (#4433) - Claude Code's skill list now says when to use each gstack skill, so Opus loads /review and /plan-eng-review when a request fits. (#4387) - A pull request's merge head can no longer keep its `/ship` receipt without a full review. (#4365) - `/ship` now counts review rounds per pull request, and the head that merges always gets a full review. (#4360) - /ship's documentation audit no longer accepts a passing result when an earlier line from the same audit said "blocked". (#4434) - /ship's documentation audit no longer spends an attempt when the audit child writes text after its result. (#4285) - The README lists the two new guides, and the install doc counts its hooks right. (#4403) - docs/releases.md now says the stable release cut treats a failed commit status as red and a pending one as still going, as it has since #4257. (#4436) - /ship's `finish --docs-requested` now accepts a docs fix when the audit named the file with a line number. (#4437) - Document the `.gstack/approval-classes.json` schema, `gstack-approval-classes` CLI commands, and owner approval citation format in `docs/ship-policy.md#approval-classes`. (#4355) - `/eval-plan` now runs four result checks instead of leaving them to judgment. (#4384) - The /review coverage-audit eval no longer fails a run that really read the source file when zsh stops a command line at an `echo ====` separator. (#4364) - Sixteen in-repo documentation links reach their section again. (#4394) - gstack agents now open every status report with what failed, what they didn't verify and what else they changed. (#4273) - Two new short guides. (#4380) - A skill you wrote whose contract still lists `check_after_last_edit` keeps the rest of its contract. (#4439) - The ship policy guide now explains how to merge any pull request with `gstack-ship-queue land`, even in a repository with one maintainer. (#4377) - /ship's test step runs a large unit suite on Linux. (#4426) - Every skill that loads the shared preamble, on every host, now says never to print a whole environment, git config or process table. (#4382) - Pull requests from /ship now open with at most three plain lines, and every merge lands as one commit titled with the PR title. (#4438) - `gstack-pr-wait`, `gstack-ci-gate` and the release cut no longer call a commit green while a check on it failed. (#4257) - `gstack-runaway` now says what a thread's cold and empty wakes cost, not just how many there were (GST-2770). (#4385) - The optional Stop hook no longer checks for a test run after the last edit, and /verify asks for it in plain words instead. (#4428) - /ship's test step says when it ran out of time, and you can set its budget. (#4429) - The remote test command no longer puts every file on one command line. (#4429) - The stable release no longer waits on the nightly Windows tests (GST-2815). (#4400) - Ubicloud fan-outs can no longer overshoot the vCPU limit, and owners no longer delete each other's VMs. (#4430) - hono is pinned to 4.13.16, which fixes five advisories the weekly OSV scan found in 4.13.13 (gstack#4406). (#4408) - `package.json` overrides (#4408) - `test/dependency-security.test.ts`: the lockfile floor check now covers `hono >= 4.13.16`. (#4408) - The nightly Windows test run finishes again. (#4409) - A short write-up checklist in ETHOS.md. (#4381) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claude Code's skill list now says when to use each gstack skill, so Opus 5.5 loads /review on "review my changes" and /plan-eng-review on "plan this feature".
Before, each Claude Code description was cut to its first sentence, which said what a skill is but rarely when to load it; in a test, /review loaded 0 of 3 times and no planning skill loaded in 9 tries.
Nothing to do: the next
./setupor upgrade picks it up. The list Claude Code loads every session grows by about 840 tokens.Why, summary and blast radius
Why
"Review my changes before I land them" loaded /review 0 of 3 times, because its Claude Code line read "Use when you review this PR's diff." and nothing said a local diff counts. Each line now ends with when to use the skill, so Opus 5.5 picks /review and /plan-eng-review on the plain requests people actually type.
Summary
Claude Code reads one short line per skill to decide what to load, and gstack cut that line to the first sentence. Most first sentences say what a skill is, not when to use it, so plain requests slipped past /review and /plan-eng-review. The generator now appends a short when-to-use clause from each skill's own trigger phrases, /review and /plan-eng-review got first sentences that match how people ask, and the root router got a real description. "deploy this" left /ship's trigger list because deploying belongs to /land-and-deploy. Router lines for harnesses that reuse the Claude Code render (dots and the generic context block) still get the full 160-character trigger list instead of the shorter clause.
Blast radius
Every generated Claude Code SKILL.md description changes, and the other hosts and
--catalog-mode=fulldo not. That is safe because the generator check passes with every tracked output fresh, all 63 Claude descriptions parse as YAML under the 260-byte cap (script ran), and the catalog, trim, trigger and harness tests pass.What changed
What changed
triggers:list ("Use for: review my changes, look over my diff, review this pr."), or its "Use when" sentence when it has no list. A first sentence that already fills the line gets no clause.gstackrouter's line says what it does instead of "Router for the gstack skill suite."--catalog-mode=fulland the other hosts are unchanged. /autoplan's line ("Auto-review pipeline ...") still describes reviewing an existing plan, so it doesn't compete with /plan-eng-review.Before and after, /review's Claude Code line:
Evidence
Opus 5.5 in Claude Code 2.1.312 at effort high, gstack from this branch installed with
./setup --host claude --no-browser, 28 preregistered trials (3 per prompt, 1 per task), every trial reported:Model spend for the run was $4.50. The run used the first commit (a52a2ac). Since then the only Claude Code line that changed is /ship's, which dropped "deploy this"; no trial prompt asks to ship or deploy.
Budgets
The catalog ceiling in
test/catalog-budget.test.tsmoves from 1,452 to 2,290 token-equivalents (measured 9,160 bytes), and 14 carved skills' skeleton and size-ratio caps intest/helpers/carve-guards.tsmove to their measured sizes (each grew by its new description, 8 to 106 bytes). /ship's union size is recorded in its size ledger, the context-budget fixture is refreshed, and the per-host size pins for /review and /plan-eng-review go down./gstack-upgradesat 7 bytes under its 1.5x size budget, so its body drops a line that repeated its description.Documentation
Documentation
Status: current. The docs already match the branch, so no edits were made.
Scope: the committed diff 18652cc..fdd9b44 (83 files: the when-to-use clause in Claude Code's trimmed skill list, rewordings of the /review, /plan-eng-review and gstack router descriptions, and the catalog budget raised to 2,290). There was no staged, unstaged or new content.
Documentation health:
Coverage debt: none found. Diagram drift: none.
Test plan
Test plan
bun test test/catalog-trim.test.ts: 29 pass, 0 fail (the buildTrimmedDescription cases were written first and failed before the generator change)bun test test/skill-triggers.test.ts: 9 pass, 0 fail (the new router-line case failed before its fix)bun run typecheck: 0 errorsbun run scripts/gen-skill-docs.ts --host all --dry-run: every tracked output freshbun run test(full free suite): runs in CI at the pushed headAgent notes
Agent notes
Issue GST-2774. Diagnosis: GSTA-558 (Captain drive reports/GSTA-558.md). Acceptance preregistration, runner and every trial: Captain drive handoffs/GSTA-559/.
Approvals
No approvals recorded for branch claude-skill-descriptions-say-when-to-use.
Plan: exempt: bug fix (--kind fix)
Plan check: exempt bug fix
Pre-Landing Review
Pre-Landing Review: 8 issues — 2 auto-fixed, 0 asked, 0 deferred; the other 6 are the advisory notes listed below
Gate edits: none detected (25 listed, 22 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=1 fixed=2 scope=frozen ledgers_read=4 fix_checks=1 dispatches=2 est_input_tokens=71270
Review depth full (63 runtime lines): batched specialist (testing, security, state-machines), Red Team, one fix-check (clean), native adversarial and outside voice (openai/gpt-6.1-sol, clean). Fixed: CONTRIBUTING.md said 2,294 instead of 2,290; dots/generic router lines took the 64-char clause instead of the full trigger list.
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
docs/proactive.md:9Non-core Claude catalog lines now carry trigger clauses, which docs/proactive.md's core-default rationale says they should not.scripts/gen-skill-docs.ts:370buildTrimmedDescription caps by UTF-16 chars (230) while catalog-budget caps name+description at 260 bytes; multibyte leads could overflow; CI catches it.plan-eng-review/SKILL.md.tmpl:7Hermes withTriggerLead drops the 'Use when...' first sentence that also carries what /plan-eng-review does.ship/SKILL.md.tmpl:7/ship prose still says 'deploy this' while its triggers list dropped it; /land-and-deploy never gained it; hosts route it differently. Needs a routing decision.lib/skill-triggers.ts:68routerLine cannot tell an authored 'Use for:' sentence from the generated clause; latent, no template has one.changelog.d/claude-skill-descriptions-say-when-to-use.md:1Changelog trial numbers have no raw run data in the repo; link the run ids in agent notes.scripts/gen-skill-docs.ts:370The clause cap counts characters while catalog-budget caps bytes; a multibyte lead could pass the generator and fail the test (CI catches it).plan-eng-review/SKILL.md.tmpl:7Hermes's trigger-first lead drops the "Use when..." sentence that also says what /plan-eng-review does.ship/SKILL.md.tmpl/ship's description prose still says "deploy this" after its trigger list dropped it; /land-and-deploy has no such trigger. Needs a routing decision.lib/skill-triggers.ts:68routerLine can't tell an authored "Use for:" sentence from the generated clause (no template has one today).changelog.d/claude-skill-descriptions-say-when-to-use.mdThe trial numbers come from the run records under handoffs/GSTA-559/, not from this repository.Exploratory QA
Smoke and revalidation passed: generator dry-run fresh for every tracked file, 63 Claude frontmatters parse as YAML under the 260-byte cap, and the 5 descriptions without "(gstack)" were untagged on main too.
TODOS
No additions or completions. #2118 (fold triggers into descriptions) is addressed for Claude Code only and stays open for the other hosts.
Agent notes