route-work-to-the-right-model
Skill2 starsChanged 3 months agoApache-2.0View on GitHub
Use before starting any change, to decide how much validation it needs and which model and effort to spend on it. Answers "is this a one-review change or a three-review change?" without arguing about it.
In this repository53 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- block-dangerous-git-commandsSkill
- break-work-into-ticketsSkill
- build-a-domain-modelSkill
- build-a-throwaway-prototypeSkill
- check-if-data-is-safe-to-deleteSkill
- check-the-licence-before-you-copySkill
- choose-the-right-code-reviewSkill
- debug-a-silent-failureSkill
- deploy-to-production-safelySkill
- design-deep-modulesSkill
- detect-stale-documentationSkill
- diagnose-a-hard-bugSkill
- document-with-evidenceSkill
- edit-a-live-config-safelySkill
- find-architecture-improvementsSkill
- generate-a-setup-wizardSkill
- get-a-second-model-opinionSkill
- implement-from-a-specSkill
- investigate-an-unfamiliar-systemSkill
- keep-agent-memory-accurateSkill
- keep-secrets-out-of-the-repositorySkill
- know-what-a-change-costsSkill
- look-at-the-rendered-pageSkill
- make-the-next-failure-loudSkill
- map-an-undocumented-systemSkill
- map-the-attack-surfaceSkill
- pick-the-right-skillSkill
- plan-work-too-big-for-one-sessionSkill
- research-with-primary-sourcesSkill
- resolve-merge-conflictsSkill
- review-a-plan-before-you-buildSkill
- review-changes-against-spec-and-standardsSkill
- review-code-you-did-not-writeSkill
- root-cause-analysis-firstSkill
- set-up-pre-commit-hooksSkill
- set-up-the-issue-trackerSkill
- set-up-verified-documentationSkill
- stress-test-a-decisionSkill
- stress-test-a-plan-with-docsSkill
- supersede-outdated-docsSkill
- survive-someone-elses-breaking-changeSkill
- tddSkill
- teach-a-conceptSkill
- triage-issues-and-prsSkill
- turn-a-decision-into-a-questionnaireSkill
- validate-your-validatorSkill
- verify-before-saying-doneSkill
- write-a-handover-that-worksSkill
- write-a-spec-from-a-conversationSkill
- write-docs-for-agentsSkill
- write-docs-people-can-findSkill
- write-the-rollback-plan-firstSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 76
If you know it touches something on the level-3 list, say so in the description and re-run.
≈ “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
Route work to the right model
Deciding how much validation a change needs, per change, in the moment, is how teams end up validating nothing.
The decision always gets made under pressure, by the person who most wants the answer to be "not much". So it is made in advance, from the kind of work, by a table you can read and argue with when nothing is on fire.
Ask it
validated-memory route "what you are about to do" [--path FILE ...] [--json]Running from the installed plugin, where the CLI is not on PATH:
PYTHONPATH="${CLAUDE_PLUGIN_ROOT}" python3 -m validated_memory route "what you are about to do"It answers with a level, the number of validations, which agents, which model, and which effort. It exits 0 always: this advises, it does not gate.
$ validated-memory route "small tweak to the checkout flow" --path src/billing/refund.py
Level 3 — 3 validations
matched money: billing, checkout, refund
matched touched path: billing
model : opus
effort : high
agents : security-reviewer, data-reviewer, devils-advocate
Three, and the devil's advocate has to actively try to break it."Small tweak" is a description of intent. The paths and the words are a description of risk, and only one of those two decides.
The three levels
| Level | Kind of work | Validations | Model | Effort |
| 1 | Cosmetic, documentation, anything that never reaches production | 1 | small | low |
| 2 | Production code, service config, CI, dependencies | 2 independent | mid | medium |
| 3 | Auth, permissions, money, customer data, migrations, network, certificates, deletions | 3, one trying to break it | large | high |
The one hard rule
Nothing at level 3 runs on the small model.
Saving tokens is worth it exactly where being wrong is cheap. It is never worth
it where being wrong means an outage, a breach, or someone's money. That rule is
asserted in code, not left to good intentions — see
route.py and the tests that pair every
level-3 phrase against the model it was given.
When nothing matches
It does not fall back to the cheapest answer. An unrecognised change is treated as production work, and the output says plainly that no signal matched:
No signal matched, so this is treated as production work. That is the safe direction, not a measurement of your change.
Being wrong upward costs a review nobody needed. Being wrong downward costs an incident. Those are not symmetric, so the default is not symmetric either.
If you know it touches something on the level-3 list, say so in the description and re-run. The tool cannot see your change; it can only read what you tell it.
What the level actually buys you
The number is worthless without the definition behind it:
- Independent means the validator does not receive the implementer's reasoning. Handing over your reasoning turns a check into an expensive echo.
- Reviewing your own work again is not a second validation. The blind spots travel with you.
- At level 3, one of the three has to actively try to break it. That is the
devils-advocate, and approving is not its job.
Related
docs/validation-levels.md— the prose form of the same table, plus the list of what disqualifies a validationchoose-the-right-code-review— once you know the level, who reviews whatverify-before-saying-done— the check that has to be able to fail before you call it done
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.

