/jamie-superpowers:resource-budgetfrom jamie-superpowers
Use before starting heavy work (builds, large test suites, browser E2E, virtual devices, media processing) or before dispatching more than one agent - measures the machine and sizes parallelism so it is never overloaded
Ships in jamie-superpowers. 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.
None: SKILL.md is the whole skill.
Parallel agents only speed things up while the machine has headroom. Past that point every job slows down, timing-sensitive work (recordings, UI tests, benchmarks) produces garbage, and other projects on the same machine suffer.
Core principle: measure, then size. Never guess how many heavy jobs the machine can take.
heavyJobs, or anything obviously heavy (compilers, full test suites, browsers, emulators, video)"${CLAUDE_PLUGIN_ROOT}/scripts/machine-budget". It prints cores, RAM, load, free disk, running heavy jobs per kind, and a verdict:
VERDICT: ok max_heavy=<n> max_agents=<n> → size your batch to at most those numbers.VERDICT: wait reason=... (exit 3) → do not start heavy work. Find out who is using the machine (ps), and if it is another project, wait; never kill it.max_agents). Count heavy jobs, not agents: two agents that both compile hold two build slots."${CLAUDE_PLUGIN_ROOT}/scripts/jsp-slot" <kind> -- <command>. Slot counts come from heavyJobs.<kind>.slots in .jamie-superpowers.json (default 1). The script waits while slots are busy or load is too high, and always releases.| Setting | Default |
|---|---|
| Wait threshold | 1-minute load > loadFactor (1.5) × cores |
| Free RAM floor | 1.5 GB |
| Free disk floor | 10 GB (run batch-cleanup if below) |
| Slots per heavy kind | 1 |
| Timing-sensitive work (recording, perf tests) | run alone, load < cores |
| Mistake | Fix |
|---|---|
| Starting 4 build agents because there are 4 tasks | Tasks ≠ capacity. Use max_agents and slots. |
| Recording or benchmarking while builds run | Timing-sensitive work runs alone. |
| Killing a heavy process you did not start | Never. It may belong to another project or the user. Wait. |
| Running the full suite in every agent | Each agent tests only what it touched; one full run before merge. |
| Ignoring disk | Below 10 GB free, clean up first (batch-cleanup). |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
22 skills in this plugin
/batch-cleanupUse after every release, after any worktree/branch is merged, once a change looks stable, after a batch of parallel agents, after a deploy, when free disk drops below ~10 GB, or before pausing a session - removes finished worktrees, merged branches, regenerable build output, the project's unused container images/volumes and temp files, and reports space freed/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./cache-aware-dispatchUse before sending follow-up work (fixes, review findings, questions) to an existing subagent, before switching models, and before long waits - decides between resuming an agent and dispatching a fresh one based on prompt-cache age and context sizeGenerated from the plugin's indexed repository (thongpham95/jamie-superpowers) — no native marketplace selected
npx claudepluginhub p/thongpham95-jamie-superpowers