kienbui1995/magic-powers/cost-aware-routing

Claude Code and agent skill by kienbui1995/magic-powers

Trust tier 3
  • community
Source check pending

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

Use when deciding which model or agent to use for a task - guides cost-optimized model selection based on task complexity

Install

npx vskill@latest install kienbui1995/magic-powers/cost-aware-routing

SKILL.md

The same SKILL.md was published earlier as kienbui1995/magic-powers/cost-aware-routing.

Cost-Aware Model Routing

Overview

Not every task needs the most expensive model. Route tasks to the right model based on complexity, saving cost without sacrificing quality.

The Routing Table

ModelAgentCostBest For
Opusarchitect$$$$$Complex architecture, novel design, ambiguous requirements
Sonnetdebugger, ui-designer, (default)$$Implementation, debugging, most coding tasks
Haikureviewer$Code review, verification, simple lookups, formatting

Cost ratios (approximate):

  • Opus : Sonnet : Haiku ≈ 25 : 5 : 1
  • A Haiku review costs ~1/60th of an Opus review

Decision Framework

WHEN receiving a task:
1. Can Haiku handle this? (review, verify, format, lookup)
→ YES: Use reviewer agent or --model haiku
2. Is this standard implementation/debugging?
→ YES: Use default Sonnet (or debugger/ui-designer agent)
3. Does this require deep reasoning about novel problems?
→ YES: Use architect agent (Opus)

Task → Model Mapping

Use Haiku (reviewer agent) for:
  • Code review after implementation
  • Verification checks (tests pass? linter clean?)
  • Simple refactoring (rename, reformat)
  • Documentation review
  • Checking git status/diff
  • Quick lookups in codebase
Use Sonnet (default) for:
  • Feature implementation
  • Bug fixing and debugging
  • Writing tests
  • Database migrations
  • API development
  • UI component building
  • Most day-to-day coding
Use Opus (architect agent) for:
  • System architecture design
  • Complex brainstorming with many trade-offs
  • Ambiguous requirements that need deep analysis
  • Cross-system integration planning
  • Performance optimization strategy
  • Security architecture review

Anti-Patterns

PatternProblemFix
Using Opus for everything25x cost for same resultDefault to Sonnet
Using Opus for code reviewOverkill, slowUse Haiku reviewer
Using Haiku for implementationToo many mistakesUse Sonnet
Not using agents at allMissing cost savingsDispatch to right agent

CLI Shortcuts

bash
# Quick review with Haiku
claude -p "review the last commit" --model haiku
# Debug with Sonnet (default)
claude -p "fix the failing test in auth.py"
# Architecture with Opus
claude -p "design the caching layer" --model opus
# Budget cap
claude --max-budget-usd 0.50 -p "implement the login form"

Measuring Impact

Track your usage in Claude Code settings or Vertex AI console:

  • Before: ~98% Opus = high cost
  • After: ~10% Opus, ~70% Sonnet, ~20% Haiku = ~75% cost reduction

Security

  • Security scanPassed, 95 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 npm downloads, 7 days
53
7-day trend score
10

Downloads are for the repository's npm package. Refreshed 29 Sep 2026, a month ago.

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/kienbui1995/magic-powers/cost-aware-routing/badge)](https://verified-skill.com/skills/kienbui1995/magic-powers/cost-aware-routing)

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