From cost-optimizer
task に最適な Claude model (Opus 4.7 / Sonnet 4.6 / Haiku 4.5) 推奨 (heuristic、LLM 不使用)。Triggers: どの model, model 推奨, Opus 必要, Haiku で足りる, which model, best model, do I need Opus, is Haiku enough, Opus or Sonnet
How this skill is triggered — by the user, by Claude, or both
Slash command
/cost-optimizer:model-recommendThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
`cost-optimizer` plugin の skill。 user が「このタスクには Opus / Sonnet / Haiku どれが最適?」と判断したい時に起動する。 task-classifier.sh のキーワード規則に基づく heuristic 推奨 (LLM 推論不使用、コスト 0)。
cost-optimizer plugin の skill。 user が「このタスクには Opus / Sonnet / Haiku どれが最適?」と判断したい時に起動する。 task-classifier.sh のキーワード規則に基づく heuristic 推奨 (LLM 推論不使用、コスト 0)。
対象 prompt を classifier に渡す — user が直前の prompt や対象タスクの説明を提供:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/task-classifier.sh" \
--prompt "$USER_TASK_DESCRIPTION" --format json
stdin 経由でも可:
echo "$USER_TASK_DESCRIPTION" | bash "${CLAUDE_PLUGIN_ROOT}/scripts/task-classifier.sh"
出力 JSON を解釈 — recommended_model field を user に伝える。 confidence も併記 (low なら明示的に「自信なし」)。
推奨理由 1 行説明 — task_type 別に短く (cost-saving 候補としての提示、 上位 model を強制排除しない):
trivial-edit → "機械的な編集が中心、 cost-saving candidate として Haiku を提案。 微妙な意味判断が含まれるなら Sonnet に上げる"research → "情報収集中心、 Sonnet が cost-quality バランス候補"implementation → "実装作業、 Sonnet が標準候補。 副作用大きい変更は Opus を検討"architecture → "大規模設計、 Opus の推論力が活きる場面"debug → "Sonnet を起点に、 stack trace が複雑なら Opus へ昇格を検討"review → "レビューは Opus の精度が活きる場面、 軽微チェックは Sonnet も可"user override 検出時は注記 — user_override_detected: true なら「prompt に既に model 指定あり、推奨は参考まで」と返す。
| task_type | model | 月コスト目安 (vs Opus 100%) |
|---|---|---|
| trivial-edit | claude-haiku-4-5 | ~7% |
| research | claude-sonnet-4-6 | ~30% |
| implementation | claude-sonnet-4-6 | ~30% |
| architecture | claude-opus-4-7 | 100% |
| debug | claude-sonnet-4-6 | ~30% |
| review | claude-opus-4-7 | 100% |
| general | claude-sonnet-4-6 (fallback) | ~30% |
数字は目安。 実際の cost は input/output token 比、 cache hit 率に依存。 精密値は
cost-monitorplugin の dashboard で確認。
/model で実行。agent-recommend (同 plugin): 同じ task-classifier 結果から subagent も推奨cost-monitor の cost-status: 現在の累計 cost を確認、 model 変更の影響評価にnpx claudepluginhub arkatom/claude-plugins --plugin cost-optimizerCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.