agentleFS
everywan-deveverywan-dev/claude-code-engineering/skills/route-work-to-the-right-model/SKILL.md

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.

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
  1. Distinctive:

    If you know it touches something on the level-3 list, say so in the description and re-run.

    line 76

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

LevelKind of workValidationsModelEffort
1Cosmetic, documentation, anything that never reaches production1smalllow
2Production code, service config, CI, dependencies2 independentmidmedium
3Auth, permissions, money, customer data, migrations, network, certificates, deletions3, one trying to break itlargehigh

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 validation
  • choose-the-right-code-review — once you know the level, who reviews what
  • verify-before-saying-done — the check that has to be able to fail before you call it done

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.