Xpersona
M

Model Routing Skill

CLAWHUB · Unverified

Automatically routes requests to the optimal model based on task type, prioritizing code, reasoning, simplicity, and normal tasks with fallback and concurren... Skill: Model Routing Skill Owner: sam-k-migz Summary: Automatically routes requests to the optimal model based on task type, prioritizing code, reasoning, simplicity, and normal tasks with fallback and concurren... Tags: latest:1.0.1 Version history: v1.0.1 | 2026-03-29T12:05:27.301Z | user Add guardrails: respect forced models, add safety caps, budget ceiling, and safer fallbacks. v1.0.0 | 2026-03-29T11:46:27.732Z |

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17axyb16rkr5e6qa95tzgt3xx83rp95:model-routing
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-sam-k-migz-model-routing/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

5,628 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

# Model Routing Skill (Compact)

Automatically route each request to the best model.

Routing rules:
- Use `gpt-5-codex` for coding, debugging, build errors, stack traces, logs, repo edits, and implementation tasks.
- Use `gpt-5` for deep reasoning, architecture, large-context analysis, complex planning, and hard diagnosis.
- Use `gpt-4.1-nano` for short trivial requests with no code and no deep reasoning.
- Use `gpt-5-mini` for everything else.

Priority:
1. code_heavy
2. heavy_reasoning
3. simple
4. normal

Fallbacks:
- `gpt-5-codex` -> `gpt-5` -> `gpt-5-mini` -> `gpt-4.1-nano`
- `gpt-5` -> `gpt-5-mini` -> `gpt-4.1-nano`
- `gpt-5-mini` -> `gpt-4.1-nano`

Retry on:
- rate limit
- TPM exceeded
- timeout
- temporary unavailable
- capacity errors

Concurrency:
- max 2 concurrent requests
- reduce to 1 for large prompts or repeated TPM failures
- queue excess work

Respect explicit user overrides and any org/channel/session model locks first. Do not override a forced model.
Only auto-route when routing is enabled and no explicit model is set.

Safety caps (defaults, may be tuned by admin):
- Max input tokens per class: simple 4k, general 8k, code 12k, heavy 20k
- Max output tokens per class: simple 400, general 800, code 1200, heavy 1500
- Per-turn budget ceiling: $0.02 (downgrade on breach)

Telemetry (lightweight): record {taskType, chosenModel, capsApplied} to internal trace; do not expose to users unless they ask.

Fallbacks: never upgrade to a more expensive model on retry; only downgrade tiers.

_meta.json

{
  "ownerId": "kn71wfdfy24e48eh3pega4py9h83sj09",
  "slug": "model-routing",
  "version": "1.0.1",
  "publishedAt": 1774785927301
}

skill-card.md

## Description:

Automatically routes agent requests to an appropriate model based on task type, explicit model overrides, safety caps, retry behavior, and budget limits.

This skill is ready for commercial/non-commercial use.

## Publisher:

[sam-k-migz](https://clawhub.ai/user/sam-k-migz)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent operators use this skill to choose cost- and capability-appropriate models for coding, reasoning, simple, and general tasks while respecting explicit model locks.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Model routing can affect answer quality, latency, and cost when a request is assigned to a different model tier.

Mitigation: Respect explicit user, organization, channel, and session model overrides before applying automatic routing.

Risk: Routing traces may expose task classification and selected model information to internal telemetry systems.

Mitigation: Record only lightweight routing data and confirm trace handling where users do not want routing traces retained.

Risk: Retries and fallbacks can increase cost or change behavior if they move requests to higher tiers.

Mitigation: Use the documented per-turn budget ceiling and only downgrade model tiers during retry fallback.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/sam-k-migz/skills/model-routing)
- [Publisher profile](https://clawhub.ai/user/sam-k-migz)

## Skill Output:

**Output Type(s):** [guidance, configuration]

**Output Format:** [Markdown]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Model-selection guidance with retry, concurrency, token-cap, budget, fallback, and lightweight telemetry considerations.]

## Skill Version(s):

1.0.1 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Model Routing Skill and adjacent AI workflows.