/skill-diet:skill-model-gapfrom skill-diet
Diagnoses why a skill performs worse on one AI model vs another, identifies root causes (loading, rule wording, early stopping), and guides fixes that improve the target model without regressing others.
Ships in skill-diet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A skill tested on one model (the reference) often passes fewer tasks on another (the target). Find where and why, fix it with text every model reads, and prove the target gains while no model drops.
This runs skill-diet's eval: tasks and scoring per eval.md, the adapter per adapter.md, commands as node ../skill-diet/scripts/eval.mjs …. Edits follow skill-diet's Editing a skill.
--model to every run and score.adapter and sk/ link to the tuning folder's. Held-back tasks get no runs until the end.base (the skill as it is), none, and one folder per candidate fix.base pass rate (on a tie, the one that reads the skill most); every other model with a gap is a target. Add at least one more model as a harm check.base and none on every model, tuning tasks, 3 runs. score <dir> --models <all> --versions none,base puts the models side by side; --model <m> instead gives one model's warnings. A gap is a task the target fails more often than the reference with a cause in its logs; 2/3 against 3/3 alone is noise. If the target does better with none (MISS or WORSE here), look for lines to cut first. No gap on any target → stop and report.
Loading first. Compare how many runs read SKILL.md on each model (the --models table's last row; score's under-half warning is this finding). If the target opens the skill much less often, fix loading before any rule: a description that says when to read the skill and what it adds to the tool's own description. If reads rise but passes don't, move the rules the target breaks into the description.
Otherwise a fresh reviewer reads each failing target run beside a passing reference run of the same task, and labels one cause with quoted evidence:
Each cause needs a held-back task that hits it (the same command or call). Write any that are missing now, before any fix, so step 4 can show a gain.
Try a shared fix first: plainer, positive, more direct wording helps every model. Each candidate is a version L<n>: base plus one change.
base vs L<n> on the target, the gap tasks it's for, 6 runs. Keep it if the gain score <dir> --model <target> --versions base,L<n> --tasks <those tasks> prints is larger than its 2 SE, or a task flips from failing every run to passing every run.tuned, vs base on every other model, all tuning tasks, 3 runs. On WORSE or MISS, leave one change out at a time to find it, then drop or reword it. Compare reads too: a model that stops opening the skill loses the rules left in its body, so report the drop.tuned vs base on the target, all tuning tasks.Every model reads every line; a host can't reliably hide a line by model.
base vs tuned on every model, held-back folder, 9 runs. Ship when the target gains more than 2 SE, no model is WORSE or MISSes, and SKILL.md stays within skill-diet's budget. Report tokens/run per model as a cost: a skill that models now open costs its size on every task. If base already passes the target's held-back tasks, they can't show a gain: add tasks for the gap's causes and run once more. If base fails them and tuned doesn't gain, the fixes are overfit; write new held-back tasks before tuning again.
On ship, record every model as eval.md's Tested with says. The commit message names which change came from which target, with the measurements. When a target in tested-with is replaced, rerun base with and without its changes on the new model, and delete what no longer helps.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nicobailon/skill-diet --plugin skill-diet2 skills in this plugin
Other plugins' skills for the same job