Agent skill

Mecatl Model Router Config

by stacklok in stacklok/mecatl

Interviews you about provider, cost, openness and image needs, then designs the models section of a mecatl settings file with aliases, slots and router categories.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Mecatl Model Router Config

skills CLI
$ npx skills add stacklok/mecatl --skill mecatl-model-router-config -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install stacklok/mecatl mecatl-model-router-config --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/stacklok/mecatl.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/mecatl-model-router-config .claude/skills/mecatl-model-router-config && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mecatl-model-router-config
GitHub stars
241
Token cost
~2.7k tokens
SKILL.md length
1,369 words
Files
2 (incl. references)
Skills in repo
8
Repo updated
First seen
Licence
Apache-2.0

At a glance

Interviews you about provider, cost, openness and image needs, then designs the models section of a mecatl settings file with aliases, slots and router categories.

  • Works in 4 steps: Elicit preferences (BEFORE any search) → Search the latest benchmarks & pricing → Map to the config schema → …
  • Setting up model routing for a new mecatl deployment
  • SKILL.md covers Prerequisites, Workflow, Guidelines and Error handling, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

This skill designs and writes the models section of a mecatl settings file at ~/.config/mecatl/settings.yaml, tailored to how the operator wants to trade off cost, capability, openness and modality. Before any search it asks one question at a time: the provider (OpenRouter is recommended, with Anthropic or OpenAI direct as alternatives), the priority axis (balanced, cost-tiered or capability-first), open-weight or hosted proprietary models, how often image input is needed, and an optional target coding ceiling. It also reads any existing config and offers to use it as a base.

Once preferences are in, it searches current benchmarks and pricing and recommends a complete taxonomy of aliases, slots and router categories for subagent routing, with every alias resolving to a model ID on the single provider chosen, since the provider is fixed per session. A reference file documents the config format. It does not wire providers or keys or handle permission config, and it does not apply to non-mecatl harnesses.

When your agent uses it

  • Setting up model routing for a new mecatl deployment
  • Revising which model fills each slot after prices or benchmarks change
  • Building a router taxonomy for subagents
  • Choosing between cost-tiered and capability-first routing

Example prompts

  • “Help me configure mecatl model routing; I use OpenRouter and want balanced cost and capability.”
  • “Revise my existing models block to prefer open-weight models, since I rarely need image input.”
  • “Build a subagent router taxonomy using only Anthropic models.”

Requirements

  • A mecatl deployment and an API key for OpenRouter, Anthropic or OpenAI
  • Web search for live benchmark and pricing lookups

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Elicit preferences (BEFORE any search)
  2. Search the latest benchmarks & pricing
  3. Map to the config schema
  4. Deliver the config

What it can do on your machine

Read from SKILL.md and the folder at commit dcf1ea4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mecatl Model Router Config loads about 2.7k tokens when it runs, and up to ~4k if it reads all its reference files. Until then it costs about 142 tokens; SKILL.md has 1,369 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~142
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from stacklok/mecatl at commit dcf1ea4, republished under its Apache-2.0 licence (© stacklok). 1,369 words, ~2,656 tokens.

Download SKILL.mdSave it as .claude/skills/mecatl-model-router-config/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
mecatl-model-router-config
description
Designs and writes a mecatl model router configuration (the `models:` subtree of ~/.config/mecatl/settings.yaml) tailored to the operator's preferences. Asks about priorities (cost vs capability, open vs proprietary, provider, multimodal) then searches the latest model benchmarks/pricing and recommends a complete alias + slot + router-category taxonomy. Use when setting up or revising model routing, picking models per slot, or building a subagent router taxonomy. NOT for provider/key wiring, permission config, or non-mecatl harnesses.

mecatl model router config builder

Prerequisites

  • The operator has a mecatl deployment and an API key for at least one provider (OpenRouter, Anthropic, or OpenAI). The config targets ONE provider — provider is fixed per session, so every alias must resolve to a model id on the same provider.
  • Web search is available for live benchmark/pricing lookup.

Workflow

Ask one concise question at a time in this order; wait for the answer before the next question. Use ordinary conversational text as the default, with the recommended option stated plainly. Do not render banners, checkmark summaries, or a widget/protocol syntax.

Interpret natural-language answers rather than requiring exact option labels. If an answer is ambiguous, ask a brief follow-up. The operator may revise an earlier answer conversationally at any point (for example, “Actually, use Anthropic”); confirm the changed answer and revisit any dependent choice if necessary.

If the current client explicitly provides a native question UI, it may present the same question and choices there. Never assume it exists or expose its internal protocol in chat.

Q1 — Provider

Ask: “Which provider should this config use? I recommend OpenRouter because one key can reach multiple vendors. OpenRouter, Anthropic direct, OpenAI direct, or another provider?”

Q2 — Priority axis

Ask: “What matters most: balanced cost and capability (recommended), cost-tiered (prefer cheaper models when they can do the job, saving money but possibly trading away capability), or capability-first (prefer the strongest fit, with potentially higher cost)?”

Q3 — Open vs proprietary

Ask: “Are hosted proprietary models acceptable (recommended), or do you require MIT/Apache open-weight models?”

Q4 — Multimodal

Ask: “How often do you need image input: not at all (recommended), rarely, or commonly?”

Q5 — Target ceiling (optional)

Ask: “Is there a target coding ceiling or model you want to match? You can name one, or say there is no specific target.”

Q6 — Existing config (auto-discovered, not asked blank)

Do NOT ask. Silently run cat ~/.config/mecatl/settings.yaml.

  • Found with models: block — show it fenced, then ask: “I found an existing models: config. Should I use it as a base (recommended) or start fresh?”
  • Not found or no models: block — skip silently, proceed to Step 2.

Record all answers. These determine which models are even candidates.

Step 2 — Search the latest benchmarks & pricing

For each tier the operator needs (heavy/coder/quick, + optional image/specialty), search for:

  • SWE-bench Verified (the primary coding benchmark — prefer independent Vals.ai scores over vendor self-reports; note both).
  • SWE-bench Pro (harder real-world repos) and Terminal-Bench (agentic multi-step shell — closest proxy to a harness loop) where available.
  • LiveCodeBench / HumanEval (pure code-gen) as secondary signals.
  • Pricing (input + output per 1M tokens) on the operator's chosen provider — verify the exact OpenRouter/Anthropic/OpenAI model id.
  • Modality (text-only vs multimodal) — critical if vision is in scope.
  • License (MIT/Apache open vs proprietary) if the operator cares.
  • Context window (1M+ is common in 2026; note anything below).

Cross-check at least two sources per model (vendor model card + independent leaderboard like Vals.ai / llm-stats / LLMReference). Flag vendor-reported vs independently-verified scores — they diverge by 2–4 pts regularly.

Present a shortlist table (model | key benchmarks | price | modality | license) for each tier, then recommend one per tier with rationale tied to the operator's stated preferences.

Step 3 — Map to the config schema

Read references/config-format.md for the exact schema and rules. Then build the config:

  1. Aliases — the spine. Define heavy/coder/quick (minimum) pointing at concrete provider model ids. Add image (or another specialty alias) only if the operator needs multimodal. Every alias must be on the chosen provider.
  2. default — the session model. Usually the heavy alias (the strongest reasoning model), unless the operator wants a cheaper default.
  3. Slots — route the four housekeeping calls (compaction/ask-reviewer/ guardrail/router) to the quick alias (they're one-turn, tool-less calls that need instruction-following + JSON discipline, not deep coding). Route plan to heavy (the opusplan pattern — plan-mode turns swap to a strong reasoning model).
  4. Router categories — 3 categories minimum (large/medium/small mapped to heavy/coder/quick). Add a 4th ONLY for a genuinely distinct model class (e.g. image for multimodal) — do NOT add a 5th; more categories degrade classifier accuracy and widen the steering surface. Write thorough description: fields — the classifier reads them literally to route.
  5. default-category — usually medium (the bulk of delegation work).
Step 4 — Deliver the config

Emit the complete models: YAML block, ready to drop into ~/.config/mecatl/settings.yaml. Include inline # → <concrete-id> comments on each category's model: line so the operator can see the resolution at a glance.

After the config, include:

  • A changes-from-previous summary (if revising) — one line per changed alias/ slot/category, with the rationale.
  • A verification note — tell the operator to check the mecated log for model slot ACTIVE / subagent model router ACTIVE lines on startup (a missing line = that binding failed to resolve and degraded to the session model).
  • An honest gaps note — call out anything the chosen fleet can't do (e.g. "nothing here reaches Opus 4.8's 88.6% SWE-bench Verified; that ceiling requires Anthropic"). Don't oversell.
Show full SKILL.md (554 more words)Show less

Guidelines

  • Provider-fixed invariant: never mix providers across aliases. If the operator wants Anthropic models, ALL aliases are anthropic/* ids. OpenRouter is the common choice because it aggregates many vendors behind one provider.
  • Cost-tiered default: when the operator says "cost-tiered" or doesn't specify, prefer open/cheap models (DeepSeek V4-Flash/Pro, GLM-5.2, Gemini Flash) and put the expensive frontier model only where it's load-bearing (heavy/ plan/large). Housekeeping slots always go on the cheapest credible model.
  • Capability-first default: when the operator says "capability-first", put the strongest available model (Opus 4.8 / GPT-5.5 / Gemini 3 Pro) at heavy/ default/plan and a strong mid (Sonnet 4.6 / Gemini 3.5 Flash) at coder, accepting the higher spend. Still route housekeeping to a cheaper tier — there's no value in running compaction summaries on Opus.
  • Vision: if the operator needs images and the heavy/coder models are text-only, add an image alias pointing at a multimodal model (Gemini 3.5 Flash is the strongest cheap multimodal coder in mid-2026). If vision is rare, make image a category the router can pick OR an alias the operator invokes via per-call model: image (more reliable — the classifier can't detect attached files, only prompt text that mentions them).
  • Category descriptions: write them thoroughly — they're the classifier's only signal. Describe the task profile in concrete terms ("screenshots, UI mockups, design specs, diagrams" not just "visual tasks").
  • 3–4 categories max: difficulty tiers (large/medium/small) + at most one distinct-class category (image/specialty). More categories hurt classifier accuracy and widen the untrusted-prompt steering surface.
  • Cite sources: when recommending a model, note whether its benchmark is vendor-self-reported or independently verified (Vals.ai etc.) — the gap matters.

Error handling

SituationFix
Operator wants a provider you can't find model ids forAsk for the provider's model directory URL, or fall back to OpenRouter (aggregates most)
No model on the chosen provider meets the stated ceiling (e.g. "beat Opus 4.8" on OpenRouter)Say so honestly. Offer the closest non-Anthropic option + note that the ceiling requires switching providers.
Operator asks for >4 router categoriesPush back: explain the classifier-accuracy and steering-surface tradeoffs. Suggest an agent-def model: pin for the rare task instead of a category.
A recommended model id doesn't resolve on the providerVerify the exact id via the provider's model page before emitting the config. OpenRouter ids are vendor/model-name; Anthropic direct ids are claude-*.
Benchmark data is sparse or stale (>6 months)Flag it. Prefer Vals.ai (independent, re-runs) over vendor model cards. Note the review date.

See also

Interaction example

Ask normally, one question at a time. For example:

  1. “Which provider should this config use? I recommend OpenRouter, but Anthropic direct, OpenAI direct, or another provider also work.” → OpenRouter
  2. “What matters most: balanced cost and capability, cost-tiered, or capability-first?” → capability-first
  3. “Are hosted proprietary models acceptable, or do you require open weights?” → proprietary
  4. “How often do you need image input: not at all, rarely, or commonly?” → rarely
  5. “Is there a target coding ceiling or model you want to match?” → Opus 4.8 territory

The operator can correct an answer naturally, such as “Actually, use Anthropic instead,” before the search begins. Then silently inspect ~/.config/mecatl/settings.yaml; if it has a models: block, ask whether to use it as a base or start fresh. Otherwise, begin Step 2 and search for models that fit the recorded preferences.

© stacklok, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in .claude/skills/mecatl-model-router-config of stacklok/mecatl.

  • SKILL.md
  • references/config-format.md

Open the folder on GitHubat commit dcf1ea4

Compare with similar skills

Mecatl Model Router Config next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mecatl Model Router Config compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mecatl Model Router Config this skillstacklok/mecatl241—~2.7kAutomated safety check: PassApache-2.0
Embeddings via 9Routerdecolua/9router30k—~604Automated safety check: PassMIT
Using Ccproxy Inspectorstarbaser/ccproxy350—~2.7kAutomated safety check: PassCustom licence
LLM Routerjamesrochabrun/skills2161 repos~3.3kAutomated safety check: PassMIT
Using Ccproxy APIstarbaser/ccproxy350—~4kAutomated safety check: PassCustom licence
Configuring Visionoxbshw/watch-skill460—~509Automated safety check: NotesMIT

Similar skills

  • Embeddings via 9Router

    decolua/9router

    Generates vector embeddings through the 9Router /v1/embeddings endpoint, using models from providers such as OpenAI, Gemini, Mistral and Voyage for RAG and semantic search.

    30k GitHub stars~604 tokensUpdated 7 days ago
    AI & LLM EngineeringAuto-check passed
  • Using Ccproxy Inspector

    starbaser/ccproxy

    Operates the ccproxy inspector MITM system for intercepting, inspecting, and transforming LLM API traffic.

    350 GitHub stars~2.7k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • LLM Router

    jamesrochabrun/skills

    This skill should be used when users want to route LLM requests to different AI providers (OpenAI, Grok/xAI, Groq, DeepSeek, OpenRouter) using SwiftOpenAI-CLI.

    216 GitHub starsUsed in 1 repo~3.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Using Ccproxy API

    starbaser/ccproxy

    Guides users through ccproxy as an OpenAI-compatible and Anthropic-compatible LLM API server with SDK integration, OAuth authentication, sentinel key substitution, model routing, and troubleshooting.

    350 GitHub stars~4k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Configuring Vision

    oxbshw/watch-skill

    The user wants to connect an LLM or vision provider, already has an API key, asks "can I use OpenAI/Anthropic/Gemini/OpenRouter", wants local Ollama, or needs different cheap and strong models.

    460 GitHub stars~509 tokensUpdated 24 days ago
    AI & LLM EngineeringAuto-check: notes
  • Quorum

    Detrol/quorum-cli

    Run a structured debate between agent CLIs (claude, codex, agy, grok) and the user's configured API or local models (OpenAI, Anthropic, Google, xAI, OpenRouter, Ollama and more) through the Quorum…

    119 GitHub stars~807 tokensUpdated 11 days ago
    AI & LLM EngineeringAuto-check: notes

More from stacklok/mecatl

All 8 skills in this repo
  • Runs mecatl's offline benchmark and scenario harness to measure, profile with pprof, optimize and prove a performance win with benchstat, then adds a regression benchmark.

    241 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Mecatl Release Cutting

    stacklok/mecatl

    Cuts a tagged mecatl release by dispatching the release-PR workflow, merging the bot's pull request and verifying the tag, images, Helm chart, signed archives and Homebrew formula.

    241 GitHub stars~3.9k tokensUpdated today
    Auto-check passed
  • mecatl Learning Config

    stacklok/mecatl

    Designs, validates and writes the learning section of a mecatl settings file, covering mode, sensitivity, reflection budgets and validated or evaluated activation.

    241 GitHub stars~3.8k tokensUpdated today
    Auto-check passed
  • Guides reading mecatl's perf MCP data to find why a running harness is slow, leaking goroutines or growing in memory, using cheap reads before any CPU capture.

    241 GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Tech Writer

    stacklok/mecatl

    A skill your agent uses when writing or substantively editing user-facing documentation: drafting a new page, rewriting or restructuring an existing one, adding a major section, or turning…

    241 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Rebuilds the mecak8s image into the local mecatl-dev Kind cluster and builds mecatui, so you can try in-progress mecatl changes against a real Kubernetes deployment.

    241 GitHub stars~927 tokensUpdated today
    Auto-check passed

Questions about Mecatl Model Router Config

What does Mecatl Model Router Config do?

Interviews you about provider, cost, openness and image needs, then designs the models section of a mecatl settings file with aliases, slots and router categories. yaml, tailored to how the operator wants to trade off cost, capability, openness and modality. Before any search it asks one question at a time: the provider (OpenRouter is recommended, with Anthropic or OpenAI direct as alternatives), the priority axis (balanced, cost-tiered or capability-first), open-weight or hosted proprietary models, how often image input is needed, and an optional target coding ceiling.

When should I use Mecatl Model Router Config?

Mecatl Model Router Config fits situations like: setting up model routing for a new mecatl deployment; revising which model fills each slot after prices or benchmarks change; building a router taxonomy for subagents; choosing between cost-tiered and capability-first routing.

How do I install Mecatl Model Router Config in Claude Code?

Run `npx skills add stacklok/mecatl --skill mecatl-model-router-config -a claude-code`. Or copy the skill folder (.claude/skills/mecatl-model-router-config in stacklok/mecatl) into .claude/skills/mecatl-model-router-config in your project. Claude Code loads it when a task matches its description.

How do I install Mecatl Model Router Config in Codex?

Run `npx skills add stacklok/mecatl --skill mecatl-model-router-config -a codex`. Or copy the skill folder (.claude/skills/mecatl-model-router-config in stacklok/mecatl) into .agents/skills/mecatl-model-router-config in your project. Codex loads it when a task matches its description.

Can I use Mecatl Model Router Config in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add stacklok/mecatl --skill mecatl-model-router-config -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mecatl-model-router-config, .gemini/skills/mecatl-model-router-config, .github/skills/mecatl-model-router-config and .opencode/skills/mecatl-model-router-config in your project.

What does Mecatl Model Router Config need to run?

SKILL.md names no scripts, command-line tools or credentials: Mecatl Model Router Config is instructions for the agent only. Our summary lists: A mecatl deployment and an API key for OpenRouter, Anthropic or OpenAI; Web search for live benchmark and pricing lookups.

Does Mecatl Model Router Config access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mecatl Model Router Config safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Mecatl Model Router Config use?

Mecatl Model Router Config is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mecatl Model Router Config use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to Mecatl Model Router Config?

Skills that share tags, products or a category with Mecatl Model Router Config: Embeddings via 9Router (decolua/9router, 30k stars), Using Ccproxy Inspector (starbaser/ccproxy, 350 stars), LLM Router (jamesrochabrun/skills, 216 stars) and Using Ccproxy API (starbaser/ccproxy, 350 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mecatl Model Router Config?

stacklok (a GitHub organization) maintains it in stacklok/mecatl, which has 241 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 8, 2026.

Source: stacklok/mecatl on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.