switch-model
タスクの複雑さに応じて Claude のモデルを自動的に切り替える。複雑なタスク(アーキテクチャ設計、大規模リファクタリング、難解なバグ修正)では opus を、単純なタスク(小さな修正、フォーマット、簡単な質問)では sonnet を自動選択。コストと品質のバランスを最適化。
npx skills add majiayu000/claude-skill-registry --skill switch-model --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Switch Model タスクの複雑さに応じて Claude のモデルを自動的に切り替えます。 ## ワークフロー ### 1. タスクの複雑さを評価 ユーザーのリクエストを分析し、タスクの複雑さを判断: **複雑なタスク(opus 推奨)**: - アーキテクチャ設計 - 大規模リファクタリング - 難解なバグ修正 - セキュリティ監査 - パフォーマンス最適化 - 複数ファイルにまたがる変更 - 新機能の設計と実装 **単純なタスク(sonnet 推奨)**: - 小さなバグ修正 - コードフォーマット - 簡単な質問への回答 - ドキュメント更新 - 単一ファイルの小さな変更 - 定型的なコード生成 ### 2. モデル切り替えを提案 タスクの複雑さに基づいてモデル切り替えを提案: ``` このタスクは複雑なため、opus モデルへの切り替えを推奨します。 切り替えますか? /model opus ``` または ``` このタスクは単純なため、sonnet モデルで十分です。 現在のモデルを維持します。 ``` ### 3. ユーザーの判断を尊重 最終的なモデル選択はユーザーに委ねる。 ## モデル特性 | モデル | 特性 | 推奨用途 | |--------|------|----------| | opus | 高い推論能力、複雑な問題解決 | 設計、大規模変更、難解な問題 | | sonnet | バランスの取れた性能、高速 | 日常的なタスク、小さな変更 | ## 判断基準 ### 複雑さの指標 - **ファイル数**: 3 ファイル以上 → 複雑 - **変更行数**: 100 行以上 → 複雑 - **依存関係**: 複数のモジュールに影響 → 複雑 - **新規設計**: 新しいパターンや構造 → 複雑 - **デバッグ**: 原因不明のバグ → 複雑 ## 重要な注意事項 - ✅ タスクの複雑さを客観的に評価 - ✅ ユーザーの判断を尊重 - ✅ コストと品質のバランスを考慮 - ❌ 自動的にモデルを切り替えない(提案のみ)
- ワークフロー
- 1. タスクの複雑さを評価
- 2. モデル切り替えを提案
- 3. ユーザーの判断を尊重
- モデル特性
- 判断基準
- 複雑さの指標
- 重要な注意事項
What does the switch-model skill do?
タスクの複雑さに応じて Claude のモデルを自動的に切り替える。複雑なタスク(アーキテクチャ設計、大規模リファクタリング、難解なバグ修正)では opus を、単純なタスク(小さな修正、フォーマット、簡単な質問)では sonnet を自動選択。コストと品質のバランスを最適化。
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill switch-model --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
