agentleFS
luizomfluizomf/omskills/skills/productivity/model-routing/SKILL.md

model-routing

Skill3 starsChanged 2 months agoMITView on GitHub

Select the route for a future delegation; the invoking agent still owns the task, dispatch, evidence, and next action. Use this skill for any model-selectable subagent, not only Mission roles. It does not create a worker or change the model of the conversation already running. Use the assignment the child will actually receive. Consider remaining uncertainty, impact of mistakes, and how directly the result can be checked. Length alone is not complexity: transcribing a long recording or applying many mechanical…

30 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • KirchliveSkill

    skill-routing

    Decides which of the installed skills a task needs and loads them before the work starts. This skill should be used at the beginning of any multi-step task — build, fix, refactor, migrate, review, plan, release, research, write, design, video — and again at every phase change, after context compaction, and when work moves into a different part of the codebase. Use it for requests like "let's build X", "fix this bug", "refactor Y", "plan the migration", "review this", and also when the user asks which skill applies, why a skill did not fire, or asks to check what is available.

    Also in 5 projects that use this

  • sublimotionSkill

    agent-runtime

    Launch and manage detached agent runs on EKS via the agent-runner CLI. Use when the user says "launch an agent run", "agent runtime", "agent-runner", "run this spec on the cluster", "check run status", "agent run logs", or "stop a run". Do NOT use for writing the agent-runner code itself (edit the sibling ../agent-runner repo), Terraform of the foundation (use terraform-automation), or GPU serving deployments (use infra-deployer).

    Also in 5 projects that use this

  • GoZippySkill

    repo-scout

    Also in 5 projects that use this

  • BenjaminGSkill

    harness-review

    Turn one PR's review comments into harness fixes — classify each cause by the most solid place it can live (codebase, lint, rules, skill), then draft the fixes in a separate PR.

    Also in 5 projects that use this

  • +6 more from naman10parikh

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 5

    Distinctive

    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:

    Use the assignment the child will actually receive.

    line 18
  2. Distinctive:

    Prefer a suitable deterministic or specialized tool when it already solves the task.

    line 23
  3. Distinctive:

    Only when the preceding sources and task-based judgment leave a value undecided, use the harness's normal inheritance for that value.

    line 57
  4. Distinctive:

    If a requested candidate is unavailable, use an already authorized available alternative appropriate to the task.

    line 60
  5. Distinctive:

    If output is confused, progress stalls, or rework becomes material, reassess the brief, decomposition and route.

    line 120

“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “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

Model Routing

Select the route for a future delegation; the invoking agent still owns the task, dispatch, evidence, and next action. Use this skill for any model-selectable subagent, not only Mission roles. It does not create a worker or change the model of the conversation already running.

1. Identify the delegated work

Use the assignment the child will actually receive. Consider remaining uncertainty, impact of mistakes, and how directly the result can be checked. Length alone is not complexity: transcribing a long recording or applying many mechanical edits does not automatically require frontier reasoning.

Prefer a suitable deterministic or specialized tool when it already solves the task. Speech-to-text requires audio support; cleaning up an existing transcript is text work. Check modality and context/output requirements separately from reasoning difficulty.

A detailed plan can make implementation suitable for a smaller model, but does not eliminate new design decisions, debugging, or verification. A Ticket owner handles investigation, implementation, tests, review adjudication, corrections, and delivery. A Mission dispatcher handles queue decisions, blocker recovery, and delivery verification. Classify the responsibility being delegated, not the role label alone.

This step is complete when the assignment's uncertainty, impact, verification needs and required modalities are known from the available brief and relevant Ticket evidence.

2. Select the route

This skill is provider-neutral. Read model/effort preferences from the user's instructions or applicable configuration. Keep personal routing preferences in user-local configuration rather than this shared skill.

Apply these choices in order:

  1. Honor an explicit user model/reasoning choice or incorporated standing agreement within its stated scope. A task-based routing instruction can authorize selection for future calls without reconfirming every child.
  2. Otherwise apply routing guidance from applicable documents, skills, and user or project configuration within the caller's provider, model and budget scope.
  3. Without applicable guidance, choose an available model and supported reasoning level using the task's difficulty, uncertainty, impact, cost, and verification needs. Use judgment rather than assuming every child needs the parent's model or the most capable model. Stay with the current provider unless another is allowed; selection does not authorize enabling credentials or purchasing access.
  4. Only when the preceding sources and task-based judgment leave a value undecided, use the harness's normal inheritance for that value. Honor actual harness constraints and state any limitation that prevents the selected route. If a requested candidate is unavailable, use an already authorized available alternative appropriate to the task; otherwise ask only for the missing route decision or return the caller's blocker. Do not silently fall back to an unrestricted frontier model.

Resolve the selected model's identifier to the actual harness route using its exposed catalog, a known working route, or explicit user configuration. Provider prefixes and aliases vary by harness. Use supported lifecycle values, not guessed spellings or prompt text pretending to change a model. Apply model and reasoning independently: an explicit model does not authorize changing an explicitly pinned reasoning value. Provider effort labels are not equivalent compute budgets.

This step is complete when there is one authorized, available model and supported effort selection (or deliberate inheritance), or the missing authority/capability has been reported. Model capability claims do not establish account access or harness support.

Independent review

Independent review is judgment work. Within the selection precedence above, use a model capable of challenging assumptions and reasoning about the task's risks. A small diff, settled implementation plan, capable author, or passing checks does not make review mechanical or bounded implementation. The reviewer must challenge the work independently, not merely confirm execution of the plan. This is a capability requirement, not a requirement to use a different model from the author or maximum effort. Report any authorization or availability limitation rather than silently claiming the preferred route.

Prompt Audit preference

Interpreting intent, authorization, and completion boundaries is judgment work, not mechanical extraction. Choose a capable interpreter within the selection precedence above and apply the Independent review rule to comparison. The audit coordinator retains final adjudication, with comprehension evidence specific to the tested run.

3. Apply and evaluate

Supply the selected route through the existing launch mechanism on every start and continuation. Standing instructions remain applicable within their stated scope until superseded; a user need not repeat them per dispatch. A one-call exception does not replace a standing policy. Reapply selected values when the harness inherits omitted fields from the parent rather than retaining the child's previous route. Preserve the caller's tools, workspace, isolation, depth/child limits, result channel and workflow obligations. For a child that will delegate again, include any applicable standing routing instruction and the resolved path of this SKILL.md in its brief; fresh conversations do not receive the parent's transcript and may not list this hidden skill. Resolve file pointers from their referring file's physical directory (follow symlinks) before forwarding them, not from the child's workspace. In Prompt Audit, routing stays in lifecycle configuration, not extra semantic hints in the interpreter/reviewer inputs.

Report the selected model/effort and a short task-based reason in the caller's normal dispatch summary or evidence record. Reuse an explicit current choice without turning reporting into an approval gate. Helpers whose model is internally controlled cannot be routed by these settings; state that limitation rather than claiming a cheaper model was selected.

If output is confused, progress stalls, or rework becomes material, reassess the brief, decomposition and route. Escalate only within established authorization and the owning workflow's recovery rules; there is no fixed failed-attempt quota or automatic restart. Keep independent review and verification regardless of the writer's model.

This step is complete when the next launch has the selected route and its reason, or the routing limitation is explicit. Only the owning workflow decides whether the child result is acceptable or the work is delivered.

Examples

  • A long transcript needs cleanup: when selection is authorized, a text-capable model suited to routine editing may suffice. Actual audio transcription needs an audio-capable tool or model.
  • A settled design needs code and tests: choose for implementation and verification; unresolved architecture may require stronger reasoning.
  • A dispatcher launches orchestrate: classify the full technical ownership, including investigation and review adjudication, not merely task forwarding.
  • A user pins the reviewer to a supported model and effort: preserve that choice rather than replacing it with an inferred preference.

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.