360 Secure SkillHub
360 安全技能中心

model-cost-compare

回答“这个任务该用哪个模型、要花多少钱”:先把任务归类为机械、常规编码、复杂推理、长上下文或网络调研,按范围估算输入输出 token 量,用技能内附单价表算出各模型成本,推荐最便宜且足够的座位并给出理由,再输出推荐/更便宜但有风险/高端三行对比表;涉及接口契约、安全、发布、UI 等风险面时升级到当前 Opus 默认档。

分类:数据
nyldn
热度 0.00
最近更新 2026-11-23 17:43:20

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add nyldn/claude-octopus/model-cost-compare
兼容性
Codex 专属
联网要求
不联网
数据出网
数据不出本机
Metadata
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

Host: Codex CLI — This skill was designed for Claude Code and adapted for Codex. Invoke installed skills by their $skill-name. Known Octopus commands are mapped below. A remaining /octo:* reference is a Claude Code command; do not execute it in Codex or invent an equivalent. Before the first helper call, derive the absolute plugin root from this loaded skill's path by finding its ancestor containing .codex-plugin/plugin.json. Verify that root, bind OCTO_ROOT, CODEX_PLUGIN_ROOT, and CLAUDE_PLUGIN_ROOT to the same root, and export all three in each fresh shell before launching child processes. Use the verified absolute helper path when needed. Do not infer the root from the user's project or assume exports survive tool calls. Stop and report a missing installation if the root cannot be verified. Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it. Claude-native tool calls in examples are prompt templates to adapt, not Codex call signatures. If a mandatory verification agent or tool is unavailable or unauthorized, report that verification did not run and stop the affected completion step. Never claim a skipped check passed. Attribute commits only to actual contributors; do not copy fixed model attribution trailers from examples. For host tool equivalents, see codex-skills/blocks/codex-host-adapter.md.

Invoke this entry as $model-cost-compare in Codex. Code-fenced Claude command examples are reference text, not Codex shell commands.

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

  1. Classify the task. Bucket it: mechanical (rename, format), standard coding, hard reasoning (architecture, security review), long-context (>200K tokens input), or web research.
  2. Estimate volume. Rough input/output token estimate from the described scope (files touched × average size; state the assumption).
  3. 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.
  4. 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 high effort; only a bounded judgment-class call (ambiguous architecture, API design, product tradeoffs) justifies Fable 5.1 at 10/50 USD per MTok.
  5. 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.
  6. 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 codex-skills/blocks/fable5-prompting.md).
  • If the estimate exceeds 1 USD, say so explicitly before any dispatch happens.