Agent Skills
› nyldn/claude-octopus
› model-cost-compare
model-cost-compare
GitHub根据任务类型估算token量,对比各模型成本,推荐最经济且胜任的模型。适用于批量重构、深度审查等场景,需输出成本明细及风险提示。
Trigger Scenarios
询问使用哪个模型更便宜
需要评估特定任务的执行成本
在预算约束下选择AI服务
Install
npx skills add nyldn/claude-octopus --skill model-cost-compare -g -y
SKILL.md
Frontmatter
{
"name": "model-cost-compare",
"description": "Starter: compare model costs for a described task — maps task shape to the cheapest adequate seat and shows the price spread",
"disable-model-invocation": true
}
Model Cost Comparison (Starter Pack)
Answer "which model should I use for this, and what will it cost?" with numbers instead of vibes.
When to use
The user describes a task (bulk refactor, deep review, quick lookup, long-context analysis) and wants the cheapest seat that is still adequate.
Steps
- Classify the task. Bucket it: mechanical (rename, format), standard coding, hard reasoning (architecture, security review), long-context (>200K tokens input), or web research.
- Estimate volume. Rough input/output token estimate from the described scope (files touched × average size; state the assumption).
- Price the roster. Using the cost table in CLAUDE.md ($/MTok input/output), compute the estimated cost for each plausible seat: Claude Opus 5.5 (4/20 USD), Claude Opus 5 (5/25 USD), Claude Sonnet 5 (2/10 USD), Fable 5.1 (10/50 USD, 1M context, explicit-only), Codex GPT-5.6 Sol (4/20 USD), Terra (2/12 USD), Luna (0.20/1.20 USD), GPT-6 Astra (10/50 USD, explicit-only), Perplexity Sonar Pro (3/15 USD), and the included-cost seats (agy, copilot, ollama, cursor-agent) at 0 USD. For Astra requests above 272K input tokens, apply 2x input and 1.5x output pricing to the full request.
- Recommend one seat. Pick the cheapest adequate option and defend it in two sentences. Mechanical work goes to included or budget seats; hard reasoning justifies the current Opus default at
higheffort; only a bounded judgment-class call (ambiguous architecture, API design, product tradeoffs) justifies Fable 5.1 at 10/50 USD per MTok. - Check risk surfaces. Regardless of the classification, escalate specifically to the current Opus default—Opus 5.5 on Claude Code v2.1.280+, otherwise Opus 5—when the task touches API or schema contracts, security-sensitive code or CI configuration, release artifacts, user-facing UI, a new module, or a breaking change. Fable 5.1 remains limited to bounded judgment-class calls and is never the security-audit seat. Astra is also explicit-only and does not provide independence from GPT-5.6. Cheap-seat agreement never settles a judgment-class decision.
- Show the spread. A three-row table: recommended seat, one cheaper-but-riskier option, one premium option, each with estimated dollars for this task.
Guardrails
- Never recommend Fable 5.1, Astra, or fast-mode Opus by default; these premium seats are opt-in only.
- Never recommend Fable 5.1 for security audits; its safety classifiers can refuse offensive-security phrasing. Security review goes to Opus 5 (see
skills/blocks/fable5-prompting.md). - If the estimate exceeds 1 USD, say so explicitly before any dispatch happens.
Version History
-
ca27fae
Current 2026-10-19 18:51
修复美元符号被错误替换为参数的Bug,确保成本估算显示正确。
-
99157b3
2026-09-28 10:01
新增 Claude Opus 5.5 模型及其快速模式的价格与路由配置。
-
2d3ee65
2026-09-22 23:06
新增Fable 5.1和Astra模型支持,更新相关定价规则及安全限制说明。
- 242e51d 2026-08-20 09:32


