Model Switcher
Agent Buildingmodel-switcherModel Switcher is an Agent Skill for agent building published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
タスクの複雑さに応じて Claude のモデルを自動的に切り替える。複雑なタスク(アーキテクチャ設計、大規模リファクタリング、難解なバグ修正)では opus を、単純なタスク(小さな修正、フォーマット、簡単な質問)では sonnet を自動選択。コストと品質のバランスを最適化。
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/model-switcher/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/model-switcher, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Model Switcher
タスクの複雑さに応じて Claude のモデルを自動的に切り替えます。
ワークフロー
1. タスクの複雑さを評価
ユーザーのリクエストを分析し、タスクの複雑さを判断:
複雑なタスク(opus 推奨):
- アーキテクチャ設計
- 大規模リファクタリング
- 難解なバグ修正
- セキュリティ監査
- パフォーマンス最適化
- 複数ファイルにまたがる変更
- 新機能の設計と実装
単純なタスク(sonnet 推奨):
- 小さなバグ修正
- コードフォーマット
- 簡単な質問への回答
- ドキュメント更新
- 単一ファイルの小さな変更
- 定型的なコード生成
2. モデル切り替えを提案
タスクの複雑さに基づいてモデル切り替えを提案:
このタスクは複雑なため、opus モデルへの切り替えを推奨します。
切り替えますか?
/model opus
または
このタスクは単純なため、sonnet モデルで十分です。
現在のモデルを維持します。
3. ユーザーの判断を尊重
最終的なモデル選択はユーザーに委ねる。
モデル特性
| モデル | 特性 | 推奨用途 |
|---|---|---|
| opus | 高い推論能力、複雑な問題解決 | 設計、大規模変更、難解な問題 |
| sonnet | バランスの取れた性能、高速 | 日常的なタスク、小さな変更 |
判断基準
複雑さの指標
- ファイル数: 3 ファイル以上 → 複雑
- 変更行数: 100 行以上 → 複雑
- 依存関係: 複数のモジュールに影響 → 複雑
- 新規設計: 新しいパターンや構造 → 複雑
- デバッグ: 原因不明のバグ → 複雑
重要な注意事項
- ✅ タスクの複雑さを客観的に評価
- ✅ ユーザーの判断を尊重
- ✅ コストと品質のバランスを考慮
- ❌ 自動的にモデルを切り替えない(提案のみ)