Agent skill · Workflow & Productivity

tokenwise

Measurement-driven model router for Claude Code. Routes Haiku/Sonnet/Opus per task class, logs every routed task with real $ numbers, and A/B tests cheaper tiers before you trust the savings.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill tokenwise --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 4 KB
Bundled scripts: none
Declared author: CodeShuX
Path: skills/ai-llm/tokenwise/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# TokenWise — Measurement-Driven Model Router ## Overview A Claude Code skill that auto-routes subtasks to the cheapest model that can handle them (Haiku for grunt work, Sonnet for scoped reasoning, Opus only for synthesis), then logs every routed task to a local NDJSON with real token + cost numbers. Includes an A/B test subcommand that runs the same task across multiple tiers and scores quality, so the routing decisions are verified against the user's real workload — not estimated. Anthropic's own bug tracker (Issue #27665) reports 93.8% of Max-subscriber Claude Code tokens flow to Opus. Existing routers (claude-router, wshobson, VoltAgent) either pin models statically or route by vibes-based heuristics with no measurement. TokenWise fills the measurement gap. ## When to use - Cutting Claude Code token spend without sacrificing output quality - Validating whether Haiku/Sonnet is "good enough" for a specific task class before trusting auto-routing - Auditing where Opus tokens are actually being burned - Logging per-session cost data for finance or chargeback ## Subcommands - `/tokenwise:install` — guided installer with diff preview, automatic backups, and `--dry-run` mode - `/toke

What's inside
Steps it walks through
  1. Overview
  2. When to use
  3. Subcommands
  4. Routing taxonomy
  5. Privacy
  6. Install
  7. Limitations
  8. Source
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the tokenwise skill do?

Measurement-driven model router for Claude Code. Routes Haiku/Sonnet/Opus per task class, logs every routed task with real $ numbers, and A/B tests cheaper tiers before you trust the savings.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill tokenwise --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going