| name | model-routing-policy-simulator |
| description | Generate an OpenClaw model-routing matrix from task, risk, context, tool, cost, latency, memory, confidence, and review inputs. |
Use this skill when creating or revising model-routing-matrix.md.
Inputs
For each task class, collect:
- task class
- track source: A1, A2, A3, T1, T2, T3, T4, N1, N2, or N3
- sensitivity
- context size
- tool/action risk
- latency need
- cost ceiling
- memory write risk
- confidence threshold
- available evidence
Outputs
For each row, produce:
- recommended tier:
local/small, cheap/bulk, premium, or reviewer
- candidate model or model family
- escalation trigger
- fallback model or path
- human review point
- evidence source
Seed Rows
Start from templates/model-routing-matrix.md, which includes rows for:
- low-risk classification
- duplicate detection
- bulk summarization
- source extraction
- code patch planning
- architecture review
- permission escalation decision
- durable memory write-back
- Discord delivery
- final synthesis
Routing Heuristics
- Prefer
local/small for reversible, low-sensitivity classification and duplicate detection.
- Prefer
cheap/bulk for high-volume extraction or summarization when source checks are required.
- Prefer
premium for architecture judgment, code patch planning, contradiction resolution, and final synthesis.
- Prefer
reviewer when durable memory, permissions, identity, safety, or external delivery surfaces are affected.
- Escalate when confidence falls below threshold, sources conflict, context exceeds the tier, or tool/action risk becomes irreversible.
- Require human review for permission escalation, high-impact memory writes, public Discord delivery, and final synthesis acceptance.
Process
- Copy or open
templates/model-routing-matrix.md.
- Fill input columns before choosing the tier.
- Record evidence source for every decision.
- Add escalation and fallback rules that a future orchestrator can execute.
- Mark weakly sourced rows as provisional.
- Include matrix changes in the track handoff.