cost-routing — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited cost-routing (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
The main context runs on opus. Every Read, Grep, Glob, and Edit invoked at this tier bills at opus rates. Most operations don't need opus reasoning — they need a model that can run a command and report a result. This skill is the dispatch gate that stops opus from doing work haiku or sonnet would complete just as correctly for a fraction of the cost.
| Tier | Model | Owns | Example requests |
|---|---|---|---|
| scout | haiku | Read-only lookup, search, location | "Where is Foo defined?", "List files matching *.test.ts", "Count LOC in src/", "Read X and report Y" |
| coder | sonnet | Bounded code changes at known locations | "Add a test for parseDate", "Refactor auth.ts to use the new client", "Rename A → B repo-wide" |
| architect | opus | Ambiguous spec, tradeoff analysis, design | "Should we use Redux or Zustand?", "Draft an ADR for the auth rewrite", "Why is this architecture failing?" |
Before reaching for any tool, run this classifier against the incoming request:
haiku-scout. Never call Read / Grep / Glob in the main context.sonnet-coder with a precise brief.model: "opus".Tool split (CodeGraph first, Memtrace for heavy hits). Use CodeGraph (codegraph_explore / codegraph CLI) for symbol lookup, file reads, callers/callees, and ordinary blast radius. Reserve Memtrace (and cortex) for git history/evolution, recall_decision, cross-repo/API topology, risky blast radius (get_impact), PR review evidence, and dead code/complexity, because Memtrace costs quota. If ~/.claude/state/memtrace-quota.json says blocked with a future until, never call Memtrace; use CodeGraph until that time.
If the answer to #1 is yes and you find yourself reaching for Read / Grep / Glob in the main context anyway — STOP. That is the violation this skill exists to prevent.
See PROMPTS.md for the canonical brief for each tier. Use them verbatim — every field is load-bearing.
See EXAMPLES.md for ~15 classifications across the boundary cases (multi-file search, bug fixes with unknown root cause, "small" edits that hide design questions).
The companion PreToolUse hook (hooks/pre-tool-use-cost-check.sh) warns when Read / Grep / Glob fires in the main context. Register it in ~/.claude/settings.json (see EXAMPLES.md § Installing the hook).
COST_ROUTING_BLOCK=1 upgrades the warning to a hard deny — useful for sessions where you want zero tolerance.COST_ROUTING_BYPASS=1 silences the hook for legitimate one-shot inspection (a single Read of a file the user pasted a path to).The hook cannot perfectly distinguish "top level opus" from "inside a subagent" — Claude Code does not currently expose that bit to hooks. It warns on every Read / Grep / Glob; you teach yourself to recognize the warning as "I'm probably in opus, should I have dispatched?"
gh pr view, docker ps). Use Bash directly — wrapping a one-shot command in an agent is pure overhead.Agent with subagent_type: "general-purpose" and no model: parameter inherits the parent tier (opus → opus). Always pin the model.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.