gs:benchmark-models
Skill36 starsChanged 6 months agoMITView on GitHub
Cross-model benchmark for gstack skills. (gstack)
In this repository50 other files it gives its agents.
- gs:autoplanSkill
- gs:benchmarkSkill
- gs:browseSkill
- gs:canarySkill
- gs:carefulSkill
- gs:checkpointSkill
- gs:codexSkill
- context-restoreSkill
- context-saveSkill
- gs:csoSkill
- gs:design-consultationSkill
- gs:design-htmlSkill
- gs:design-reviewSkill
- gs:design-shotgunSkill
- gs:devex-reviewSkill
- document-generateSkill
- gs:document-releaseSkill
- gs:freezeSkill
- gstack-upgradeSkill
- gs:guardSkill
- gs:healthSkill
- gs:investigateSkill
- gs:land-and-deploySkill
- gs:landing-reportSkill
- gs:learnSkill
- gs:maintainer-auditorSkill
- make-pdfSkill
- gs:office-hoursSkill
- gs:open-gstack-browserSkill
- gs:pair-agentSkill
- gs:plan-ceo-reviewSkill
- gs:plan-design-reviewSkill
- gs:plan-devex-reviewSkill
- gs:plan-eng-reviewSkill
- gs:plan-tuneSkill
- gs:qa-onlySkill
- gs:qaSkill
- gs:retroSkill
- gs:reviewSkill
- gs:scrapeSkill
- gs:setup-browser-cookiesSkill
- gs:setup-deploySkill
- gs:setup-gbrainSkill
- gs:shipSkill
- gs:skillifySkill
- gs:gstackSkill
- specSkill
- gs:sync-gbrainSkill
- gs:unfreezeSkill
- gs:gstack-upgradeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
37 rules. About 0 are common, 17 are distinctive, and 20 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
20
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
If PROACTIVE is "false", do not proactively suggest gstack skills AND do not auto-invoke skills based on conversation context.
- Very specific: line 31
If SKILL_PREFIX is "true", the user has namespaced skill names.
- Very specific: line 36
If output shows UPGRADE_AVAILABLE <old> <new>: read $GSTACK_ROOT/gstack-upgrade/SKILL.md and follow the "Inline upgrade flow" (auto-upgrade …
- Very specific: line 38
If WRITING_STYLE_PENDING is yes: You're on the first skill run after upgrading to gstack v1.
- Very specific: line 51
If A: leave explain_level unset (defaults to default).
- Very specific: line 52
If B: run $GSTACK_BIN/gstack-config set explain_level terse.
- Distinctive: line 54
Always run (regardless of choice):
- Very specific: line 63
If LAKE_INTRO is no: Before continuing, introduce the Completeness Principle.
- Distinctive: line 73
Only run open if the user says yes.
- Very specific: line 75
If TEL_PROMPTED is no AND LAKE_INTRO is yes: After the lake intro is handled, ask the user about telemetry.
- Very specific: line 88
If A: run $GSTACK_BIN/gstack-config set telemetry community
- Distinctive: line 90
If B: ask a follow-up AskUserQuestion:
- Very specific: line 100
If B→A: run $GSTACK_BIN/gstack-config set telemetry anonymous If B→B: run $GSTACK_BIN/gstack-config set telemetry off
- Very specific: line 101
If B→B: run $GSTACK_BIN/gstack-config set telemetry off
- Very specific: line 111
If PROACTIVE_PROMPTED is no AND TEL_PROMPTED is yes: After telemetry is handled, ask the user about proactive behavior.
- Very specific: line 134
If HAS_ROUTING is no AND ROUTING_DECLINED is false AND PROACTIVE_PROMPTED is yes: Check if a CLAUDE.md file exists in the project root.
- Distinctive: line 135
Check if a CLAUDE.md file exists in the project root.
- Distinctive: line 148
If A: Append this section to the end of CLAUDE.md:
- Very specific: line 180
If VENDORED_GSTACK is yes: This project has a vendored copy of gstack at .agents/skills/gstack/.
- Very specific: line 184
Use AskUserQuestion (one-time per project, check for ~/.gstack/.vendoring-warned-$SLUG marker):
- Very specific: line 200
Run $GSTACK_BIN/gstack-team-init required (or optional)
- Distinctive: line 204
If B: say "OK, you're on your own to keep the vendored copy up to date."
- Very specific: line 215
If SPAWNED_SESSION is "true", you are running inside a session spawned by an AI orchestrator (e.g., OpenClaw).
- Distinctive: line 218
Do NOT use AskUserQuestion for interactive prompts.
- Distinctive: line 219
Do NOT run upgrade checks, telemetry prompts, routing injection, or lake intro.
- Distinctive: line 249
Always prefer complete lake implementation over shortcuts.
- Distinctive: line 253
Stop and ask for architectural ambiguity.
- Very specific: line 257
Check preferences with python "bin/gstack-boot.py" --question-preference "<id>".
- Distinctive: line 296
If not found, stop and tell the user to reinstall gstack.
- Very specific: line 312
If A: list top-level gstack skills that have SKILL.md files (e.g.
- Very specific: line 314
If B: ask the user for the inline prompt.
- Distinctive: line 316
If C: ask for the path. Verify it exists.
- Distinctive: line 328
If ALL three show NOT READY: stop with a clear message.
- Distinctive: line 330
If at least one is OK: AskUserQuestion:
- Distinctive: line 343
Check if judge is available:
- Distinctive: line 349
If judge is available, AskUserQuestion:
- Distinctive: line 373
After the table prints, summarize: fastest, cheapest, highest quality, best overall.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --><!-- Regenerate: bun run gen:skill-docs -->Preamble (run first)
python "bin/gstack-boot.py" --skill benchmark-models | iexIf PROACTIVE is "false", do not proactively suggest gstack skills AND do not
auto-invoke skills based on conversation context. Only run skills the user explicitly
types (e.g., /gs:qa, /gs:ship). If you would have auto-invoked a skill, instead briefly say:
"I think /skillname might help here — want me to run it?" and wait for confirmation.
The user opted out of proactive behavior.
If SKILL_PREFIX is "true", the user has namespaced skill names. When suggesting
or invoking other gstack skills, use the /gstack- prefix (e.g., /gstack-qa instead
of /qa, /gstack-ship instead of /ship). Disk paths are unaffected — always use
$GSTACK_ROOT/[skill-name]/SKILL.md for reading skill files.
If output shows UPGRADE_AVAILABLE <old> <new>: read $GSTACK_ROOT/gstack-upgrade/SKILL.md and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined). If JUST_UPGRADED <from> <to>: tell user "Running gstack v{to} (just updated!)" and continue.
If WRITING_STYLE_PENDING is yes: You're on the first skill run after upgrading
to gstack v1. Ask the user once about the new default writing style. Use AskUserQuestion:
v1 prompts = simpler. Technical terms get a one-sentence gloss on first use, questions are framed in outcome terms, sentences are shorter.
Keep the new default, or prefer the older tighter prose?
Options:
- A) Keep the new default (recommended — good writing helps everyone)
- B) Restore V0 prose — set
explain_level: terse
If A: leave explain_level unset (defaults to default).
If B: run $GSTACK_BIN/gstack-config set explain_level terse.
Always run (regardless of choice):
Remove-Item -Force ~/.gstack/.writing-style-prompt-pending
New-Item -ItemType File -Force ~/.gstack/.writing-style-prompted | Out-NullThis only happens once. If WRITING_STYLE_PENDING is no, skip this entirely.
If LAKE_INTRO is no: Before continuing, introduce the Completeness Principle.
Tell the user: "gstack follows the Boil the Lake principle — always do the complete
thing when AI makes the marginal cost near-zero. Read more: https://garryslist.org/posts/boil-the-ocean"
Then offer to open the essay in their default browser:
Start-Process https://garryslist.org/posts/boil-the-ocean
New-Item -ItemType File -Force ~/.gstack/.completeness-intro-seen | Out-NullOnly run open if the user says yes. Always run touch/New-Item to mark as seen. This only happens once.
If TEL_PROMPTED is no AND LAKE_INTRO is yes: After the lake intro is handled,
ask the user about telemetry. Use AskUserQuestion:
Help gstack get better! Community mode shares usage data (which skills you use, how long they take, crash info) with a stable device ID so we can track trends and fix bugs faster. No code, file paths, or repo names are ever sent. Change anytime with
gstack-config set telemetry off.
Options:
- A) Help gstack get better! (recommended)
- B) No thanks
If A: run $GSTACK_BIN/gstack-config set telemetry community
If B: ask a follow-up AskUserQuestion:
How about anonymous mode? We just learn that someone used gstack — no unique ID, no way to connect sessions. Just a counter that helps us know if anyone's out there.
Options:
- A) Sure, anonymous is fine
- B) No thanks, fully off
If B→A: run $GSTACK_BIN/gstack-config set telemetry anonymous
If B→B: run $GSTACK_BIN/gstack-config set telemetry off
Always run:
New-Item -ItemType File -Force ~/.gstack/.telemetry-prompted | Out-NullThis only happens once. If TEL_PROMPTED is yes, skip this entirely.
If PROACTIVE_PROMPTED is no AND TEL_PROMPTED is yes: After telemetry is handled,
ask the user about proactive behavior. Use AskUserQuestion:
gstack can proactively figure out when you might need a skill while you work — like suggesting /gs:qa when you say "does this work?" or /gs:investigate when you hit a bug. We recommend keeping this on — it speeds up every part of your workflow.
Options:
- A) Keep it on (recommended)
- B) Turn it off — I'll type /commands myself
If A: run $GSTACK_BIN/gstack-config set proactive true
If B: run $GSTACK_BIN/gstack-config set proactive false
Always run:
New-Item -ItemType File -Force ~/.gstack/.proactive-prompted | Out-NullThis only happens once. If PROACTIVE_PROMPTED is yes, skip this entirely.
If HAS_ROUTING is no AND ROUTING_DECLINED is false AND PROACTIVE_PROMPTED is yes:
Check if a CLAUDE.md file exists in the project root. If it does not exist, create it.
Use AskUserQuestion:
gstack works best when your project's CLAUDE.md includes skill routing rules. This tells Claude to use specialized workflows (like /gs:ship, /gs:investigate, /gs:qa) instead of answering directly. It's a one-time addition, about 15 lines.
Options:
- A) Add routing rules to CLAUDE.md (recommended)
- B) No thanks, I'll invoke skills manually
If A: Append this section to the end of CLAUDE.md:
## Skill routing
When the user's request matches an available skill, ALWAYS invoke it using the Skill
tool as your FIRST action. Do NOT answer directly, do NOT use other tools first.
The skill has specialized workflows that produce better results than ad-hoc answers.
Key routing rules:
- Product ideas, "is this worth building", brainstorming → invoke gs:office-hours
- Bugs, errors, "why is this broken", 500 errors → invoke gs:investigate
- Ship, deploy, push, create PR → invoke gs:ship
- QA, test the site, find bugs → invoke gs:qa
- Code review, check my diff → invoke gs:review
- Update docs after shipping → invoke gs:document-release
- Weekly retro → invoke gs:retro
- Design system, brand → invoke gs:design-consultation
- Visual audit, design polish → invoke gs:design-review
- Architecture review → invoke gs:plan-eng-review
- Save progress, checkpoint, resume → invoke gs:checkpoint
- Code quality, health check → invoke gs:healthThen commit the change: git add CLAUDE.md && git commit -m "chore: add gstack skill routing rules to CLAUDE.md"
If B: run $GSTACK_BIN/gstack-config set routing_declined true
Say "No problem. You can add routing rules later by running gstack-config set routing_declined false and re-running any skill."
This only happens once per project. If HAS_ROUTING is yes or ROUTING_DECLINED is true, skip this entirely.
If VENDORED_GSTACK is yes: This project has a vendored copy of gstack at
.agents/skills/gstack/. Vendoring is deprecated. We will not keep vendored copies
up to date, so this project's gstack will fall behind.
Use AskUserQuestion (one-time per project, check for ~/.gstack/.vendoring-warned-$SLUG marker):
This project has gstack vendored in
.agents/skills/gstack/. Vendoring is deprecated. We won't keep this copy up to date, so you'll fall behind on new features and fixes.Want to migrate to team mode? It takes about 30 seconds.
Options:
- A) Yes, migrate to team mode now
- B) No, I'll handle it myself
If A:
- Run
git rm -r .agents/skills/gstack/ - Run
echo '.agents/skills/gstack/' >> .gitignore - Run
$GSTACK_BIN/gstack-team-init required(oroptional) - Run
git add .claude/ .gitignore CLAUDE.md && git commit -m "chore: migrate gstack from vendored to team mode" - Tell the user: "Done. Each developer now runs:
cd $GSTACK_ROOT && ./setup --team"
If B: say "OK, you're on your own to keep the vendored copy up to date."
Always run (regardless of choice):
python "bin/gstack-boot.py" --slug | Out-Null
New-Item -ItemType File -Force ~/.gstack/.vendoring-warned-${env:SLUG:-unknown} | Out-NullThis only happens once per project. If the marker file exists, skip entirely.
If SPAWNED_SESSION is "true", you are running inside a session spawned by an
AI orchestrator (e.g., OpenClaw). In spawned sessions:
- Do NOT use AskUserQuestion for interactive prompts. Auto-choose the recommended option.
- Do NOT run upgrade checks, telemetry prompts, routing injection, or lake intro.
- Focus on completing the task and reporting results via prose output.
- End with a completion report: what shipped, decisions made, anything uncertain.
Voice
Direct, concrete, builder-to-builder. No em dashes. No AI filler words. The user decides.
Context Recovery
python "bin/gstack-boot.py" --slug | Out-Null
$PROJ = "${env:GSTACK_HOME:-$HOME/.gstack}/projects/${env:SLUG:-unknown}"
if (Test-Path $PROJ) {
Write-Host "--- RECENT ARTIFACTS ---"
Get-ChildItem -Path "$PROJ/ceo-plans", "$PROJ/checkpoints" -Filter *.md -Recurse | Sort-Object LastWriteTime -Descending | Select-Object -First 3
}AskUserQuestion Format
Re-ground + Simplify + Recommend + Lettered Options (dual-scale efforts).
Writing Style
One-sentence gloss for jargon, outcome framing, short sentences, user impact, user sovereignity.
Completeness Principle — Boil the Lake
Always prefer complete lake implementation over shortcuts.
Confusion Protocol
Stop and ask for architectural ambiguity.
Question Tuning
Check preferences with python "bin/gstack-boot.py" --question-preference "<id>".
Completion Status Protocol
Report DONE, DONE_WITH_CONCERNS, BLOCKED, or NEEDS_CONTEXT.
Operational Self-Improvement
Log durable quirk/fix findings via python "bin/gstack-boot.py" --log-learnings.
Telemetry (run last)
python "bin/gstack-boot.py" --telemetry --skill "benchmark-models" --outcome "success"/benchmark-models — Cross-Model Skill Benchmark
You are running the /benchmark-models workflow. Wraps the gstack-model-benchmark binary with an interactive flow that picks a prompt, confirms providers, previews auth, and runs the benchmark.
Different from /benchmark — that skill measures web page performance (Core Web Vitals, load times). This skill measures AI model performance on gstack skills or arbitrary prompts.
Step 0: Locate the binary
$BIN = Join-Path $HOME ".claude/skills/gstack/bin/gstack-model-benchmark"
if (!(Test-Path $BIN)) {
$BIN = ".claude/skills/gstack/bin/gstack-model-benchmark"
}
if (!(Test-Path $BIN)) {
throw "ERROR: gstack-model-benchmark not found. Run ./setup in the gstack install dir."
}
Write-Host "BIN: $BIN"If not found, stop and tell the user to reinstall gstack.
Step 1: Choose a prompt
Use AskUserQuestion:
- Re-ground: current project + branch.
- Simplify: "A cross-model benchmark runs the same prompt through 2-3 AI models and shows you how they compare on speed, cost, and output quality. What prompt should we use?"
- RECOMMENDATION: A because benchmarking against a real skill exposes tool-use differences, not just raw generation.
- Options:
- A) Benchmark one of my gstack skills (we'll pick which skill next). Completeness: 10/10.
- B) Use an inline prompt — type it on the next turn. Completeness: 8/10.
- C) Point at a prompt file on disk — specify path on the next turn. Completeness: 8/10.
If A: list top-level gstack skills that have SKILL.md files (e.g. Get-ChildItem -Path . -Filter SKILL.md -Depth 2), ask the user to pick one. Use the picked SKILL.md path as the prompt file.
If B: ask the user for the inline prompt. Use it verbatim via --prompt "<text>".
If C: ask for the path. Verify it exists.
Step 2: Choose providers
python "bin/gstack-boot.py" --benchmark-dry-run --models "claude,gpt,gemini"Show the dry-run output. The "Adapter availability" section tells the user which providers will actually run (OK) vs skip (NOT READY — remediation hint included).
If ALL three show NOT READY: stop with a clear message.
If at least one is OK: AskUserQuestion:
- Simplify: "Which models should we include? The dry-run above showed which are authed."
- RECOMMENDATION: A (all authed providers) because running as many as possible gives the richest comparison.
- Options:
- A) All authed providers. Completeness: 10/10.
- B) Only Claude. Completeness: 6/10.
- C) Pick two — specify on next turn. Completeness: 8/10.
Step 3: Decide on judge
Check if judge is available:
$JUDGE_AVAILABLE = python "bin/gstack-boot.py" --check-judge-availableIf judge is available, AskUserQuestion:
- Simplify: "The quality judge scores each model's output on a 0-10 scale using Anthropic's Claude as a tiebreaker."
- RECOMMENDATION: A — the whole point is comparing quality, not just speed.
- Options:
- A) Enable judge (adds ~$0.05). Completeness: 10/10.
- B) Skip judge — speed/cost/tokens only. Completeness: 7/10.
Step 4: Run the benchmark
Construct the command and run:
gbrain-benchmark <prompt-spec> --models <picked-models>Stream the output as it arrives.
Step 5: Interpret results
After the table prints, summarize: fastest, cheapest, highest quality, best overall.
Step 6: Offer to save results
AskUserQuestion:
- Simplify: "Save this benchmark as JSON so you can compare future runs against it?"
- RECOMMENDATION: A — skill performance drifts as providers update their models; a saved baseline catches quality regressions.
- Options:
- A) Save to
~/.gstack/benchmarks/<date>-<skill-or-prompt-slug>.json. Completeness: 10/10. - B) Just print, don't save. Completeness: 5/10.
- A) Save to
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

