Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

budget

БесплатноБез исполняемых скриптовНе проверен

Context and cost tracking guard that registers a baseline estimate at preflight time and checks actual consumption against it at defined checkpoints during…

aradmanamnaoonот aradmanamnaoon193 установки в других каталогах

Об этом скилле

Budget

Preflight estimates the cost. Budget enforces it. An estimate without enforcement is a guess.

When this runs

Two trigger points:

  1. Registration - when preflight is confirmed, register the estimate as the baseline. The baseline is: tokens (min-max), time (min-max), money (min-max), and the estimate's confidence level.

  2. Checkpoints - at each of the following moments during execution, compare actual against baseline:

    • After every major step in the plan
    • Before any operation the agent expects to cost more than 10 percent of the baseline
    • When the user asks "how are we doing"
    • On any error that might indicate wasted work

Procedure

1. Register the baseline

When preflight is confirmed, store the estimate. Record:

  • Token range from the preflight report
  • Time range from the preflight report
  • Money range from the preflight report
  • Confidence level (high / medium / low)

2. Check at each checkpoint

Compare actual consumption against the baseline. Compute:

  • Percentage of upper bound consumed
  • Trajectory: on pace, faster, or slower than expected
  • Confidence drift: is the original confidence level still valid?

3. Warn at 75 percent

When consumption reaches 75 percent of the upper bound, produce this report. Do not stop - just warn.

Output exactly this template wrapped in a markdown code block. Make absolutely sure the closing fence is on its own line:

## Budget Warning

### Baseline (from preflight)
- Tokens: [min]-[max]
- Time: [min]-[max] minutes
- Cost: $[min]-$[max]

### Current consumption
- Tokens used: [actual]
- Time elapsed: [actual]
- Cost accrued: [actual]
- Percentage of upper bound: [X]%

### Trajectory
- Pace: [on track / faster / slower] than expected
- Projected final: [min]-[max]

### Recommendation
[One of: continue, checkpoint with user, reduce scope]

### Awaiting confirmation
Reply "continue" or "pause".

4. Stop at 100 percent

When consumption reaches 100 percent of the upper bound, stop and escalate using hold. The budget is exhausted. Do not continue without explicit user approval for additional budget.

5. Update the baseline if user approves more

If the user approves additional budget, update the baseline to reflect the new range and continue.

Rules for this skill

  • Only check at defined checkpoints. Do not check after every action - that creates noise.
  • Always report against the upper bound, not the lower. Budget safety uses worst-case.
  • If confidence in the original estimate was low, check more frequently.
  • The 75 percent warning is a warning, not a stop. The 100 percent threshold is the stop.
  • If the user approves more budget, reset the baseline - do not keep accumulating against the original.

Common mistakes

  • Warning at every checkpoint. Warnings are only for the 75 percent threshold.
  • Stopping at 75 percent. That is a warning, not a stop.
  • Comparing against the lower bound instead of the upper. Budget safety uses the upper bound.
  • Continuing past 100 percent without user approval. The budget is a contract.
  • Failing to update the baseline after user approval. Reset, do not accumulate.
Полный SKILL.md на ClawHub

Установить budget в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл budget?

Context and cost tracking guard that registers a baseline estimate at preflight time and checks actual consumption against it at defined checkpoints during execution. Warns at 75 percent of estimate, stops at 100 percent. Prevents silent context window blowout and runaway token spend where the real cost of a long-running agent session is only discovered after the fact. Complements preflight's one-time estimate by making it enforceable.

Как установить скилл budget?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл budget запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить budget с