🔀
AI EngineeringPython

External Model Delegation

by alinaqi

External Model Delegation is an AI Engineering skill for Claude Code, published by alinaqi in maggy.

704 stars57 forkson alinaqi/maggyAdded 2026/08/23Repository updated 2026/08/18
ai-codingclaudeclaude-codedeveloper-toolsproject-initializationpythonreactsecuritytypescript
Install in seconds
Install External Model Delegation
Copy External Model Delegation into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/alinaqi/maggy/tree/main/skills/external-model-delegation ~/.claude/skills/external-model-delegation

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/alinaqi/maggy.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/external-model-delegation/SKILL.md in alinaqi/maggy
Installs to
~/.claude/skills/external-model-delegation
Collection
One of 25 skills cataloged from this repository
Category
AI Engineering2451 skills

What External Model Delegation does

External Model Delegation routes each user prompt to a chosen model or CLI based on cost and task type. Use it to delegate simple, medium, or complex requests to local or external models from a Claude Code hook.

External Model Delegation is cataloged under AI Engineering on DirSkills. External Model Delegation comes from a repository tagged ai-coding, claude, claude-code, developer-tools and project-initialization.

Documentation

README

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

This is the opening of the README. Read the full README on GitHub.

Frequently asked about External Model Delegation

  • What else does alinaqi publish alongside External Model Delegation?

    External Model Delegation is one of 25 skills that DirSkills catalogs from alinaqi/maggy, the repository it ships in. Its siblings there include AI Engine Optimization, AI Models Reference and AWS Aurora. Each one is a separate skill with its own page in this directory, installs the same way External Model Delegation does, and is maintained by alinaqi in that same repository. The rest of the collection is listed on the alinaqi/maggy page.

  • How does External Model Delegation compare to other AI Engineering skills?

    External Model Delegation ranks #1716 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of External Model Delegation against them. Open each page to compare what they document and how they install.

More from alinaqi/maggy

External Model Delegation is one of 25 skills cataloged on DirSkills from alinaqi/maggy.

See all 25 skills