mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-26 18:04:31 +01:00
Say when to use each gstack skill in Claude Code's skill list (GST-2774) (#4387)
* Say when to use each gstack skill in Claude Code's skill list (GST-2774) 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> * Keep /review and /plan-eng-review within their size pins and refresh 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> * Say which skills keep no when-to-use clause in the changelog entry Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * Update the catalog budget and voice-trigger docs for the when-to-use clause Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * Drop "deploy this" from /ship's Claude Code skill list line 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> * fix: pre-landing review fixes 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> * Re-measure the setup-gbrain size cap after merging main 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> --------- Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
127bcd6d55
commit
ab114c5308
83 files changed
+277
-216
No files matched your search
@@ -6,8 +6,9 @@
|
||||
* - Router lines (lib/harness-register.ts, 160 chars): the description's own
|
||||
* trigger sentence (its first sentence that starts "Use when", "Use to",
|
||||
* "Use for", ...), followed by the description's first sentence when both
|
||||
* fit. A description with no trigger sentence (the catalog-trimmed Claude
|
||||
* render) uses the triggers list below instead.
|
||||
* fit. A description with no trigger sentence, or whose trigger sentence is
|
||||
* the catalog-trimmed Claude render's short "Use for:" clause, uses the
|
||||
* triggers list below instead.
|
||||
* - Hermes descriptions (scripts/gen-skill-docs.ts, hosts/hermes.ts): a lead
|
||||
* of at most 57 chars, the part Hermes's skills index shows: "Use for: "
|
||||
* and the skill's `triggers:` list in frontmatter order, as many whole
|
||||
@@ -63,7 +64,8 @@ export function withTriggerLead(description: string, triggers: string[], max: nu
|
||||
/** A router line of at most max chars: the trigger part first, then the description's first sentence when both fit. */
|
||||
export function routerLine(description: string, triggers: string[], max = 160): string {
|
||||
const first = sentences(description)[0] ?? '';
|
||||
const trigger = triggerSentence(description) || triggerList(triggers, max);
|
||||
const own = triggerSentence(description);
|
||||
const trigger = (triggers.length && own.startsWith('Use for:') ? '' : own) || triggerList(triggers, max);
|
||||
if (!trigger) return cutWords(first, max);
|
||||
const both = trigger + ' ' + first;
|
||||
return first && first !== trigger && both.length <= max ? both : cutWords(trigger, max);
|
||||
|
||||
Reference in new issue
Block a user