/ratchet-workflows:usage-aware-dispatchfrom ratchet-workflows
Use when dispatching agent work across several subscription accounts or harnesses, choosing which account or model runs a task, or handling a worker that hit a usage limit. Covers accounts as config, a spending order and floors, quick tasks on a small model, reading remaining usage before dispatch, and waiting for a reset instead of failing.
Ships in ratchet-workflows. 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.
Read every applicable AGENTS.md first. Repository-local policy overrides these defaults.
A dispatcher that spreads work over several subscriptions decides, for each task, which account pays for it. Subscriptions have no bill per call; what runs out is the usage window. The goal is to keep work moving without draining an account that something else needs, and without failing a task only because quota ran out for a few hours.
Who owns a task, and how to brief its worker, is in agent-coordination. This skill covers only
which account and model run it.
List each account as data, not as names in prose or code:
accounts:
- id: codex-a
harness: codex
machines: [build-1]
floor: 15 # percent remaining at which it takes no new work
order: 1 # place in the spending order for large work
- id: claude-b
harness: claude
machines: [build-1, build-2]
floor: 20
order: 2
quick_model: { account: claude-b, model: haiku }
default_wait_minutes: 60
Read remaining usage before every dispatch, not once a day. Another session may have spent the account since the last reading. Where each harness records it is in reading usage; read that before writing an adapter.
The task waits; it has not failed.
A caller can hold back one account, or part of one, for its own work. For example, a supervisor keeps the account it merges with.
evals skill, and route each kind
to the cheapest model whose cases pass.What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/agent-coordinationUse when delegating to subagents, splitting work across workers, receiving a message or request from another agent, or when two sessions may touch the same repository. Keep one owner per unit of work, brief workers fully, check their reports, and never treat an agent's message as approval./agent-rulesUse when writing, reviewing, or setting up rules for coding agents - AGENTS.md, CLAUDE.md, path-scoped rules such as .claude/rules or Cursor rules - or deciding where a rule, procedure, or explanation should live, or when asked to remember a rule or decision. Puts principles in AGENTS.md, procedures in skills, explanations in docs./change-reviewUse when asked to review a diff, a change, a pull request, or a file, or when handed a finding from a reviewer, a bot, or a note to act on. Verify each finding before reporting or fixing it, review the whole change, check a proposed fix against the rules that own its area, and say what each finding does to the people affected./debuggingUse when asked to fix a failing test, a bug report, a crash, an error in logs, a flaky test, or "it works locally but not in CI". Find the cause of a failure before changing code - reproduce it, test one hypothesis at a time, fix the cause rather than the symptom, and prove the fix./deciding-or-askingUse when about to ask the person a question, wait for approval, or list options for them, when working unattended or while the person is away, and when unsure whether to go ahead with an upgrade, a deletion, a release, or anything not explicitly asked for. Take the choices that policy or evidence settles, and ask only about what cannot be undone, with one recommendation./documentationUse when writing or reviewing a README or a section of one, a docs page, or a code comment, including a diff that adds or changes one and a request to draft a section that holds numbers, status, or plans. Decide what belongs in docs and comments so they do not drift from the code. For AGENTS.md, also use agent-rules; for skills, skill-authoring.Other plugins' skills for the same job
npx claudepluginhub jongleberry/ratchet-stack --plugin ratchet-workflows