
zscole/model-hierarchy-skill
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
zscole/model-hierarchy-skill은 [[T0]에서 가져온 에이전트 스킬 후보입니다.
개요
zscole/model-hierarchy-skill은 [[T0]에서 가져온 에이전트 스킬 후보입니다.
개요(AI 번역)
복잡성에 따라 적절한 모델에 작업을 할당하여 AI 에이전트 운영을 비용 최적화합니다.
문제야
대부분의 AI 에이전트는 모든 것을 비싼 모델로 실행합니다. 하지만 에이전트 작업의 80%는 일상적인 작업입니다: 파일 읽기, 상태 확인, 서식, 간단한 Q&A. 0.14달러/M 토큰으로 충분히 처리할 수 있는 작업에 15-75달러를 지불하는 셈입니다.
해결책
에이전트가 작업을 분류하고 이를 처리할 수 있는 가장 저렴한 모델로 라우팅하는 기술을 가르치는 기술:
| 작업 유형 | 모델 계층 | 비용 | 예시 |
|---|---|---|---|
| 루틴 (80%) | 저렴한 | $0.14-0.50/M | 파일 작업, 상태 확인, 서식 |
| 보통 (15%) | 중간 | $1-5/M | 코드 생성, 요약, 초안 |
| 복잡 (5%) | 프리미엄 | $10-75/M | 디버깅, 아키텍처, 새로운 문제 |
결과: ~10배의 비용 절감과 중요한 업무에 대한 동등한 품질 향상.
퀵 스타트
오픈클로
클로드 코드 / 코덱스
CLAUDE.md 또는 프로젝트 지침에 추가하세요:
기타 에이전트 시스템
전체 분류 규칙과 적분 예제는 SKILL.md 를 참조하세요.
비용 수학
하루 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