agentleFS
HamzaYMHamzaYM/reliable-ai-skills/skills/cost-and-safety-guardrails/budget-aware-model-allocation/SKILL.md

budget-aware-model-allocation

Skill0 starsChanged 5 months agoMITView on GitHub

Use when you're working with more than one model or provider with separate rate-limit or token budgets, and one of them is running low. Decide whether to proceed lean, defer non-urgent work, or shift heavy work to whichever provider has headroom, instead of blowing through a limit on autopilot.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't trust a stale signal as current: If a budget snapshot is flagged as possibly out of date, re-check it or proceed conservatively …

    line 22
  2. Distinctive:

    This is judgment, not a hard gate: Never hard-block work because a budget looks low.

    line 23

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Budget-aware model allocation

If you have access to more than one model or vendor, each with its own separate rate-limit or spend budget, treat that as a resource-allocation problem, not just a cost line item. The failure mode this guards against: an offhand, unscoped request (a wide fan-out, a big batch job, ingesting a large corpus) detonates a large fraction of a budget window that was already running low, at the worst possible moment.

When a budget signal says a window is getting low

  1. Be deliberate before large spends. If the next action is inherently large (a wide parallel fan-out, ingesting a big corpus, a long agentic loop), say so explicitly before doing it: state the intended scope, either in your own reasoning or to whoever you're working with. If no one is available to check with, default to the smallest scope that actually accomplishes the task rather than blocking entirely.
  2. Shift heavy work to whichever provider has headroom. If one provider is the constraint and another has budget to spare, route the heavy or parallel execution and review work there. You orchestrate; the other provider spends its own budget. This is the same idea as the multi-model-adversarial-review skill: a second vendor gives you diversity of opinion. It also gives you separate capacity.
  3. Trim before you cut scope. Lower the effort/reasoning setting, batch requests, and avoid re-reading large context you've already processed, before you resort to skipping work outright.

When budgets are healthy

Work normally. Don't pre-emptively ration based on a hypothetical future shortage: that just produces worse answers for no real benefit.

Rules

  • Don't trust a stale signal as current. If a budget snapshot is flagged as possibly out of date, re-check it or proceed conservatively rather than trusting a number that might be minutes or hours old.
  • This is judgment, not a hard gate. Never hard-block work because a budget looks low; degrade gracefully instead (smaller scope, lower effort, defer to the other provider).
  • If every available provider is constrained, proceed with the smallest scoped action and say so. Don't stall waiting for headroom that may not come.

Evidence: net-new for this library, not part of the original July 2 A/B; tested only in the July 2026 effort lattice, on a single task with 4 must-hits (results/matrix/MATRIX.md; evidence note updated 2026-07-12). Cold already matched loaded in 7 of 15 model/effort cells; the other 8 showed loaded gain from 3/4 to 4/4 must-hits. Single-task scope: directional only, not pre-registered as confirmatory for this skill.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.