arnie016/codex-prompt-templates/model-cost-router

Claude Code and agent skill by arnie016/codex-prompt-templates

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Decide when to use cheaper, local, or frontier models and how to measure cost tradeoffs. Use for token limits, model routing, cost-conscious Codex work, DeepSeek/Claude/OpenAI comparisons, prompt caching, or agent workflow economics. Skip when cost routing is enforced by a production gateway, budget policy, fallback policy, or live alerting; use `$auto-skill-build-agent-reliability-loop`. Avoid unverifiable savings claims.

Install

npx vskill@latest install arnie016/codex-prompt-templates/model-cost-router

SKILL.md

The same SKILL.md was published earlier as arnie016/codex-prompt-templates/model-cost-router.

Model Cost Router

Optimize for total successful-task cost, not the cheapest single call.

Routing Heuristic

WorkModel tier
Search, inventory, mechanical editscheap/fast model or local tools
Design decisions, risky code, securitystronger model
Final review of broad changesstronger model
Long-running monitoringno model; use process/log checks
Repeated repo factsmarkdown memory, not model tokens

Measurement Loop

  1. Define the task and quality bar.
  2. Run cheap path once.
  3. Run strong review on the output.
  4. Track elapsed time, fixes needed, and estimated tokens.
  5. Keep routing only if quality and reliability are acceptable.

Guardrails

  • Treat "17x cheaper" or similar claims as marketing until measured locally.
  • Do not route secrets or proprietary code through unknown hosted tools.
  • Prefer caching briefs and memory over re-sending context.
  • Escalate model quality when failure would be more expensive than tokens.
  • For production agents, bind model routing to gateway budgets, cache rules,

trace metadata, and eval score gates; route to $auto-skill-build-agent-reliability-loop when cost decisions affect live users or tools.

Pair with $agent-observability to keep a local cost ledger.

Validation

  • Cost claims are measured locally or marked unverified.
  • The cheaper path is kept only if quality and reliability meet the task bar.
  • Production budget/fallback policy is routed to $auto-skill-build-agent-reliability-loop.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
7-day trend score
7

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/arnie016/codex-prompt-templates/model-cost-router/badge)](https://verified-skill.com/skills/arnie016/codex-prompt-templates/model-cost-router)

Something wrong with this skill or its page? Tell us.