alinaqi/maggy/external-model-delegation
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
UserPromptSubmit hook pattern that classifies prompts into six cost tiers and delegates to external model CLIs
Install
npx vskill@latest install alinaqi/maggy/external-model-delegationSKILL.md
External Model Delegation Pattern
A UserPromptSubmit hook classifies every user prompt into one of six cost/performance tiers. The hook injects additionalContext instructing Claude to run a specific delegation script and return the output.
Tier routing table
| Tier | Delegation command | Cost | |
|---|---|---|---|
| QWEN | qwen3 "prompt" | $0 (local Ollama) | |
| DEEPSEEK_FLASH | deepseek --flash "prompt" | $0.14 / $0.28 per M tokens | |
| DEEPSEEK_PRO | deepseek --pro "prompt" | $0.44 / $0.87 per M tokens | |
| KIMI | kimi --quiet -p "prompt" | $0.60 / $2.50 per M tokens | |
| CODEX | codex exec | varies | |
| CLAUDE | handle natively | $3-5 / $15-25 per M tokens |
Delegation script pattern
Each script is a self-contained executable in ~/bin/ that accepts a prompt and writes the response to stdout:
Script contract
- Accept prompt as first argument:
qwen3 "what is 2+2" - Support
--flash/--promodel flags (deepseek) - Support
--quietmode flag (kimi) - Write response to stdout, errors to stderr
- Exit 0 on success, non-zero on error
Writing a new delegation script
Routing hook flow
Classification tiers
| Tier | Task types | |
|---|---|---|
| QWEN | grep, find, regex, shell, syntax lookups, log reading, short summaries | |
| DEEPSEEK_FLASH | Simple code, boilerplate, CRUD, test writing, small fixes, config | |
| DEEPSEEK_PRO | Multi-file features, refactors, debugging, medium coding, docs | |
| KIMI | Single-file review, medium reasoning, commit messages, diff summaries | |
| CODEX | Bulk generation, mechanical changes across many files | |
| CLAUDE | Architecture, security, complex debugging, system design, quality-critical |
Environment
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/external-model-delegation/SKILL.md
Popularity
- Repository stars
- 701
- Repository forks
- 55
- 7-day trend score
- 33
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alinaqi/maggy/external-model-delegation)