Model Hierarchy
zscole/model-hierarchy-skill
Cost-optimize AI agent operations by routing tasks to appropriate models based on complexity.
Quality-first per-stage model routing AND a pre-flight cost gate for Claude Code dynamic workflows.
$ npx skills add davepoon/buildwithclaude --skill ultracost -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install davepoon/buildwithclaude ultracost --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/davepoon/buildwithclaude.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ultracost/skills/ultracost .claude/skills/ultracost && 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 "ultracost" agent skill from https://github.com/davepoon/buildwithclaude/tree/main/plugins/ultracost/skills/ultracost into .claude/skills/ultracost/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ultracost", 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/davepoon/buildwithclaude/tree/main/plugins/ultracost/skills/ultracostType 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 davepoon/buildwithclaude --skill ultracost -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install davepoon/buildwithclaude ultracost --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davepoon/buildwithclaude.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/ultracost/skills/ultracost .agents/skills/ultracost && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ultracost" agent skill from https://github.com/davepoon/buildwithclaude/tree/main/plugins/ultracost/skills/ultracost into .agents/skills/ultracost/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ultracost", 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 davepoon/buildwithclaude --skill ultracost -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install davepoon/buildwithclaude ultracost --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davepoon/buildwithclaude.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/ultracost/skills/ultracost .cursor/skills/ultracost && 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 "ultracost" agent skill from https://github.com/davepoon/buildwithclaude/tree/main/plugins/ultracost/skills/ultracost into .cursor/skills/ultracost/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ultracost", 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/davepoon/buildwithclaude.git --path plugins/ultracost/skills/ultracost--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 davepoon/buildwithclaude --skill ultracost -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install davepoon/buildwithclaude ultracost --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davepoon/buildwithclaude.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/ultracost/skills/ultracost .gemini/skills/ultracost && 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 "ultracost" agent skill from https://github.com/davepoon/buildwithclaude/tree/main/plugins/ultracost/skills/ultracost into .gemini/skills/ultracost/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ultracost", 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 davepoon/buildwithclaude ultracostInstalls 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 davepoon/buildwithclaude --skill ultracost -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/davepoon/buildwithclaude.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/ultracost/skills/ultracost .github/skills/ultracost && 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 "ultracost" agent skill from https://github.com/davepoon/buildwithclaude/tree/main/plugins/ultracost/skills/ultracost into .github/skills/ultracost/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ultracost", 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 davepoon/buildwithclaude --skill ultracost -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install davepoon/buildwithclaude ultracost --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davepoon/buildwithclaude.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/ultracost/skills/ultracost .opencode/skills/ultracost && 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 "ultracost" agent skill from https://github.com/davepoon/buildwithclaude/tree/main/plugins/ultracost/skills/ultracost into .opencode/skills/ultracost/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ultracost", 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.
ultracostQuality-first per-stage model routing AND a pre-flight cost gate for Claude Code dynamic workflows.
Ultracost is an agent skill from davepoon/buildwithclaude. Quality-first per-stage model routing AND a pre-flight cost gate for Claude Code dynamic workflows. Use when authoring or running ultracode / dynamic-workflow scripts, spawning subagents, or writing agent() stages — pin the right model and effort on every stage, then estimate cost and confirm with the user before launching. Verify scripts with /ultracost:check.
Its SKILL.md is about 1.2k 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 AI & LLM Engineering, covering Model routing and gateways and Subagents. The repository describes itself as: A single hub to find Claude Skills, Agents, Commands, Hooks, Plugins, and Marketplace collections to extend Claude Code, Claude Desktop, Agent SDK and OpenClaw. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 616deb5. 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:
nodenpxFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Ultracost loads about 1.2k tokens when it runs. Until then it costs about 93 tokens; SKILL.md has 577 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 davepoon/buildwithclaude at commit 616deb5, republished under its MIT licence (© davepoon). 577 words, ~1,224 tokens.
.claude/skills/ultracost/SKILL.md (or your agent's skills folder).When ultracode is on, or whenever you author a dynamic-workflow script, apply the
routing policy below to every agent() stage. The block is compiled from
policy.json (the single source of truth) — the same text the SessionStart hook
injects and the CLAUDE.md block carries.
<!-- ultracost:start -->
Route every subagent and every dynamic-workflow stage explicitly. Never let a
stage inherit the session model by default. Never use haiku.
opus @ xhigh — Coding & reasoning: anything requiring judgment or a decision: writing/editing/refactoring/deleting code, debugging, fixing errors, designing APIs/schemas/data models/architecture, non-trivial tests, code review, security/performance analysis, cross-file reasoning, adversarial review, planning, synthesis, final consolidationsonnet @ high — Pre-planned mechanical & support: the how is already decided and the stage just applies it: mechanically applying a specified edit across many files, search/grep/glob, file discovery, collecting/listing/extracting, reformatting, mechanical renames, running tests and reporting results, routine git operations, gathering or summarizing context for an opus stage to consumeDecision rule: if a stage must DECIDE how to write or change code, use the
opus tier. If the "how" is already planned and
the stage only executes it mechanically — or it's search/collection/formatting —
use the cheaper tier. When in doubt, use opus.
haiku, ever.model param, e.g.
agent(task, { model: 'sonnet' }). Do not follow any built-in guidance to
omit the per-agent model override.opus: orchestrator, planner, final-synthesis, consolidation.Also set effort per stage, choosing the lowest level that fits the work, bounded
by the model (sonnet up to high, opus up to xhigh):
low — trivial deterministic work with no real judgment: listing or globbing files, simple field extraction, formatting, mechanical renames following a given patternmedium — light judgment on a small surface: a single straightforward edit, summarizing one source, classifying short inputshigh — standard coding and analysis: most refactors, per-file review, writing non-trivial tests, multi-step but well-scoped workxhigh — hard reasoning: cross-file architecture and design, adversarial review, planning, and final synthesis/consolidatione.g. agent(task, { model: 'sonnet', effort: 'low' }) for a mechanical scan.
Before launching a dynamic workflow:
model and effort set./ultracost:check <file> to verify
pins, then the cost estimate — run ultracost estimate <file>, or under the plugin
node "$CLAUDE_PLUGIN_ROOT/bin/cli.js" estimate <file> (no global ultracost bin
is required). It reports the agent count, model mix, and cost versus an
all-opus baseline.PreToolUse cost gate also stops the
launch automatically with these numbers, so this holds even if the steps are skipped.Verify any script with /ultracost:check (the plugin command) or `ultracost check
<script>` on the CLI — it flags stages missing a model pin, a pin that mismatches the
work the prompt describes, and effort over the model's cap.
<!-- ultracost:end -->
## Full plugin
This directory ships the routing-policy **skill** (the guidance above, self-contained).
The complete ultracost plugin — the Workflow Guard, the deterministic `PreToolUse` cost
gate, the closed-loop `usage`/`reconcile`/`calibrate`/`ledger` commands, and the
`/ultracost:*` slash commands — installs from the canonical marketplace:
```text
/plugin marketplace add danielkremen818/ultracost
/plugin install ultracost@ultracost
```
Or via npm for CI/scripting: `npx ultracost init`. Source, docs, and a live end-to-end
showcase: https://github.com/danielkremen818/ultracost
© davepoon, 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 plugins/ultracost/skills/ultracost of davepoon/buildwithclaude.
Open the folder on GitHubat commit 616deb5
Ultracost 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 |
|---|---|---|---|---|---|---|
| Ultracost this skilldavepoon/buildwithclaude | 3.6k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Model Hierarchyzscole/model-hierarchy-skill | 346 | — | ~2.3k | Automated safety check: Pass | MIT | |
| Antigravityyuting0624/antigravity-for-claude-code | 377 | — | ~9.1k | Automated safety check: Pass | MIT | |
| Fable Foremanolsenbrands/fable-foreman | 142 | — | ~5.2k | Automated safety check: Pass | MIT | |
| Claudish UsageMadAppGang/claudish | 1k | — | ~9k | Automated safety check: Pass | None | |
| Deliberationantonbabenko/deliberation | 170 | — | ~3.9k | Automated safety check: Pass | MIT |
zscole/model-hierarchy-skill
Cost-optimize AI agent operations by routing tasks to appropriate models based on complexity.
yuting0624/antigravity-for-claude-code
Run the Antigravity CLI (Gemini) as a collaborating AI inside Claude Code, with intelligent model routing across the software development lifecycle.
olsenbrands/fable-foreman
Turns the lead model into a foreman that plans, routes and verifies while cheaper Claude, Codex or Grok workers do the typing, using a per-machine routing card.
MadAppGang/claudish
CRITICAL - Guide for using Claudish CLI ONLY through sub-agents to run Claude Code with any AI model (OpenRouter, Gemini, OpenAI, local models).
antonbabenko/deliberation
When and how to delegate to GPT, Gemini, Grok, and OpenRouter expert subagents via the deliberation MCP tools.
databricks/unity-gateway
Enable or disable Unity Gateway subagent model routing for the current smart-routed Claude or Codex session, along with Smart Router Orchestrator when opted in.
davepoon/buildwithclaude
Build, update, and apply iOS design specifications using Apple Human Interface Guidelines (HIG) source data.
davepoon/buildwithclaude
Download YouTube videos with customizable quality and format options.
davepoon/buildwithclaude
A skill your agent uses when the user asks to "analyze video", "watch this video", "what happens in this video", "describe this clip", "review this footage", "classify these videos", "compare…
davepoon/buildwithclaude
Discover Atlas Cloud image and video models, inspect their live schemas, and submit one confirmed media generation request with bounded GET polling.
davepoon/buildwithclaude
面向没有编程经验的用户,把想法做成可试用的浏览器插件,并完成检查、商店材料、审核提交和上线验证;也用于继续已有插件、排错和发布新版。用户说“帮我做个插件”“把插件上架”“继续我的插件”时使用。普通网站开发、仅查询插件知识不触发。
davepoon/buildwithclaude
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives.
Categories
Quality-first per-stage model routing AND a pre-flight cost gate for Claude Code dynamic workflows. Ultracost is an agent skill from davepoon/buildwithclaude. Quality-first per-stage model routing AND a pre-flight cost gate for Claude Code dynamic workflows.
Ultracost fits situations like: running ultracode / dynamic-workflow scripts; spawning subagents; writing agent() stages — pin the right model and effort on every stage; then estimate cost and confirm with the user before launching.
Run `npx skills add davepoon/buildwithclaude --skill ultracost -a claude-code`. Or copy the skill folder (plugins/ultracost/skills/ultracost in davepoon/buildwithclaude) into .claude/skills/ultracost in your project. Claude Code loads it when a task matches its description.
Run `npx skills add davepoon/buildwithclaude --skill ultracost -a codex`. Or copy the skill folder (plugins/ultracost/skills/ultracost in davepoon/buildwithclaude) into .agents/skills/ultracost 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 davepoon/buildwithclaude --skill ultracost -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ultracost, .gemini/skills/ultracost, .github/skills/ultracost and .opencode/skills/ultracost in your project.
Going by SKILL.md and its folder, Ultracost needs the command-line tools its instructions call (node and npx). Our summary lists: Node.js.
SKILL.md names 1 domain. As links in the text: github.com. 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.
Ultracost is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.9k 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 Ultracost: Model Hierarchy (zscole/model-hierarchy-skill, 346 stars), Antigravity (yuting0624/antigravity-for-claude-code, 377 stars), Fable Foreman (olsenbrands/fable-foreman, 142 stars) and Claudish Usage (MadAppGang/claudish, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
davepoon (a GitHub user) maintains it in davepoon/buildwithclaude, which has 3,605 GitHub stars. The repository holds 246 skills in this directory. The repository was last updated on October 9, 2026.
Source: davepoon/buildwithclaude on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.