Skill: model routing policy
Write a cheap-vs-strong model routing policy so agents spend money only when the task needs it.
What to do first

Escalate
- Define task classes with examples before naming models. “Use GPT-4 for everything” is not a policy.
- High-risk actions (authz, prod mutations, security review) default to a stronger tier or human review.
- Use relative cost tiers, not stale dollar prices. Log every model choice for audit.
Always-max models burn budget on typo fixes. Always-cheap models quietly fail security reviews. A routing skill is a decision tree: task class → default tier → escalation on failure/low confidence/large diffs → safety overrides. Store the table as data the agent can read, not only prose.
Use it when building agent platforms, IDE defaults, or batch jobs with mixed difficulty. For eval harnesses that check whether routing still quality-gates hard tasks, see related agent eval guides on Forgebench when you publish them alongside this skill.
Part 1: Task class → tier map

Tier Map
Draft a model routing policy.
Task classes (add/remove as needed): format, classify, codegen, review,
security/authz, incident, long-context summarize.
For each class:
- Default tier: cheap | mid | strong
- Example prompts that belong here
- Escalate when: (failure count, low confidence, diff size, user override)
Rules:
1. Do not hardcode absolute $ prices.
2. Destructive / security classes default strong or human-review.
3. Require logging: task class, tier chosen, reason, override flag.
Part 2: Escalation loop
Given this task description and prior attempt results, pick a tier.
If cheap failed twice on the same task → escalate one tier.
If class is security/authz/prod-mutate → strong or human, ignore cheap default.
Return: chosen tier, rule that fired, log line.
Save it as a skill file
# Skill: model-routing-policy
## When
- Choosing models per task class / cost spike review
## Hard rules
1. Class-based defaults with examples.
2. Escalate on risk/failure; security ≠ cheap.
3. Relative tiers only; log every choice.
4. Overrides require a reason.
## Steps
1. Task class list + examples.
2. Default tier map.
3. Escalation + safety overrides.
4. Logging/metrics requirements.
## Done when
- Policy document (or table) usable by routers.
Test before you trust it
- Typo fix. Pass: cheap tier.
- Authz design. Pass: strong tier (or human review).
- Cheap fails twice. Pass: escalation triggers.
Common traps

Failure modes to catch early
- Always largest model. Class defaults exist for a reason.
- Cheapest on security review. Safety override.
- No logging. Cannot audit cost or quality.
- Stale $ prices as hard rules. Relative tiers.
You are done when a router (human or code) can pick a tier from the table without rereading a blog post: and every choice leaves a log line.
Share