/open-skills:budget-checkfrom open-skills
Pre-wave usage gate that checks active usage against a threshold (default 95%) via ccsusage before launching expensive multi-agent waves. Returns go/no-go/unknown and fails closed.
Ships in open-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A pre-wave usage gate. Launching a multi-agent wave is the most expensive thing an agent does — N concurrent subagents, each burning tokens. /budget-check answers one question before you spend: is the current usage window close enough to its ceiling that starting a wave is reckless? It returns go, no-go, or unknown, and it fails closed — with no usage data it returns unknown, never a convenient "go".
It is deliberately small: a concrete wrapper around the public ccusage reader, not a judgment engine. It does not add a global rule or amend your operating directives — it is a skill you call, so the gate lives at the decision point, not as standing policy.
Structured execution spec:
protocol.yon. Read it for the canonical rules and step sequence; this file is explanation. The two must stay in sync — if you edit one, update the other and refresh the@STAMPdate.
The skill ships references/tools/budget-check.mjs inside its own folder. Resolve the installed skill directory and run the bundled tool, which invokes an already-installed ccusage blocks --json. Missing tools or failed launches return unknown; never acquire a package to answer this read. Supplied numeric flags require values, while omitted flags retain their defaults:
node <skill-dir>/references/tools/budget-check.mjs # go/no-go vs 95% of your historical-peak block
node <skill-dir>/references/tools/budget-check.mjs --threshold 90 # custom threshold (percent)
node <skill-dir>/references/tools/budget-check.mjs --token-limit 200000000 # explicit ceiling instead of the auto peak
node <skill-dir>/references/tools/budget-check.mjs --json # machine-readable verdict
--token-limit <N> if you pass one, else the largest historical (non-active) block's total tokens — ccusage's own max notion, i.e. "your usual peak window." Without --token-limit, the gate measures against your own historical peak — a relative signal ("am I near my personal worst window"), not your real plan budget. For a true budget gate, pass --token-limit <N> with your plan's actual token ceiling.go when the active block is under the threshold, no-go at or over it, unknown when there is no usage data, no active block, or no ceiling to measure against.0 go · 1 no-go · 2 unknown — so a dispatch script can gate on it directly.secondsUntilWindowClears and a min(3600, …) poll interval, so you know how long until the window resets.prime-sweep, an orchestrated run), call /budget-check.--token-limit <N> with your plan's real token budget to get a meaningful gate.This is a runtime tool — it reads your local usage logs, so it has nothing to measure in CI. The value is at the live pre-wave decision point, never in a pipeline.
/ask-gate — that triages a handler-facing question; budget-check gates a spend./orchestrate-mode or /multi-agent-mode — those run the wave; budget-check only decides whether it should start.Human output. This skill's handler-facing output obeys the human-output contract (
human-output/SKILL.md).
Next skills. On completion, run the Next Skills protocol: surface the front-matter recommendations for the caller to pick. Offer only — never auto-invoke.
Self-improvement. On completion, run the Self-Improvement Protocol: apply its signal taxonomy and threshold to this run; surface any surviving proposal for handler approval. Conservative — silent otherwise. Never auto-apply.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub allemaar/open-skills --plugin open-skills93 skills in this plugin
/agent-mailboxTwo or more agents — any harness, any vendor — collaborate through any shared folder: share a folder, load the skill, point at it.
/agent-outputCompact agent-to-agent communication contract for worker reports, handoffs, status, blockers, and review findings. Trigger phrases: "/agent-output", "brief the worker", "make agent reports terse". Not a transport; use /agent-mailbox for delivery.
/ask-gateThe Ask-Gate Protocol (AGP). Before surfacing an AskUserQuestion, triage whether the question is genuinely the handler's call (anti-nag); ask routine questions directly after a quality checklist, but escalate high-stakes / branching / irreversible ones through /insight-critique then /insight-assess first. Trigger via /ask-gate, or automatically before any handler-facing question. Not /caller-options (routes a skill's venue/mode) or /next-skills (recommends successors) — AGP governs the question itself.
/ask-meConstructively interview someone about an idea, task, project or decision so useful work can start. Use when explicitly asked to be interviewed, including “ask me”; ordinary task requests do not start this interview./audit-code-commentsInventory the code comments in a repository, classify each one against the code it sits beside (tautology, stale, excuse, decision, keep, uncertain), then report, prune or strictly migrate them: delete noise, turn excuse comments into issue drafts, move decisions into ADRs, and optionally lock the result with a per-file comment ratchet. Edits go through a real parser with a token guard. Scales from a small module to a large repo with a pilot batch, path stages and budget gates. Trigger on /audit-code-comments, "audit the comments in this repo", "clean up code comments", "move comments to ADRs", "turn TODO comments into issues", "add a comment ratchet". Not for reviewing a diff for bugs (use /cold-review), not for prose in docs (use /prose-audit), not for duplicated constants (use /audit-coupled-constant).
/audit-coupled-constantAudit every site of a constant whose value is duplicated across multiple call sites (retry budgets, timeouts, page sizes, magic numbers, feature flags). The author-maintained `SEE ALSO` trail is documentation, not enforcement — one missed site means the trail lies. Trigger on /audit-coupled-constant, "audit budget consistency", "find all sites of this value", "check coupled invariant", "before raising this constant", or after any edit to a constant that has SEE ALSO cross-references in its comments. Pairs naturally before /cold-review on a "raise the budget" PR. Not for extract-constant refactors that consolidate scattered values into a single named import — use /improve-codebase-architecture. Not for constants enforced by the type system (TypeScript `as const` literal imported everywhere) where the compiler is the audit — skip.Other plugins' skills for the same job