/maestro-ablate:ablatefrom Maestro: Ablate
Use for /ablate and $ablate. Finds which parts of a SKILL.md earn their tokens and rebuilds the skill without the rest. Use when asked to ablate, audit, shrink, slim, or trim a skill, when skill bloat or per-session context cost comes up, or to work out which sections of a skill are load-bearing.
Ships in Maestro: Ablate. 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; scripts run unread.
Two phases. Phase A is a static audit: one reasoning pass per skill, no trial runs, covers
everything. Phase B is an empirical loop: baseline, stub, measured add-back, real claude -p
runs, expensive. Run Phase A first, always.
Scripts do the mechanics, take --help, and are invoked by absolute path from this skill's
directory. The judgement is yours: classification, task authoring, mapping failures to sections.
~/.claude/skills/ has no version control by default, and apply.mjs destructively rewrites
SKILL.md files — it refuses to touch a skill whose own files are uncommitted. Git is the
rollback path; the .bak is a convenience, not a safety net.
cd ~/.claude/skills && git init && git add -A && git commit -m "chore: snapshot skills"
Phase A costs one reasoning pass per skill. Phase B spends real money against the user's own subscription, consumes their rate limits, and competes with the session they are in — budget 30–60 nested runs per skill plus grading. Never begin one without saying so and getting a yes.
node scripts/inventory.mjs --top 20 ranks targets by lines × recorded usage.
node scripts/sections.mjs <skill>
node scripts/apply.mjs <skill> --decisions d.json --dry-run
node scripts/apply.mjs <skill> --decisions d.json
node scripts/report.mjs <skill>
Read references/static-rubric.md before deciding and references/classify.md for the gotcha
inventory. Four rules, none negotiable:
kind, prose ratio and section size order the search. They never justify a drop. The best
content in most skills, verification steps and irreducible gotchas, is pure prose.Hand over the diff, the decision table with low-confidence drops on top, and the gotcha inventory.
Follow references/protocol.md. The commands, in order:
node scripts/labinit.mjs <skill> --model <id>
node scripts/run.mjs <lab> --variant control --task <id> --reps 2
node scripts/stub.mjs <lab>
node scripts/run.mjs <lab> --variant stub --task <id> --reps 2
node scripts/run.mjs <lab> --gate # BLOCKING
node scripts/stub.mjs <lab> --keep <ids> --label <l>
node scripts/run.mjs <lab> --variant iter --iter <l> --task <id> --reps 2
node scripts/run.mjs <lab> --grade --a <dir> --b <dir>
run.mjs is the only way to start a trial or a grading call. Improvised setup drifts, and
drift invalidates every comparison in the lab.--gate is blocking; exit 2 means halt. A stub that passes everything means the harness is
broken, not that the skill body is worthless.<lab>/config/ holds a copy of the user's credentials.Validate the rig first per fixtures/README.md. Do not self-ablate this skill.
Grading in between is autonomous. Gate 1, before the runs: operator reviews bar.md,
tasks.json, the gotcha inventory — a bad bar wastes every run after it. Gate 2, after the
rebuild: rebuilt versus control per task, dropped and extracted with iteration evidence,
thin-margin drops flagged for individual veto. Then spot-check the rebuild in real work: the clean
room cannot see the context pressure that motivates the method.
references/: static-rubric.md Phase A · classify.md deterministic-vs-taste and gotchas ·
protocol.md the loop · bar-template.md success criteria. Also SPIKE.md (why isolation works)
and fixtures/README.md (rig validation).
SPIKE.md (opens in a new tab)fixtures/README.md (opens in a new tab)fixtures/rig-check.bar.md (opens in a new tab)fixtures/rig-check.tasks.json (opens in a new tab)references/bar-template.md (opens in a new tab)references/classify.md (opens in a new tab)references/protocol.md (opens in a new tab)references/static-rubric.md (opens in a new tab)scripts/apply.mjs (opens in a new tab)scripts/inventory.mjs (opens in a new tab)scripts/labinit.mjs (opens in a new tab)scripts/lib/args.mjs (opens in a new tab)scripts/lib/claude.mjs (opens in a new tab)scripts/lib/lab.mjs (opens in a new tab)scripts/lib/md.mjs (opens in a new tab)scripts/lib/paths.mjs (opens in a new tab)scripts/lib/records.mjs (opens in a new tab)scripts/lib/usage.mjs (opens in a new tab)scripts/report.mjs (opens in a new tab)scripts/run.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mbanderas/maestro-ablate --plugin maestro-ablate