Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ a skill's own bash.

**Size budgets:** generated SKILL.md files warn above 160KB (~40K tokens);
`test/catalog-budget.test.ts` caps the always-loaded skill catalog at
`CATALOG_BUDGET_TOKEN_EQUIVALENTS` (1,452 today; each new skill ratchets it); and
`CATALOG_BUDGET_TOKEN_EQUIVALENTS` (2,290 today; each new skill ratchets it); and
`test/context-budget-ratchet.test.ts` pins per-skill token ceilings against
`test/fixtures/context-budget.json` (for legitimate growth or a landed
reduction, re-run `bun test/helpers/capture-context-budget.ts` and commit the
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ eval files, and misses the strict classifier. No API keys needed.
- **Generator tests** (`test/gen-skill-docs.test.ts`) — Tests the template system: verifies placeholders resolve correctly, output includes value hints for flags (e.g. `-d <N>` not just `-d`), enriched descriptions for key commands (e.g. `is` lists valid states, `press` lists key examples), and that a template's `codex_default_prompt:` frontmatter key reaches the Codex `agents/openai.yaml` `default_prompt` (a template without the key keeps `Use <name> for this task.`) while no host's SKILL.md render carries the key.
- **Design detector, catalog, and DESIGN.md** (`test/gstack-design-detect.test.ts`, `test/design-detect-contract.test.ts`, `test/design-catalog.test.ts`, `test/design-checklist-sync.test.ts`, `test/design-md.test.ts`, `test/frontend-scope.test.ts`, `test/impeccable-fixtures.test.ts`) — Drive `bin/gstack-design-detect.ts` through the fake engine in `test/fixtures/fake-impeccable.ts` (probe order, the never-execute-a-repository-file rule, the `--changed` target allow-list, `design_detector: off`, analytics lines, output sanitizing), pin the catalog invariants and the generated `review/design-checklist.md`, round-trip the open DESIGN.md reader/writer, and check the real engine captures (`test/fixtures/impeccable-*.json`, engine 0.1.3) against the contract. `test/dom-dump-hygiene.test.ts` runs `lib/dom-dump.js` in a real Chromium page through the built browse binary; it self-skips without the binary and is opt-in outside CI (`GSTACK_DOM_DUMP_HYGIENE=1`).
- **Tier-alignment invariant** (`test/e2e-tier-alignment.test.ts`) — For every self-gated `test/skill-e2e-*.test.ts` named in a touchfiles dep list, the file's `EVALS_TIER` self-gate must match its declared tier in `E2E_TIERS`. Kills the "inert demotion" class where a test is re-tiered in `touchfiles.ts` but the file still gates on the old tier and keeps running in the wrong lane. Unmapped or mixed-tier files are reported, never silently skipped.
- **Catalog budget** (`test/catalog-budget.test.ts`) — Caps the aggregate discovery surface: the sum of every skill's frontmatter `name` + `description` (what every host loads at discovery, every session) must stay under 1,452 token-equivalents, with a 260-byte per-skill cap. Counting goes through the shared census in `test/helpers/skill-census.ts` (physical files vs authored skills vs registry entries — three deliberately different counts). Adding a skill? The failure message carries the re-measure + ratchet protocol.
- **Catalog budget** (`test/catalog-budget.test.ts`) — Caps the aggregate discovery surface: the sum of every skill's frontmatter `name` + `description` (what every host loads at discovery, every session) must stay under 2,290 token-equivalents, with a 260-byte per-skill cap. Counting goes through the shared census in `test/helpers/skill-census.ts` (physical files vs authored skills vs registry entries — three deliberately different counts). Adding a skill? The failure message carries the re-measure + ratchet protocol.
- **Context-budget ratchet** (`test/context-budget-ratchet.test.ts`) — CI ceilings on the two token ledgers the catalog budget doesn't cover: the always-on full-frontmatter aggregate and each skill's per-invocation eager tokens (SKILL.md + forced-read references), graded against `test/fixtures/context-budget.json` via `lib/context-bill.ts`. New skills fail until they have a ceiling; ceilings for removed skills must be pruned. Legitimate growth or a landed reduction: re-run `bun test/helpers/capture-context-budget.ts` and commit the refreshed fixture in the same commit, so the change is a visible decision in the diff.
- **Skill-to-bin drift ratchet** (`test/skill-bin-drift.test.ts`) — `scripts/skill-bin-drift.ts` statically reads every gstack bin call in skill templates, carved sections, references and the Claude-host renders (it never executes a bin) and fails with `DRIFT_UNKNOWN_BIN` or `DRIFT_UNKNOWN_FLAG` at file:line when a skill names a bin missing from `bin/` or a flag that bin's parser does not accept. Known misses live in `test/fixtures/skill-bin-drift-allowlist.json`, which only shrinks: a new finding fails, and so does an entry that no longer reproduces. Check one skill with `bun run scripts/skill-bin-drift.ts --skill <name>`; bins with permissive parsers or no usage text are reported, never failed.
- **Dependency security regressions** (`test/dependency-security.test.ts`) — Run `bun test test/dependency-security.test.ts` to check the resolved `sharp`, `adm-zip`, `qs`, `@hono/node-server` and `hono` version floors, load Sharp, verify ordinary ZIP extraction, and reject extraction through destination-file and destination-directory symlinks. The symlink cases skip Windows. These checks complement the OSV scan; they do not change its existing exceptions.
Expand Down
2 changes: 1 addition & 1 deletion SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: gstack
preamble-tier: 1
version: 1.2.0
description: Router for the gstack skill suite. (gstack)
description: "Picks the gstack skill that fits a request: planning, review, QA, shipping, debugging, docs, security or design. Use for: gstack, which gstack skill, route this with gstack. (gstack)"
allowed-tools:
- Bash
- Read
Expand Down
4 changes: 2 additions & 2 deletions SKILL.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: gstack
preamble-tier: 1
version: 1.2.0
description: |
Router for the gstack skill suite. Sends any gstack request to the right skill
(planning, review, QA, shipping, debugging, docs, security, design). Routes QA by
Picks the gstack skill that fits a request: planning, review, QA, shipping,
debugging, docs, security or design. Routes QA by
intent and browser interaction to /browse. Use when you invoke gstack without a specific
skill, or ask "which gstack skill fits this?". (gstack)
allowed-tools:
Expand Down
2 changes: 1 addition & 1 deletion autoplan/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: autoplan
preamble-tier: 3
version: 1.0.0
description: "Auto-review pipeline — runs the CEO, design, eng and DX reviews in order (lean run: one reviewer), auto-deciding. (gstack)"
description: "Auto-review pipeline — runs the CEO, design, eng and DX reviews in order (lean run: one reviewer), auto-deciding. Use for: run all reviews, automatic review pipeline. (gstack)"
triggers:
- run all reviews
- automatic review pipeline
Expand Down
2 changes: 1 addition & 1 deletion benchmark-models/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: benchmark-models
preamble-tier: 1
version: 1.0.0
description: Cross-model benchmark for gstack skills. (gstack)
description: "Cross-model benchmark for gstack skills. Use for: cross model benchmark, compare claude gpt gemini. (gstack)"
triggers:
- cross model benchmark
- compare claude gpt gemini
Expand Down
2 changes: 1 addition & 1 deletion benchmark/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: benchmark
preamble-tier: 1
version: 1.0.0
description: Web performance regression detection. (gstack)
description: "Web performance regression detection. Use for: web performance benchmark, check page speed. (gstack)"
triggers:
- web performance benchmark
- check page speed
Expand Down
2 changes: 1 addition & 1 deletion browse/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: browse
preamble-tier: 1
version: 2.0.0
description: "Drive a real browser through Aside: open a page, read it, click through a flow, take screenshots, check console errors. (gstack)"
description: "Drive a real browser through Aside: open a page, read it, click through a flow, take screenshots, check console errors. Use for: browse a page, open this url, take page screenshot. (gstack)"
triggers:
- browse a page
- open this url
Expand Down
2 changes: 1 addition & 1 deletion canary/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: canary
preamble-tier: 2
version: 1.0.0
description: Post-deploy canary monitoring. (gstack)
description: "Post-deploy canary monitoring. Use for: monitor after deploy, canary check. (gstack)"
allowed-tools:
- Bash
- Read
Expand Down
2 changes: 1 addition & 1 deletion captain/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: captain
preamble-tier: 2
version: 1.0.0
description: "Run a crew of coding agents from one controller (also /crew): lanes send READY blocks and never merge; the controller merges through trains, keeps the digest, relays approvals, fixes flakes daily. (gstack)"
description: "Run a crew of coding agents from one controller (also /crew): lanes send READY blocks and never merge; the controller merges through trains, keeps the digest, relays approvals, fixes flakes daily. Use for: captain, crew. (gstack)"
triggers:
- captain
- crew
Expand Down
2 changes: 1 addition & 1 deletion careful/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: careful
version: 0.1.0
description: Safety guardrails for destructive commands. (gstack)
description: "Safety guardrails for destructive commands. Use for: be careful, warn before destructive, safety mode. (gstack)"
triggers:
- be careful
- warn before destructive
Expand Down
1 change: 1 addition & 0 deletions changelog.d/claude-skill-descriptions-say-when-to-use.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- **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.** gstack cut every Claude Code description to its first sentence, which says what a skill is but usually not when to load it. In a test with Opus 5.5 in Claude Code, "Review my changes before I land them" loaded /review 0 of 3 times (its line read "Use when you review this PR's diff."), and "plan this feature" loaded no gstack skill in 9 tries. Almost every Claude Code description now keeps a short when-to-use clause after its first sentence. The clause is the skill's own trigger phrases ("Use for: review my changes, look over my diff, review this pr."), or its "Use when" sentence when it has no trigger list; /design-consultation and /eval-plan keep only their first sentence. /review's line no longer assumes a PR exists (local changes and a branch count), /plan-eng-review says it plans a feature before you build it, and the `gstack` router's line says what it does instead of "Router for the gstack skill suite." The skill list Claude Code loads every session grows by about 840 tokens. The clause is added only to Claude Code's trimmed list, so `--catalog-mode=full` and the other hosts don't get it.
2 changes: 1 addition & 1 deletion codex/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: codex
preamble-tier: 3
version: 1.0.0
description: OpenAI Codex CLI wrapper — three modes. (gstack)
description: "OpenAI Codex CLI wrapper — three modes. Use for: codex review, second opinion, outside voice challenge. (gstack)"
triggers:
- codex review
- second opinion
Expand Down
2 changes: 1 addition & 1 deletion context-restore/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: context-restore
preamble-tier: 2
version: 1.0.0
description: Restore working context saved earlier by /context-save. (gstack)
description: "Restore working context saved earlier by /context-save. Use for: resume where i left off, restore context, where was i. (gstack)"
allowed-tools:
- Bash
- Read
Expand Down
2 changes: 1 addition & 1 deletion context-save/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: context-save
preamble-tier: 2
version: 1.0.0
description: Save working context. (gstack)
description: "Save working context. Use for: save progress, save state, save my work, context save. (gstack)"
allowed-tools:
- Bash
- Read
Expand Down
2 changes: 1 addition & 1 deletion cso/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: cso
version: 3.0.0
description: "Security audit: supported static findings; qualified profiles add reproduction and repair candidates. (gstack)"
description: "Security audit: supported static findings; qualified profiles add reproduction and repair candidates. Use for: security audit, check for vulnerabilities. (gstack)"
allowed-tools:
- "Bash(~/.claude/skills/gstack/bin/gstack-cso-launcher *)"
- "Bash(~/.claude/skills/gstack/bin/gstack-cso-launcher.exe *)"
Expand Down
2 changes: 1 addition & 1 deletion design-html/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: design-html
preamble-tier: 2
version: 1.0.0
description: "Design finalization: generates production-quality Pretext-native HTML/CSS. (gstack)"
description: "Design finalization: generates production-quality Pretext-native HTML/CSS. Use for: build the design, code the mockup, make design real. (gstack)"
triggers:
- build the design
- code the mockup
Expand Down
2 changes: 1 addition & 1 deletion design-motion/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: design-motion
preamble-tier: 2
version: 1.0.0
description: "Design motion: animate an approved design into a seamless MP4 and GIF loop. (gstack)"
description: "Design motion: animate an approved design into a seamless MP4 and GIF loop. Use for: animate this design, make a showcase loop. (gstack)"
triggers:
- animate this design
- make a showcase loop
Expand Down
2 changes: 1 addition & 1 deletion design-review/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: design-review
preamble-tier: 4
version: 2.0.0
description: "Designer's eye QA: finds visual inconsistency, spacing issues, hierarchy problems, AI slop patterns, and slow interactions — then fixes them; --build checks UI while you build it. (gstack)"
description: "Designer's eye QA: finds visual inconsistency, spacing issues, hierarchy problems, AI slop patterns, and slow interactions — then fixes them; --build checks UI while you build it. Use for: visual design audit, design qa. (gstack)"
allowed-tools:
- Bash
- Read
Expand Down
2 changes: 1 addition & 1 deletion design-shotgun/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: design-shotgun
preamble-tier: 2
version: 1.0.0
description: "Design shotgun: generate multiple AI design variants, open a comparison board, collect structured feedback, and iterate. (gstack)"
description: "Design shotgun: generate multiple AI design variants, open a comparison board, collect structured feedback, and iterate. Use for: explore design variants, show me design options. (gstack)"
triggers:
- explore design variants
- show me design options
Expand Down
2 changes: 1 addition & 1 deletion deslop-shared-libs/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: deslop-shared-libs
version: 1.0.0
description: Find worthwhile shared-code extractions in recent work. (gstack)
description: "Find worthwhile shared-code extractions in recent work. Use for: find code worth sharing. (gstack)"
allowed-tools:
- Bash
- Read
Expand Down
2 changes: 1 addition & 1 deletion devex-review/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: devex-review
preamble-tier: 3
version: 1.0.0
description: Live developer experience audit. (gstack)
description: "Live developer experience audit. Use for: live dx audit, test developer experience. (gstack)"
triggers:
- live dx audit
- test developer experience
Expand Down
2 changes: 1 addition & 1 deletion diagram/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: diagram
preamble-tier: 1
version: 1.0.0
description: "Turn an English description (or mermaid source) into a diagram triplet: the source, an editable .excalidraw file you can open on excalidraw.com, and rendered SVG + PNG. (gstack)"
description: "Turn an English description (or mermaid source) into a diagram triplet: the source, an editable .excalidraw file you can open on excalidraw.com, and rendered SVG + PNG. Use for: make a diagram, draw a diagram. (gstack)"
allowed-tools:
- Bash
- Read
Expand Down
2 changes: 1 addition & 1 deletion docs/CONTRIBUTOR_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cuts to the coverage audit, review army, or voice directive have real quality co

A second, harder ceiling guards the DISCOVERY surface: `test/catalog-budget.test.ts`
caps the aggregate frontmatter `name` + `description` across all skills at
`CATALOG_BUDGET_TOKEN_EQUIVALENTS` (1,452 today; each new skill ratchets it)
`CATALOG_BUDGET_TOKEN_EQUIVALENTS` (2,290 today; each new skill ratchets it)
token-equivalents (260-byte per-skill sub-cap), counted through the shared census
in `test/helpers/skill-census.ts`. This one is enforced, not a warning — every
host loads the full catalog every session, so growth here taxes every
Expand Down
9 changes: 5 additions & 4 deletions docs/voice-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ matching surface. Claude Code and Codex choose a skill from its name and
description, so a phrase that appears only under `triggers:` does not activate
the skill (Codex output drops the field; the GBrain host keeps it). The four core
skills (/office-hours, /review, /qa, /ship) carry their `triggers:` phrases in
the description itself: every phrase in the full description, and at least one
in the one-line catalog entry Claude Code reads ("test the site" for /qa, "ship
it" for /ship). The other skills do not, because under the `core` default they
wait for you to type them (docs/proactive.md).
the full description itself. On Claude Code, the one-line catalog entry for most
skills also ends with a short when-to-use clause built from the first few
`triggers:` phrases ("Use for: qa test this, find bugs on site, test the
site."), or from the skill's "Use when" sentence when it has no trigger list;
`--catalog-mode=full` and the other hosts don't get that clause.
2 changes: 1 addition & 1 deletion document-generate/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: document-generate
preamble-tier: 2
version: 1.0.0
description: Generate missing documentation from scratch for a feature, module, or entire project. (gstack)
description: "Generate missing documentation from scratch for a feature, module, or entire project. Use for: write docs for this, generate documentation. (gstack)"
allowed-tools:
- Bash
- Read
Expand Down
2 changes: 1 addition & 1 deletion document-release/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: document-release
preamble-tier: 2
version: 1.0.0
description: Release documentation audit. (gstack)
description: "Release documentation audit. Use for: update docs after ship, document what changed. (gstack)"
allowed-tools:
- Bash
- Read
Expand Down
2 changes: 1 addition & 1 deletion freeze/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: freeze
version: 0.1.0
description: Restrict file edits to a specific directory for the session. (gstack)
description: "Restrict file edits to a specific directory for the session. Use for: freeze edits to directory, lock editing scope. (gstack)"
triggers:
- freeze edits to directory
- lock editing scope
Expand Down
4 changes: 1 addition & 3 deletions gstack-upgrade/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: gstack-upgrade
version: 1.1.0
description: Upgrade gstack to the latest version.
description: "Upgrade gstack to the latest version. Use for: upgrade gstack, update gstack version."
triggers:
- upgrade gstack
- update gstack version
Expand All @@ -17,8 +17,6 @@ allowed-tools:

# /gstack-upgrade

Upgrade gstack to the latest version and show what's new.

## Inline upgrade flow

This section is referenced by all skill preambles when they detect `UPGRADE_AVAILABLE`.
Expand Down
2 changes: 0 additions & 2 deletions gstack-upgrade/SKILL.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ allowed-tools:

# /gstack-upgrade

Upgrade gstack to the latest version and show what's new.

## Inline upgrade flow

This section is referenced by all skill preambles when they detect `UPGRADE_AVAILABLE`.
Expand Down
6 changes: 3 additions & 3 deletions gstack/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Conventions:
- [/document-release](document-release/SKILL.md): Release documentation audit.
- [/eval-plan](eval-plan/SKILL.md): Preregister a paid eval (bars, arms, decoys, stop rules), dry-run it at zero cost, then run a three-item priced pilot whose spend table gates approval.
- [/freeze](freeze/SKILL.md): Restrict file edits to a specific directory for the session.
- [/gstack](SKILL.md): Router for the gstack skill suite.
- [/gstack](SKILL.md): Picks the gstack skill that fits a request: planning, review, QA, shipping, debugging, docs, security or design.
- [/gstack-upgrade](gstack-upgrade/SKILL.md): Upgrade gstack to the latest version.
- [/guard](guard/SKILL.md): Full safety mode: destructive command warnings + directory-scoped edits.
- [/health](health/SKILL.md): Code quality dashboard.
Expand All @@ -53,12 +53,12 @@ Conventions:
- [/plan-ceo-review](plan-ceo-review/SKILL.md): CEO/founder-mode plan review.
- [/plan-design-review](plan-design-review/SKILL.md): Designer's eye plan review — interactive, like CEO and Eng review.
- [/plan-devex-review](plan-devex-review/SKILL.md): Interactive developer experience plan review.
- [/plan-eng-review](plan-eng-review/SKILL.md): Eng manager-mode plan review.
- [/plan-eng-review](plan-eng-review/SKILL.md): Use when you plan a feature before building it, or review a plan: locks in architecture, data flow, diagrams, edge cases, test coverage and performance.
- [/plan-tune](plan-tune/SKILL.md): Self-tuning question sensitivity + developer psychographic for gstack (v1: observational).
- [/qa](qa/SKILL.md): Use when you test the site, API or CLI and fix bugs.
- [/qa-only](qa-only/SKILL.md): Report browser/API/CLI/job/worker/webhook bugs.
- [/retro](retro/SKILL.md): Weekly engineering retrospective.
- [/review](review/SKILL.md): Use when you review this PR's diff.
- [/review](review/SKILL.md): Use when you review a diff before it lands: local changes, a branch or a PR.
- [/runaway-stopper](runaway-stopper/SKILL.md): Find runaway Capy threads and subagents, stop or rotate them safely, and prevent repeats.
- [/scrape](scrape/SKILL.md): Pull data from a web page through the Aside browser — your real, already signed-in sessions.
- [/setup-browser-cookies](setup-browser-cookies/SKILL.md): Import cookies from your real Chromium browser into the headless browse session.
Expand Down
Loading
Loading