/config-drift-checker:repairfrom config-drift-checker
Repairs agent setup after a red eval run by proposing minimal changes to CLAUDE.md, skills, or hooks to restore drifted behavior, verifying with re-run, and writing a PR-ready summary.
Ships in config-drift-checker. 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.
You are fixing the setup under test, never the test. The eval caught a behaviour drift; your job is to restore the behaviour with the smallest possible edit and prove it with a re-run.
.claude-plugin/plugin.json; its CLAUDE.md, skills/**,
hooks/** are the only files you may change.aggregate-result.json of the red run. Diff vs baseline: the markdown table.
Baseline: the last green aggregate-result.json.eval-shim.mjs. Budget: the most you may spend on verification runs (USD).repair-summary.md.evals/: not prompts, not graders, not case.yaml. A grader that looks wrong
goes in the summary as a finding, not a fix.--budget <remaining> to every shim call and stop when it is spent.arms.with runs: numTurns, toolUses,
the failing graders' reason, the response. Classify: refused before acting · skill/hook did not
fire · did the wrong thing · did the right thing, said it wrong · grader wrong · flaky.
Only the middle three are repairable here; the others go in the summary.CLAUDE.md / the skill / the hook.
Compare with the baseline run's transcript: what did the agent do then that it does not do now?PreToolUse hook if prose is structurally unreliable for a must-never rule.node <shim> <plugin> --case <dir> --runs 2 --ablation none --scaffold --budget <remaining> --output-dir <tmp>. Green = every run scores 1.00 on the scored graders. Compare cost/turns to the baseline
too; a fix that doubles turns is not a fix.git checkout -- <plugin-dir> or
undo them by hand) and write a summary that says what you tried and what you learned.repair-summary.md (this becomes the PR body):## What drifted
<case>: <one sentence: what the agent did vs what the setup requires>, since Claude Code <from> → <to> / model <from> → <to>.
## The change
<file>: <one sentence per edit, and why this wording>
## Evidence
| case | before (red run) | after (verification) | turns | cost |
| … | 0.33 (2/3 runs failed `blocked-by-hook`) | 1.00 (2/2) | 6 → 5 | $0.21 |
## Not changed
<anything you noticed but left alone: a suspicious grader, a second unrelated red case, a flaky run>
If nothing safe was found: title the file ## No safe fix found, keep the What drifted and Not changed
sections, and make sure the working tree is clean.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jameskomo/config-drift-checker --plugin config-drift-checker4 skills in this plugin
/runRun the agent-config eval suite locally and compare with the stored baseline; explain why a case went red. Use when the user says "run the evals", "run config-drift-checker", "did the Claude Code update break my setup", "why is the eval red", or "compare against baseline". Do not use to change the setup itself (that is repair) or to write new cases (that is write-case)./setupSet up regression testing (CI) for this repository's Claude Code configuration (plugin, skills, hooks, CLAUDE.md). Use when the user says "set up config-drift-checker", "add evals for my plugin/skills/hooks", "test my Claude Code setup", "make sure my hooks keep working after updates", or "wire the eval GitHub Action". Do NOT use for evaluating an LLM application or prompts; this is for agent configuration only./write-caseAuthor or fix an eval case (prompt.md, graders/*.md, case.yaml) for a Claude Code plugin, skill, or hook in the official `claude plugin eval` format. Use when the user says "write an eval for", "add a test case for this skill/hook", "my grader is wrong", or "how do I assert the hook fired". Do not use to run the suite or explain a red result (that is run), or to fix the setup after a regression (that is repair).Other plugins' skills for the same job