miosa-osa/canopy/budget
Claude Code and agent skill by miosa-osa/canopy
- community
Checking that the SKILL.md file is still in the repository.
3-tier budget enforcement for AI agent workspaces. Visibility dashboards (always on), soft alerts at 80% threshold, hard ceilings at 100% that auto-pause agents. Tracks per-agent, per-task, and per-project costs in both tokens and dollars. Triggers on: "budget", "cost", "spending", "token usage", "billing"
Install
npx vskill@latest install miosa-osa/canopy/budgetSKILL.md
The same SKILL.md was published earlier as miosa-osa/canopy/budget.
/budget
3-tier budget enforcement — visibility, alerts, hard ceilings.
Purpose
Prevent runaway AI costs in multi-agent workspaces. Every token consumed is tracked at three levels: per-agent, per-task, and per-project. Three enforcement tiers ensure costs never surprise you: Tier 1 (visibility) shows real-time dashboards, Tier 2 (soft alerts) warns at 80%, Tier 3 (hard ceilings) auto-pauses agents at 100%.
Usage
Arguments
| Subcommand | Description | |
|---|---|---|
| (default) | Show budget dashboard | |
set | Set budget limits | |
burn-rate | Show token consumption velocity | |
report | Export detailed cost report | |
reset | Reset counters for new period |
| Flag | Type | Default | Description | |
|---|---|---|---|---|
--agent | string | all | Filter to specific agent | |
--project | int | — | Set project-level token budget | |
--dollars | float | — | Set dollar budget (converted via model pricing) | |
--format | enum | terminal | terminal, csv, json, markdown | |
--period | string | current | Billing period (YYYY-MM or date range) | |
--confirm | flag | false | Required for destructive operations (reset) | |
--alert-threshold | float | 0.8 | Tier 2 soft alert threshold (0.0–1.0) | |
--hard-ceiling | float | 1.0 | Tier 3 hard ceiling (0.0–1.0+, >1.0 allows overflow) |
Workflow
Tracking
- Intercept — Every LLM call from any agent passes through the budget tracker. Record: agent ID, task ID, model, input tokens, output tokens, timestamp.
- Price — Convert tokens to dollars using model-specific pricing: Claude Opus ($15/1M in, $75/1M out), Sonnet ($3/$15), Haiku ($0.25/$1.25), Codex (per pricing), Gemini (per pricing).
- Aggregate — Maintain running totals at all three levels: agent, task, project.
- Store — Append to budget log (append-only file, never edited).
Enforcement Tiers
- Tier 1 — Visibility (always on): Budget data visible in
/board,/heartbeat, and dedicated dashboard. No action taken. - Tier 2 — Soft Alerts (80% default): When any level crosses the threshold, emit warning to orchestrator inbox. Agent continues working. Logged as
budget_warningevent. - Tier 3 — Hard Ceiling (100%): When any level hits ceiling, auto-pause the agent. Send
budget_exceededmessage to orchestrator. Agent cannot resume until budget is increased or reset.
Output
Dashboard
Dependencies
- Agent registry (for mapping agent IDs)
- Task store (for mapping task IDs)
- Model pricing configuration
/heartbeat— Agent status for pause/resume/inbox— Alert delivery- Budget log file (append-only)
Security
- Security scanPassed, 93 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
- SKILL.md in the repositoryCheckinglibrary/skills/governance/budget/SKILL.md
Popularity
- Repository stars
- 229
- Repository forks
- 54
- 7-day trend score
- 27
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
- 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
[](https://verified-skill.com/skills/miosa-osa/canopy/budget)