dynamic-model-selector

Coding Agents & IDEs
v1.0.0
Benign

Dynamically select the best AI model for a task based on complexity, cost, and availability in GitHub Copilot.

846 downloads846 installsby @mpelissari

Setup & Installation

Install command

clawhub install mpelissari/dynamic-model-selector

If the CLI is not installed:

Install command

npx clawhub@latest install mpelissari/dynamic-model-selector

Or install with OpenClaw CLI:

Install command

openclaw skills install mpelissari/dynamic-model-selector

or paste the repo link into your assistant's chat

Install command

https://github.com/openclaw/skills/tree/main/skills/mpelissari/dynamic-model-selector

What This Skill Does

Analyzes user queries to recommend the optimal AI model from GitHub Copilot's available options. Routes tasks based on complexity, cost sensitivity, and task type such as code generation or multi-step reasoning.

Instead of manually picking a model each time, the classification script matches task complexity to the right model, avoiding overpaying for simple queries or underserving complex ones.

When to Use It

  • Routing simple chat queries to free models to avoid unnecessary cost
  • Selecting gpt-4o for complex analysis tasks automatically
  • Picking code-optimized models for code generation requests
  • Comparing model options before starting a long reasoning task
  • Keeping costs low on high-volume automated workflows
View original SKILL.md file
# Dynamic Model Selector

## Overview

This skill analyzes user queries to recommend the optimal AI model from available GitHub Copilot options, balancing performance, cost, and task requirements.

## How to Use

1. Provide the user query or task description.
2. Run the classification script to analyze complexity.
3. Choose the suggested model or adjust based on preferences.

## Classification Criteria

- **Simple tasks** (short responses, basic chat): Use faster, free models like grok-code-fast-1.
- **Complex reasoning** (analysis, multi-step): Use advanced models like gpt-4o or claude-3.5-sonnet.
- **Code generation**: Prefer code-optimized models.
- **Cost sensitivity**: Favor free models when possible.

## Example Usage

For a query like "Explain quantum computing": Classify as medium complexity -> Recommend gpt-4o.

For "Write a Python function to sort a list": Classify as code task -> Recommend grok-code-fast-1.

## Resources

### scripts/
- `classify_task.py`: Analyzes the query and outputs model recommendation.

### references/
- `models.md`: Detailed list of available models, pros/cons, costs.

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Routing simple chat queries to free models to avoid unnecessary cost

AGENT
  1. 1Routing simple chat queries to free models to avoid unnecessary cost
  2. 2Selecting gpt-4o for complex analysis tasks automatically
  3. 3Picking code-optimized models for code generation requests
  4. 4Comparing model options before starting a long reasoning task
  5. 5Keeping costs low on high-volume automated workflows
OUTPUT
Dynamically select the best AI model for a task based on complexity, cost, and availability in GitHub Copilot.

Share this skill

Security Audits

VirusTotalBenign
OpenClawBenign
View full report

These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.

Details

LanguageMarkdown
Last updatedMar 1, 2026