
zscole/model-hierarchy-skill
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
zscole/model-hierarchy-skillは、https://github.com/zscole/model-hierarchy-skill.からインポートされたエージェントスキル候補です。
概要
zscole/model-hierarchy-skillは、https://github.com/zscole/model-hierarchy-skill.からインポートされたエージェントスキル候補です。
概要(AI 翻訳)
複雑さに基づいて適切なモデルにタスクを割り当てることで、AIエージェントの運用をコスト最適化します。
問題
ほとんどのAIエージェントはすべて高価なモデルで動かしています。しかしエージェントの80%のタスクはルーチンです:ファイルの読み取り、ステータスチェック、フォーマット、簡単なQ&Aです。0.14ドル/Mトークンで十分処理できる作業に対して、15〜75ドルのトークン料金を支払っているのです。
解決策
エージェントにタスクを分類し、それを処理可能な最も安価なモデルに割り当てるスキル:
| タスクタイプ | モデル階層 | コスト | 例 |
|---|---|---|---|
| ルーティン(80%) | 安い | $0.14-0.50/M | ファイルオペレーション、ステータスチェック、フォーマット |
| 中程度(15%) | 中級 | 1〜5ドル/月 | コード生成、要約、ドラフト |
| 複雑(5%) | プレミアム | $10-75/M | デバッグ、アーキテクチャ、新規課題 |
結果:~10倍のコスト削減、重要なタスクにおいて同等の品質を維持。
クイックスタート
オープンクロー
クロード・コード/コデックス
CLAUDE.mdまたはプロジェクトの指示に追加してください:
その他のエージェントシステム
完全な分類規則および積分例については、SKILL.md を参照してください。
コスト数学
1日あたり10万トークンを想定すると:
| 戦略 | 月間コスト |
|---|---|
| ピュア・オーパス | ~$225 |
| ピュア・ソネット | ~$45 |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
model-hierarchy-skill
Cost-optimize AI agent operations by routing tasks to appropriate models based on complexity.
The Problem
Most AI agents run everything on expensive models. But 80% of agent tasks are routine: file reads, status checks, formatting, simple Q&A. You’re paying $15-75/M tokens for work that $0.14/M tokens handles fine.
The Solution
A skill that teaches agents to classify tasks and route them to the cheapest model that can handle them:
| Task Type | Model Tier | Cost | Examples |
|---|---|---|---|
| Routine (80%) | Cheap | $0.14-0.50/M | File ops, status checks, formatting |
| Moderate (15%) | Mid | $1-5/M | Code gen, summaries, drafts |
| Complex (5%) | Premium | $10-75/M | Debugging, architecture, novel problems |
Result: ~10x cost reduction with equivalent quality on the tasks that matter.
Quick Start
OpenClaw
# Copy SKILL.md to your skills directory
cp SKILL.md ~/.openclaw/skills/model-hierarchy/SKILL.md
# Restart gateway to pick up the skill
openclaw gateway restart
Claude Code / Codex
Add to your CLAUDE.md or project instructions:
## Model Routing
Before executing tasks, classify complexity:
- ROUTINE (file ops, lookups, formatting) → Use cheapest model
- MODERATE (code, summaries, analysis) → Use mid-tier model
- COMPLEX (debugging, architecture, failures) → Use premium model
When spawning sub-agents, default to cheap models unless task requires more.
Other Agent Systems
See SKILL.md for the full classification rules and integration examples.
Cost Math
Assuming 100K tokens/day:
| Strategy | Monthly Cost |
|---|---|
| Pure Opus | ~$225 |
| Pure Sonnet | ~$45 |
| Hierarchy (80/15/5) | ~$19 |
Testing
# Run classification tests
python -m pytest tests/ -v
# Test specific scenarios
python tests/test_classification.py
Files
model-hierarchy-skill/
├── SKILL.md # The skill (install this)
├── README.md # You're here
├── tests/
│ ├── test_classification.py
│ └── scenarios.json
└── examples/
├── openclaw.md
└── claude-code.md
License
MIT
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add zscole/model-hierarchy-skill