samotech/skills-tree/budget-management

Claude Code and agent skill by samotech/skills-tree

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Track and enforce declared resource budgets across an agent workflow, including token, time, tool, or monetary limits.

Install

npx vskill@latest install samotech/skills-tree/budget-management

SKILL.md

The same SKILL.md was published earlier as samotech/skills-tree/budget-management.

[Image: Dependency Status]

Budget Management

Category: orchestration Skill Level: advanced Stability: stable Added: 2025-03

Description

Track and enforce declared resource budgets across an agent workflow, including token, time, tool, or monetary limits. The orchestration step is contract-first: validate state and inputs before acting, and verify the resulting state transition instead of trusting acknowledgements.

Inputs / Outputs
DirectionFieldTypeContract
InputbudgetobjectDeclared ceilings per resource (tokens, time, calls, currency)
Inputledgerlist of objectConsumption records per step with their costs
OutputremainingobjectRemaining budget per resource against the ceilings
Outputactionenumcontinue, degrade, or halt, with the binding constraint named
Procedure
  1. Declare the ceilings per resource before the workflow starts; estimates are separate from ceilings.
  2. Record consumption per step with its cost and the step identifier.
  3. Compare the running ledger against the ceilings before each expensive step.
  4. Enforce hard ceilings where the runtime supports them; surface estimates as estimates.
  5. Degrade or halt when a ceiling is reached, naming the binding constraint.
  6. Report final consumption with the ledger so the budget decision is auditable.
Example
python
budget = {'tokens': 10000, 'tool_calls': 20}
ledger = [{'step': 'plan', 'tokens': 3200, 'calls': 2}, {'step': 'search', 'tokens': 4100, 'calls': 9}]
used = {r: sum(e.get('tokens' if r == 'tokens' else 'calls', 0) for e in ledger) for r in budget}
remaining = {r: budget[r] - used[r] for r in budget}
action = 'continue' if all(v > 2000 for v in remaining.values()) else 'degrade'
assert used['tokens'] == 7300 and remaining['tool_calls'] == 9 and action == 'continue'
print({'remaining': remaining, 'action': action})
Related Skills

Failure Modes

  • Estimates treated as ceilings, so consumption silently overshoots.
  • No per-step ledger, making the budget decision unauditable.
  • Continuing past a hard ceiling because an estimate looked safe.
  • Halting without naming the binding constraint or the recovery path.

Changelog

  • v2 (2026-11): Structural modernization; added the input/output contract table, a skill-specific execution procedure, a deterministic example, and corpus-verified related links (replaced the unresolvable cross-category related references).
  • v1 (2025-03): Initial entry.

Evidence

  • https://agentskills.io/specification

Evidence status: implementation guidance only; runtime behavior must be checked against the executing framework's documentation; no benchmark claim is made without reproducible evidence.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
5
Repository forks
3
7-day trend score
5

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/samotech/skills-tree/budget-management/badge)](https://verified-skill.com/skills/samotech/skills-tree/budget-management)

Something wrong with this skill or its page? Tell us.