LLM Pipeline Profiler Analysis
BBuf/AI-Infra-Auto-Driven-SKILLS
Breaks LLM torch profiler traces down by forward pass, layer and kernel, with timing tables and Perfetto time ranges for the layers you want to inspect.
UserPromptSubmit hook pattern that classifies prompts into six cost tiers and delegates to external model CLIs
$ npx skills add alinaqi/maggy --skill external-model-delegation -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install alinaqi/maggy external-model-delegation --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/alinaqi/maggy.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/external-model-delegation .claude/skills/external-model-delegation && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "external-model-delegation" agent skill from https://github.com/alinaqi/maggy/tree/main/skills/external-model-delegation into .claude/skills/external-model-delegation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "external-model-delegation", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/alinaqi/maggy/tree/main/skills/external-model-delegationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add alinaqi/maggy --skill external-model-delegation -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install alinaqi/maggy external-model-delegation --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alinaqi/maggy.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/external-model-delegation .agents/skills/external-model-delegation && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "external-model-delegation" agent skill from https://github.com/alinaqi/maggy/tree/main/skills/external-model-delegation into .agents/skills/external-model-delegation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "external-model-delegation", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add alinaqi/maggy --skill external-model-delegation -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install alinaqi/maggy external-model-delegation --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alinaqi/maggy.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/external-model-delegation .cursor/skills/external-model-delegation && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "external-model-delegation" agent skill from https://github.com/alinaqi/maggy/tree/main/skills/external-model-delegation into .cursor/skills/external-model-delegation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "external-model-delegation", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/alinaqi/maggy.git --path skills/external-model-delegation--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add alinaqi/maggy --skill external-model-delegation -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install alinaqi/maggy external-model-delegation --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alinaqi/maggy.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/external-model-delegation .gemini/skills/external-model-delegation && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "external-model-delegation" agent skill from https://github.com/alinaqi/maggy/tree/main/skills/external-model-delegation into .gemini/skills/external-model-delegation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "external-model-delegation", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install alinaqi/maggy external-model-delegationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add alinaqi/maggy --skill external-model-delegation -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/alinaqi/maggy.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/external-model-delegation .github/skills/external-model-delegation && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "external-model-delegation" agent skill from https://github.com/alinaqi/maggy/tree/main/skills/external-model-delegation into .github/skills/external-model-delegation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "external-model-delegation", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add alinaqi/maggy --skill external-model-delegation -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install alinaqi/maggy external-model-delegation --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alinaqi/maggy.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/external-model-delegation .opencode/skills/external-model-delegation && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "external-model-delegation" agent skill from https://github.com/alinaqi/maggy/tree/main/skills/external-model-delegation into .opencode/skills/external-model-delegation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "external-model-delegation", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
external-model-delegationUserPromptSubmit hook pattern that classifies prompts into six cost tiers and delegates to external model CLIs
External Model Delegation is an agent skill from alinaqi/maggy. UserPromptSubmit hook pattern that classifies prompts into six cost tiers and delegates to external model CLIs
Its SKILL.md is about 790 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development. It works with Qwen, DeepSeek and Kimi. The repository describes itself as: What started as an opinionated Claude Code setup kit is now an autonomous AI engineering command center. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 72a456e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
jqcodexcurlclaudeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
API_KEYEXTERNAL_API_KEYDEEPSEEK_API_KEYOPENAI_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
External Model Delegation loads about 785 tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 216 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from alinaqi/maggy at commit 72a456e, republished under its MIT licence (© alinaqi). 216 words, ~785 tokens.
.claude/skills/external-model-delegation/SKILL.md (or your agent's skills folder).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 | 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 |
Each script is a self-contained executable in ~/bin/ that accepts a prompt and writes the response to stdout:
~/bin/
├── qwen3 # Shell: curl to local Ollama API
├── kimi # Shell: execs Kimi CLI binary
├── deepseek # Python: httpx to DeepSeek Anthropic-compat API
└── route-task # Shell + qwen3: classifies prompt into tierqwen3 "what is 2+2"--flash / --pro model flags (deepseek)--quiet mode flag (kimi)#!/bin/bash
# Minimal delegator template
PROMPT="$1"
API_KEY="${EXTERNAL_API_KEY:-}"
# Call external API, write result to stdout
curl -s https://api.example.com/chat \
-H "Authorization: Bearer $API_KEY" \
-d "$(jq -n --arg p "$PROMPT" '{prompt: $p}')" \
| jq -r '.response'User types prompt
↓
UserPromptSubmit hook fires
↓
qwen3 classifies into tier (QWEN|DEEPSEEK_FLASH|DEEPSEEK_PRO|KIMI|CODEX|CLAUDE)
↓
Hook injects additionalContext: "Run: <delegation-command>"
↓
Claude reads context, spawns delegation script, returns output
↓
User sees response from the delegated model| 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 |
# Required env vars (set in ~/.zshrc)
export DEEPSEEK_API_KEY="sk-..." # For deepseek delegator
export OPENAI_API_KEY="sk-..." # For codex CLI
# Ollama must be running locally for qwen3 classification + delegation© alinaqi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/external-model-delegation of alinaqi/maggy.
Open the folder on GitHubat commit 72a456e
External Model Delegation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| External Model Delegation this skillalinaqi/maggy | 707 | — | ~785 | Automated safety check: Pass | MIT | |
| LLM Pipeline Profiler AnalysisBBuf/AI-Infra-Auto-Driven-SKILLS | 938 | — | ~3.9k | Automated safety check: Pass | None | |
| Subagentethanhq/cc-fleet | 216 | — | ~4.9k | Automated safety check: Pass | Apache-2.0 | |
| Subagentethanhq/cc-fleet | 216 | — | ~4.3k | Automated safety check: Pass | Apache-2.0 | |
| LLM Council on Fireworks AIdair-ai/dair-academy-plugins | 614 | — | ~5k | Automated safety check: Notes | MIT | |
| Claude Maintain ModelsKiln-AI/Kiln | 5.2k | — | ~15k | Automated safety check: Notes | Custom licence |
BBuf/AI-Infra-Auto-Driven-SKILLS
Breaks LLM torch profiler traces down by forward pass, layer and kernel, with timing tables and Perfetto time ranges for the layers you want to inspect.
ethanhq/cc-fleet
Fan out a one-shot or flat parallel batch of cc-fleet PROVIDER subagents (headless cc-fleet subagent) that return a result — DeepSeek / GLM / Kimi / Qwen / MiniMax, or a Codex/Claude subscription.
ethanhq/cc-fleet
Run a one-shot or flat parallel batch of provider LLM subagents (headless cc-fleet subagent) that return a result.
dair-ai/dair-academy-plugins
Has several open-weight models answer a question, rank each other's anonymized answers, then lets a chairman model write the final response through Fireworks AI.
Kiln-AI/Kiln
Add new AI models to Kiln's mlmodellist.py and produce a Discord announcement.
heypinchy/pinchy
A skill your agent uses when a new Ollama Cloud model is announced or available (e.g.
alinaqi/maggy
AI Engine Optimization - semantic triples, page templates, content clusters for AI citations
alinaqi/maggy
Claude Code Agent Teams - default team-based development with strict TDD pipeline enforcement
alinaqi/maggy
Latest AI models reference - Claude, OpenAI, Gemini, Eleven Labs, Replicate
alinaqi/maggy
Android Java development with MVVM, ViewBinding, and Espresso testing
alinaqi/maggy
Android Kotlin development with Coroutines, Jetpack Compose, Hilt, and MockK testing
alinaqi/maggy
AI-driven testing agent that auto-discovers, generates, executes, evaluates, and fixes tests for any project type
Categories
UserPromptSubmit hook pattern that classifies prompts into six cost tiers and delegates to external model CLIs. External Model Delegation is an agent skill from alinaqi/maggy.
External Model Delegation fits situations like: development work in your project.
Run `npx skills add alinaqi/maggy --skill external-model-delegation -a claude-code`. Or copy the skill folder (skills/external-model-delegation in alinaqi/maggy) into .claude/skills/external-model-delegation in your project. Claude Code loads it when a task matches its description.
Run `npx skills add alinaqi/maggy --skill external-model-delegation -a codex`. Or copy the skill folder (skills/external-model-delegation in alinaqi/maggy) into .agents/skills/external-model-delegation in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alinaqi/maggy --skill external-model-delegation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/external-model-delegation, .gemini/skills/external-model-delegation, .github/skills/external-model-delegation and .opencode/skills/external-model-delegation in your project.
Going by SKILL.md and its folder, External Model Delegation needs the command-line tools its instructions call (jq, codex, curl and claude) and credentials named API_KEY, EXTERNAL_API_KEY, DEEPSEEK_API_KEY and OPENAI_API_KEY. Our summary lists: A credential in API_KEY; A credential in EXTERNAL_API_KEY.
SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
External Model Delegation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 785 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with External Model Delegation: LLM Pipeline Profiler Analysis (BBuf/AI-Infra-Auto-Driven-SKILLS, 938 stars), Subagent (ethanhq/cc-fleet, 216 stars), Subagent (ethanhq/cc-fleet, 216 stars) and LLM Council on Fireworks AI (dair-ai/dair-academy-plugins, 614 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
alinaqi (a GitHub user) maintains it in alinaqi/maggy, which has 707 GitHub stars. The repository holds 71 skills in this directory. The repository was last updated on September 24, 2026.
Source: alinaqi/maggy on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.