タスクの複雑さに応じて Claude のモデルを自動的に切り替える。複雑なタスク(アーキテクチャ設計、大規模リファクタリング、難解なバグ修正)では opus を、単純なタスク(小さな修正、フォーマット、簡単な質問)では sonnet を自動選択。コストと品質のバランスを最適化。
Scanned 9/2/2026
Install to Claude Code
npx -y skills add majiayu000/claude-skill-registry --skill switch-model --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Switch Model?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/majiayu000-switch-model)More formats (shields.io, HTML) on the badges page.
---
name: switch-model
description: タスクの複雑さに応じて Claude のモデルを自動的に切り替える。複雑なタスク(アーキテクチャ設計、大規模リファクタリング、難解なバグ修正)では opus を、単純なタスク(小さな修正、フォーマット、簡単な質問)では sonnet を自動選択。コストと品質のバランスを最適化。
allowed-tools: [Read, Bash]
---
# Switch Model
タスクの複雑さに応じて Claude のモデルを自動的に切り替えます。
## ワークフロー
### 1. タスクの複雑さを評価
ユーザーのリクエストを分析し、タスクの複雑さを判断:
**複雑なタスク(opus 推奨)**:
- アーキテクチャ設計
- 大規模リファクタリング
- 難解なバグ修正
- セキュリティ監査
- パフォーマンス最適化
- 複数ファイルにまたがる変更
- 新機能の設計と実装
**単純なタスク(sonnet 推奨)**:
- 小さなバグ修正
- コードフォーマット
- 簡単な質問への回答
- ドキュメント更新
- 単一ファイルの小さな変更
- 定型的なコード生成
### 2. モデル切り替えを提案
タスクの複雑さに基づいてモデル切り替えを提案:
```
このタスクは複雑なため、opus モデルへの切り替えを推奨します。
切り替えますか?
/model opus
```
または
```
このタスクは単純なため、sonnet モデルで十分です。
現在のモデルを維持します。
```
### 3. ユーザーの判断を尊重
最終的なモデル選択はユーザーに委ねる。
## モデル特性
| モデル | 特性 | 推奨用途 |
|--------|------|----------|
| opus | 高い推論能力、複雑な問題解決 | 設計、大規模変更、難解な問題 |
| sonnet | バランスの取れた性能、高速 | 日常的なタスク、小さな変更 |
## 判断基準
### 複雑さの指標
- **ファイル数**: 3 ファイル以上 → 複雑
- **変更行数**: 100 行以上 → 複雑
- **依存関係**: 複数のモジュールに影響 → 複雑
- **新規設計**: 新しいパターンや構造 → 複雑
- **デバッグ**: 原因不明のバグ → 複雑
## 重要な注意事項
- ✅ タスクの複雑さを客観的に評価
- ✅ ユーザーの判断を尊重
- ✅ コストと品質のバランスを考慮
- ❌ 自動的にモデルを切り替えない(提案のみ)
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
**Complete production-ready guide for Google Gemini embeddings API** This skill provides comprehensive coverage of the `gemini-embedding-001` model for generating text embeddings, including SDK usage, REST API patterns, batch processing, RAG integration with Cloudflare Vectorize, and advanced use cases like semantic search and document clustering. ---
Interview, source-challenge, verify, save, and ADR-gate fuzzy coding requests into Codex-ready implementation specs. Use when a feature, bugfix, refactor, migration, repo-wide change, or architecture task needs user-verified requirements, source-backed decisions, durable architecture decisions, acceptance criteria, validation commands, rollout notes, saved spec/ADR files, and a Codex execution prompt. Do not use when already fully specified or when the user wants direct implementation now.
Use when a repo needs CodeGraph plus ast-grep for Codex MCP setup, exploration, impact analysis, structural search, or safe refactor planning.