Skip to content
Development
Skill

/model

Model selection strategy and routing. Use when choosing between models for different task types, subagent configurations, or optimizing token cost vs quality tradeoffs.

From plugin
cc-best
5019 skills8 agents44 commands20 hooks

Claude Code

$ npx -y skills add xiaobei930/cc-best --skill model --agent claude-code

SKILL.md

model.SKILL.md
name: model
description: "Model selection strategy and routing. Use when choosing between models for different task types, subagent configurations, or optimizing token cost vs quality tradeoffs."
allowed-tools: Read, Grep, Glob

模型选择技能

本技能提供任务类型到模型的推荐映射,帮助 Claude 在不同场景下选择合适的模型。

子文件

  • [routing-matrix.md](routing-matrix.md) - 任务类型→模型推荐矩阵

核心原则

1. **探索用 Haiku** — 快速、低成本,适合大量 Glob/Grep/Read 操作 2. **实现用 Sonnet** — 平衡质量和速度,适合编码和测试 3. **决策用 Opus** — 深度思考,适合架构设计和安全审查

与 /cc-best:model 命令的关系

  • `/cc-best:model` 命令用于**全局切换**所有 Agent 的模型策略(quality/balanced/economy)
  • 本技能提供**细粒度参考**,帮助 Claude 在具体任务中判断模型选择
  • 命令是"批量切换",技能是"逐任务建议"

使用场景

自动参考

当 Claude 遇到以下场景时,会自动参考本技能:

  • 启动子代理(Task tool)时选择 model 参数
  • 评估当前任务复杂度时
  • 用户询问模型选择建议时

决策流程

任务到达 ──→ 评估复杂度 ──→ 查询 routing-matrix ──→ 选择模型
                │
                ├─ 简单(搜索/读取)→ haiku
                ├─ 中等(编码/测试)→ sonnet
                └─ 复杂(架构/安全)→ opus

最佳实践

1. **成本敏感场景** — 子代理探索任务优先 haiku,节省 token 2. **质量敏感场景** — 安全审查、架构决策必须用 opus 3. **混合场景** — 同一工作流中可对不同阶段使用不同模型 4. **用户偏好** — 尊重 `/cc-best:model` 设定的全局策略

---

> **记住**:模型选择的目标是用最低成本达到足够的质量。不是所有任务都需要最强模型,也不是所有任务都能用最快模型。

@xiaobei930
Ships withcc-best

Role-Driven Development Workflow for Claude Code Transform Claude into a complete development team. From product requirements to code review — one plugin, full workflow. Quick Start • Features • Workflow • Commands • FAQ

5019 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
50
Star history of xiaobei930/cc-best on GitHub, a chart by star-history.com

Other skills on cc-best.

api

api

RESTful API design patterns and best practices. Use when creating endpoints, designing APIs, or implementing routes.

@xiaobei930@xiaobei930Install Skill
architecture

architecture

Architecture design skill: ADR records, system design checklists, scalability assessment, architecture patterns. Use for complex…

@xiaobei930@xiaobei930Install Skill
backend

backend

Backend development patterns for services, error handling, logging, caching. Use when building backend services, APIs, or…

@xiaobei930@xiaobei930Install Skill
compact

compact

Strategic compaction skill: suggests context compression at logical breakpoints. Use to suggest compaction at logical intervals…

@xiaobei930@xiaobei930Install Skill
database

database

Database design, query optimization, migrations, and indexing. Use when designing schemas, writing queries, or managing…

@xiaobei930@xiaobei930Install Skill
debug

debug

Systematic debugging methods, log analysis, and performance diagnostics. Use when debugging issues, analyzing errors, or…

@xiaobei930@xiaobei930Install Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react3d252k
@facebook@facebookInstall Skill

Questions about model.

Which coding agents can use model?
model installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.