agent-model-selection

Guidelines for selecting appropriate AI model (Sonnet vs Haiku) based on task complexity, ensuring cost efficiency while maintaining quality. Use when assigning work.

16 stars

Best use case

agent-model-selection is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Guidelines for selecting appropriate AI model (Sonnet vs Haiku) based on task complexity, ensuring cost efficiency while maintaining quality. Use when assigning work.

Teams using agent-model-selection should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/agent-model-selection/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/data-ai/agent-model-selection/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/agent-model-selection/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How agent-model-selection Compares

Feature / Agentagent-model-selectionStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Guidelines for selecting appropriate AI model (Sonnet vs Haiku) based on task complexity, ensuring cost efficiency while maintaining quality. Use when assigning work.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Agent Model Selection

## Instructions

### Core decision

**Sonnet:** Complex reasoning, architecture, security (2+ criteria)
**Haiku:** Defined rules, repetitive tasks, simple commands (~95% cheaper)

### Selection criteria

**Use Sonnet if 2+ apply:**
1. Logical reasoning and trade-off analysis
2. Architecture/design decisions
3. Semantic/intent analysis
4. Problem diagnosis and strategy
5. Multi-component interaction
6. Security/performance analysis

**Use Haiku if dominant:**
1. Following defined rules/templates
2. Repetitive mechanical tasks
3. Command execution and collection
4. Simple CRUD operations
5. Format validation

### Decision flowchart

```
Architecture/design? → YES → Sonnet
Multiple options? → YES → Sonnet
Security/performance? → YES → Sonnet
Defined rules only? → YES → Haiku
Detailed guide? → YES → Haiku
Large delegated? → YES → Sonnet
Simple commands? → YES → Haiku
Default: Sonnet (quality first)
```

## Example

```markdown
Task: Add validation logic
→ Analysis: Complex rules + security + error handling
→ Decision: Sonnet (3 criteria met)

Task: Add tags to files
→ Analysis: Template exists, repetitive
→ Decision: Haiku (rule-following)
```

---

**For detailed criteria, see [reference.md](reference.md)**
**For more examples, see [examples.md](examples.md)**

Related Skills

ios-foundation-models-diag

16
from diegosouzapw/awesome-omni-skill

Use when debugging Foundation Models issues — context exceeded, guardrail violations, slow generation, availability problems, unsupported language, or unexpected output. Systematic diagnostics with production crisis defense.

fair-data-model-assessment

16
from diegosouzapw/awesome-omni-skill

Assess data models against FAIR principles using RDA-FDMM indicators. Use when: (1) Evaluating vendor-delivered data models for FAIR compliance, (2) Reviewing schemas, ontologies, or data dictionaries before integration, (3) Creating FAIR assessment reports for data governance reviews, (4) Preparing data model documentation for enterprise or regulatory standards, (5) Auditing existing data assets for FAIRness gaps. Covers 41 RDA indicators across Findable, Accessible, Interoperable, Reusable dimensions with maturity scoring (0-4 scale).

data-model

16
from diegosouzapw/awesome-omni-skill

Generate comprehensive data model documentation with ERD, DTOs, and data flow diagrams

data-model-creation

16
from diegosouzapw/awesome-omni-skill

Professional rules for AI-driven data modeling and creation. Use this skill when users need to create and manage MySQL databases, design data models using Mermaid ER diagrams, and implement database schemas.

Build Your Model Serving Skill

16
from diegosouzapw/awesome-omni-skill

Create your model-serving skill from Ollama documentation before learning deployment theory

Build Your Model Merging Skill

16
from diegosouzapw/awesome-omni-skill

No description provided.

axiom-foundation-models

16
from diegosouzapw/awesome-omni-skill

Use when implementing on-device AI with Apple's Foundation Models framework — prevents context overflow, blocking UI, wrong model use cases, and manual JSON parsing when @Generable should be used. iOS 26+, macOS 26+, iPadOS 26+, axiom-visionOS 26+

avalonia-viewmodels-zafiro

16
from diegosouzapw/awesome-omni-skill

Optimal ViewModel and Wizard creation patterns for Avalonia using Zafiro and ReactiveUI.

add-opencode-model

16
from diegosouzapw/awesome-omni-skill

Fetch OpenCode Zen model details and provide guidance for adding models to acai-ts provider configuration.

Add Model Property

16
from diegosouzapw/awesome-omni-skill

Add a new property to an existing data model and propagate changes through model generation to client and server. Use when adding fields to entities, extending models, or modifying data structures. Handles source model editing, regeneration, ViewModel updates, and server-side changes.

accessibility-object-model-integration

16
from diegosouzapw/awesome-omni-skill

Programmatic manipulation of the accessibility tree to support complex custom controls in React.

acc-create-read-model

16
from diegosouzapw/awesome-omni-skill

Generates Read Model/Projection for PHP 8.5. Creates optimized query models for CQRS read side with projections and denormalization. Includes unit tests.