[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M753FFDBFW9BTBENDQRHGQAV":3,"skill-same:01M753FFDBFW9BTBENDQRHGQAV":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":13,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M753FFDBFW9BTBENDQRHGQAV","tokenwise",null,"Measurement-driven model router for Claude Code. Routes Haiku\u002FSonnet\u002FOpus per task class, logs every routed task with real $ numbers, and A\u002FB tests cheaper tiers before you trust the savings.","ASoudy\u002FAGS","ASoudy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F40639702?v=4","01M74G5NTCW8MWDNRTAF303PA1","01M74G5NTZXSE6T0GZR5BCB6V0",0,"MIT","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002FAGAS\u002Fskills\u002Ftokenwise\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: tokenwise\ndescription: \"Measurement-driven model router for Claude Code. Routes Haiku\u002FSonnet\u002FOpus per task class, logs every routed task with real $ numbers, and A\u002FB tests cheaper tiers before you trust the savings.\"\ncategory: developer-tools\nrisk: safe\nsource: community\nsource_repo: CodeShuX\u002Ftokenwise\nsource_type: community\ndate_added: \"2026-05-12\"\nauthor: CodeShuX\ntags: [model-routing, token-optimization, cost-reduction, anthropic, haiku, sonnet, opus, claude-code, ab-testing, measurement]\ntools: [claude]\nlicense: \"MIT\"\nlicense_source: \"https:\u002F\u002Fgithub.com\u002FCodeShuX\u002Ftokenwise\u002Fblob\u002Fmain\u002FLICENSE\"\n---\n\n# TokenWise — Measurement-Driven Model Router\n\n## Overview\n\nA 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\u002FB 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.\n\nAnthropic'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.\n\n## When to use\n\n- Cutting Claude Code token spend without sacrificing output quality\n- Validating whether Haiku\u002FSonnet is \"good enough\" for a specific task class before trusting auto-routing\n- Auditing where Opus tokens are actually being burned\n- Logging per-session cost data for finance or chargeback\n\n## Subcommands\n\n- `\u002Ftokenwise:install` — guided installer with diff preview, automatic backups, and `--dry-run` mode\n- `\u002Ftokenwise:report` — per-session token + cost summary vs all-Opus baseline\n- `\u002Ftokenwise:summary [--week|--month|--all]` — historical aggregate with trend\n- `\u002Ftokenwise:ab \"\u003Ctask>\"` — A\u002FB test the same task at multiple tiers, generates a markdown comparison\n- `\u002Ftokenwise:undo` — restore CLAUDE.md \u002F settings.json from backup\n\n## Routing taxonomy\n\n| Tier | Model | Task class |\n|---|---|---|\n| Mechanical | Haiku 4.5 | file reads, grep, format, rename, simple edits, doc lookups |\n| Scoped reasoning | Sonnet 4.6 | single-file refactor, scoped research, test writing |\n| Synthesis | Opus 4.7 | architecture decisions, multi-file refactor, security review |\n\nSafety caps:\n- Haiku never spawns further subagents\n- Max spawn depth = 2\n- Subagents that need a smarter model return to parent — they never escalate on their own\n- Tasks under 100 chars with no file context run inline (subagent overhead > savings)\n- Subagent context >30k tokens bumps a tier\n\n## Privacy\n\nZero telemetry. All logs in `.tokenwise\u002Flog.ndjson` local to the project. Task descriptions truncated to 80 chars and stripped of file contents before logging. No analytics endpoint exists in the source.\n\n## Install\n\nIn any Claude Code session:\n\n```\n\u002Fplugin marketplace add CodeShuX\u002Ftokenwise\n\u002Fplugin install tokenwise@tokenwise\n```\n\nThen run `\u002Ftokenwise:install` and follow the guided prompts.\n\n## Limitations\n\n- Token counts approximate to ±2% vs Anthropic billing\n- A\u002FB test mode costs extra tokens (one task × N tiers) — intentional one-time validation\n- Anthropic-only by design (use LiteLLM or OpenRouter for cross-vendor)\n- Subagent `model:` param has known silent-fail bugs on some Claude Code builds — skill probes for this at install and refuses to configure if routing is broken\n\n## Source\n\n- Repo: https:\u002F\u002Fgithub.com\u002FCodeShuX\u002Ftokenwise\n- License: MIT\n- Author: CodeShuX\n","# TokenWise — Measurement-Driven Model Router\n\n## Overview\n\nA 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\u002FB 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.\n\nAnthropic'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.\n\n## When to use\n\n- Cutting Claude Code token spend without sacrificing output quality\n- Validating whether Haiku\u002FSonnet is \"good enough\" for a specific task class before trusting auto-routing\n- Auditing where Opus tokens are actually being burned\n- Logging per-session cost data for finance or chargeback\n\n## Subcommands\n\n- `\u002Ftokenwise:install` — guided installer with diff preview, automatic backups, and `--dry-run` mode\n- `\u002Ftokenwise:report` — per-session token + cost summary vs all-Opus baseline\n- `\u002Ftokenwise:summary [--week|--month|--all]` — historical aggregate with trend\n- `\u002Ftokenwise:ab \"\u003Ctask>\"` — A\u002FB test the same task at multiple tiers, generates a markdown comparison\n- `\u002Ftokenwise:undo` — restore CLAUDE.md \u002F settings.json from backup\n\n## Routing taxonomy\n\n| Tier | Model | Task class |\n|---|---|---|\n| Mechanical | Haiku 4.5 | file reads, grep, format, rename, simple edits, doc lookups |\n| Scoped reasoning | Sonnet 4.6 | single-file refactor, scoped research, test writing |\n| Synthesis | Opus 4.7 | architecture decisions, multi-file refactor, security review |\n\nSafety caps:\n- Haiku never spawns further subagents\n- Max spawn depth = 2\n- Subagents that need a smarter model return to parent — they never escalate on their own\n- Tasks under 100 chars with no file context run inline (subagent overhead > savings)\n- Subagent context >30k tokens bumps a tier\n\n## Privacy\n\nZero telemetry. All logs in `.tokenwise\u002Flog.ndjson` local to the project. Task descriptions truncated to 80 chars and stripped of file contents before logging. No analytics endpoint exists in the source.\n\n## Install\n\nIn any Claude Code session:\n\n```\n\u002Fplugin marketplace add CodeShuX\u002Ftokenwise\n\u002Fplugin install tokenwise@tokenwise\n```\n\nThen run `\u002Ftokenwise:install` and follow the guided prompts.\n\n## Limitations\n\n- Token counts approximate to ±2% vs Anthropic billing\n- A\u002FB test mode costs extra tokens (one task × N tiers) — intentional one-time validation\n- Anthropic-only by design (use LiteLLM or OpenRouter for cross-vendor)\n- Subagent `model:` param has known silent-fail bugs on some Claude Code builds — skill probes for this at install and refuses to configure if routing is broken\n\n## Source\n\n- Repo: https:\u002F\u002Fgithub.com\u002FCodeShuX\u002Ftokenwise\n- License: MIT\n- Author: CodeShuX\n",{"name":5,"risk":23,"tags":24,"tools":35,"author":37,"source":38,"license":14,"category":39,"date_added":40,"description":7,"source_repo":41,"source_type":38,"license_source":42},"safe",[25,26,27,28,29,30,31,32,33,34],"model-routing","token-optimization","cost-reduction","anthropic","haiku","sonnet","opus","claude-code","ab-testing","measurement",[36],"claude","CodeShuX","community","developer-tools","2026-05-12","CodeShuX\u002Ftokenwise","https:\u002F\u002Fgithub.com\u002FCodeShuX\u002Ftokenwise\u002Fblob\u002Fmain\u002FLICENSE","main","cd1d94757d590093507ef8ac26299eab8bc20478","AGAS\u002Fskills\u002Ftokenwise","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS","https:\u002F\u002Fgithub.com\u002FASoudy","2026-05-23 09:43:12",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add ASoudy\u002FAGS --skill tokenwise",{"tool":55,"command":56},"bunx","bunx skills add ASoudy\u002FAGS --skill tokenwise",{"tool":58,"command":59},"pnpm","pnpm dlx skills add ASoudy\u002FAGS --skill tokenwise","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002FAGAS\u002Fskills\u002Ftokenwise\u002FSKILL.md",true,[],[64,71,78,85,92,99],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M756BTEVC407T0QR8S420JWD","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", or \"typographic scale\". Also trigger when choosing between system fonts and web fonts, optimizing font loading performance, or designing readable long-form content layouts. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fwondelai-product-strategy\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M756B4RYF2CB17C33X6ZJQT5","ux-heuristics","Evaluate and improve interface usability using heuristic analysis. Use when the user mentions \"usability audit\", \"UX review\", \"users are confused\", \"heuristic evaluation\", \"form usability\", \"navigation problems\", \"Nielsen heuristics\", \"cognitive walkthrough\", or \"usability testing\". Also trigger when reviewing a design for usability issues, improving form completion rates, or evaluating information architecture and navigation. Covers Nielsens 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fwondelai-product-strategy\u002Fux-heuristics\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M756ANVFT0T6BAPV6Y93EPR6","traction-eos","Implement the Entrepreneurial Operating System (EOS) to align vision and execution across a company. Use when the user mentions \"EOS\", \"V\u002FTO\", \"quarterly rocks\", \"Level 10 meetings\", \"accountability chart\", \"IDS process\", \"Entrepreneurial Operating System\", or \"business operating system\". Also trigger when a growing company needs meeting structure, goal-setting frameworks, or a systematic approach to solving recurring organizational issues. Covers the six EOS components: Vision, People, Data, Issues, Process, Traction. For team motivation design, see drive-motivation. For lean experimentation, see lean-startup.","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fwondelai-product-strategy\u002Ftraction-eos\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M756A7NZZMNJN9KZ33QGFHV6","top-design","Create award-winning, immersive web experiences at the level of Awwwards-featured agencies. Use when the user mentions \"premium website\", \"portfolio site\", \"scroll animations\", \"Awwwards quality\", \"brand experience\", \"cinematic web design\", \"parallax storytelling\", or \"agency-quality site\". Also trigger when building landing pages that need to impress, designing creative portfolios, or elevating a standard website to a memorable digital experience. Covers dramatic typography, purposeful motion, scroll-based composition, and performance-optimized animation. For foundational UI, see refactoring-ui. For type selection, see web-typography.","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fwondelai-product-strategy\u002Ftop-design\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7569J5G1NXM3RR194D52SGB","system-design","Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues. Use when the user mentions \"system design\", \"scale this\", \"high availability\", \"rate limiter\", \"design a URL shortener\", \"system design interview\", \"capacity planning\", or \"distributed architecture\". Also trigger when estimating infrastructure requirements, choosing between microservices and monoliths, or designing for millions of concurrent users. Covers common system designs and back-of-the-envelope estimation. For data fundamentals, see ddia-systems. For resilience, see release-it.","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fwondelai-product-strategy\u002Fsystem-design\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M75691MJKE6PBA1EC398EKQT","storybrand-messaging","Clarify brand messaging using narrative structure that positions the customer as hero. Use when the user mentions \"brand message\", \"website copy\", \"elevator pitch\", \"one-liner\", \"messaging isnt resonating\", \"brand script\", \"StoryBrand framework\", or \"customer as hero\". Also trigger when rewriting homepage copy, crafting email nurture sequences, or creating consistent messaging across sales collateral and marketing materials. Covers landing page copy, marketing collateral, and consistent communication. For memorable messaging, see made-to-stick. For product positioning, see obviously-awesome.","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fwondelai-product-strategy\u002Fstorybrand-messaging\u002FSKILL.md",[],[]]