budget-optimize

budget-optimize is a skill for Claude Code from tonone-ai/tonone. It costs 45 tokens per session (400 once invoked), scanned A, original, MIT.

A guide for reducing the cost of AI model use by considering model choice, shorter prompts, saved responses, and grouped processing.

In plain words
What is it for?
Use it to compare cost-saving options, estimate their savings and implementation effort, and assess quality, latency, and reuse constraints.
Why use it?
It helps lower spending while checking that cheaper approaches do not harm answer quality or add unacceptable delay.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Part of the tonone plugin — 41 skills, 140 agents, 1 MCP server, 8 plugins shipped together

Good fit Use it to compare cost-saving options, estimate their savings and implementation effort, and assess quality, latency, and reuse constraints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonone-ai/tonone/budget-optimize
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tonone-ai/tonone --skill budget-optimize
Clone the repo
git clone --depth 1 https://github.com/tonone-ai/tonone

Made for: Claude Code.

Or install tonone, the plugin that ships this one along with the rest of its 41 skills, 140 agents, 1 MCP server, 8 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for budget-optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonone-ai/tonone/budget-optimize/github.svg)](https://agentmods.dev/skills/tonone-ai/tonone/budget-optimize)
Your own site
<a href="https://agentmods.dev/skills/tonone-ai/tonone/budget-optimize"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/budget-optimize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for budget-optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonone-ai/tonone/budget-optimize"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/budget-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 400 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.00400
Opus 5.5 $0.00018 $0.00160
Sonnet 5.5 $0.00009 $0.00080
Haiku 4.5 $0.00005 $0.00040

Measured 2mo ago against content hash 247cbc227cc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

budget-optimize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/budget-optimize/SKILL.md · 44 lines

What it actually says

Budget Optimize

You are Budget — the AI Cost Engineer on the AI Operations Team.

Steps

Step 0: Confirm Current Baseline

Establish current spend, model mix, and latency/quality requirements that any optimization must preserve.

Step 1: Design the Levers

For the workload in scope, evaluate model tiering (route simple calls to cheaper models), prompt/context compression, response caching, and batch inference where latency allows.

Step 2: Size the Tradeoffs

For each lever, estimate the cost reduction against the quality or latency cost. Reject levers that trade meaningful quality for marginal savings.

Key Rules

  • Follow the output format defined in docs/output-kit.md
  • Never propose a cheaper model for a task without checking it meets the existing quality bar
  • Caching is only safe where responses are deterministic enough to reuse — flag anywhere that assumption is shaky
  • Batch inference only where the product doesn't need synchronous responses

Output Format

A prioritized list of optimization levers, each with estimated $ savings, implementation effort, and quality/latency risk.

Delivery

If output exceeds the 40-line CLI budget, invoke /atlas-report with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 44 lines · 45 tokens per session scan A 247cbc227cc1

Subscribe to this mod's changes

budget-optimize is a skill published in the GitHub repository tonone-ai/tonone (84 stars, last pushed 3d ago), licensed MIT. It adds 45 tokens to every session and 400 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-20.

Related

budget-optimize compared with skills from other repositories

budget-optimize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
budget-optimizetonone-ai/tononeSkill843d agoMITA45Claude Code
fs-creative-voltagenexu-io/open-designSkill110ktodayApache-2.0A49Claude Code, Codex
ml-strategyHKUDS/Vibe-TradingSkill39kyesterdayMITA30Claude Code, Codex
technical-basicHKUDS/Vibe-TradingSkill39kyesterdayMITA48Claude Code, Codex
ai-readinessanthropics/financial-servicesSkill42k18d agoApache-2.0A112Claude Code
merger-modelanthropics/financial-servicesSkill42k18d agoApache-2.0A87Claude Code
tinker-training-costsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A55Claude Code, Codex