model-routing-golden

model-routing-golden is a skill for Claude Code, Codex from github/gh-aw. It costs 15 tokens per session (378 once invoked), scanned A, original, MIT.

A workflow for maintaining golden test fixtures: saved inputs and expected outputs used to detect changes in model-routing behaviour. It verifies or updates those files only after the change has been investigated and approved.

In plain words
What is it for?
Use it to verify fixtures, capture new workflow runs, replace an intentionally changed fixture, and review routing status, token totals, warnings, and cost-related output.
Why use it?
It prevents a failing comparison from being hidden by blindly regenerating expected results. It also preserves separate fixtures when missing data causes a known loss of information.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/model-routing-golden.py --run <id-or-url> --case <case-name>.

Good fit Use it to verify fixtures, capture new workflow runs, replace an intentionally changed fixture, and review routing status, token totals, warnings, and cost-related output.

Compare 6 skills from other repositories ↓
About the project

GitHub Agentic Workflows is a GitHub CLI extension that lets developers define AI-assisted repository automation in Markdown and run it through GitHub Actions. It is intended for tasks requiring interpretation or reasoning, such as issue triage, pull-request review, CI investigation, documentation maintenance, and dependency analysis. The catalogue entries provide skills and agents for working with these workflows.

github/gh-aw · 5,579 stars · on GitHub · gh.io

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/github/gh-aw
agentmods
npx agentmods add skills/github/gh-aw/model-routing-golden

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for model-routing-golden

README.md
[![agentmods](https://agentmods.dev/badge/skills/github/gh-aw/model-routing-golden/github.svg)](https://agentmods.dev/skills/github/gh-aw/model-routing-golden)
Your own site
<a href="https://agentmods.dev/skills/github/gh-aw/model-routing-golden"><img src="https://agentmods.dev/badge/skills/github/gh-aw/model-routing-golden/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for model-routing-golden

Your own site · 80×15
<a href="https://agentmods.dev/skills/github/gh-aw/model-routing-golden"><img src="https://agentmods.dev/badge/skills/github/gh-aw/model-routing-golden.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 378 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00378
Opus 5.5 $0.00006 $0.00151
Sonnet 5.5 $0.00003 $0.00076
Haiku 4.5 $0.00002 $0.00038

Measured 27d ago against content hash 4153e11d1cd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

model-routing-golden scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/model-routing-golden/SKILL.md · 47 lines

What it actually says

Model-Routing Golden Fixtures

Use this skill when a model-routing golden test fails, analysis output changes intentionally, or a new routed workflow run needs coverage.

Verify

Run make verify-model-routing-golden (or python3 scripts/model-routing-golden.py --verify) before changing fixtures. Treat a mismatch as a behavior change to investigate, not a reason to regenerate immediately.

Refresh expected outputs

When analysis behavior intentionally changes, run make update-model-routing-golden. Review the complete diff for each expected*.json file and confirm that routing status, classifier attribution, AWF credits, token totals, warnings, and subagent costs match the intended behavior. Keep separate legacy goldens when missing artifacts cause documented information loss. Do not regenerate outputs merely to silence an unexplained failure.

Add or replace a fixture

Capture a run with:

python3 scripts/model-routing-golden.py --run <id-or-url> --case <case-name>

Use --replace only when intentionally updating an existing source run. The tool downloads through the local gh aw logs artifact path, minimizes and redacts its files, and refuses to write if analysis on the fixture differs from analysis on the full download. Use --source-dir to exercise capture against the synthetic downloaded-run fixture without GitHub access.

Add the case and its source scenario to modelRoutingGoldenCases and the fixture README. Then run make update-model-routing-golden, inspect all generated files, and run make verify-model-routing-golden. Retain the established file layout and logs/ ignore exception so raw proxy-log fixtures remain tracked.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 27d ago First seen · 47 lines · 15 tokens per session scan A 4153e11d1cd7

Subscribe to this mod's changes

model-routing-golden is a skill published in the GitHub repository github/gh-aw (5,579 stars, last pushed yesterday), licensed MIT. It adds 15 tokens to every session and 378 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-11.

Related

model-routing-golden compared with skills from other repositories

model-routing-golden next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
model-routing-goldengithub/gh-awSkill5.6kyesterdayMITA15Claude Code, Codex
watch-prjustincampbell/gh-watchSkill47d agoMITA48Claude Code
watch-tagjustincampbell/gh-watchSkill47d agoMITA62Claude Code
watch-branchjustincampbell/gh-watchSkill47d agoMITA45Claude Code
watch-commitjustincampbell/gh-watchSkill47d agoMITA48Claude Code
c-githubdaxaur/openpawSkill1775mo agoMITA48Claude Code, Codex
update-architecture-docsAlexSkrypnyk/scaffoldSkill11yesterdayGPL-3.0A46Claude Code