calibration-diff
Skill1 starsChanged 6 months agoMITView on GitHub
Compare the current Claude Code setup against the previous calibration run's baseline. Spawns only the evaluator (pass 2) — no planner, no calibrator, no edits. Useful between calibration runs (you manually edited a few files; what now shows resolved vs new?) and as a "did my changes hold up?" check after merging a PR. Writes eval-delta-*.md into the previous run folder and prints the before -> after counts. If no previous run exists, says so and points at /calibrate.
In this repository25 other files it gives its agents.
- agents/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .claude/skills/CLAUDE.mdCLAUDE.md
- hooks/CLAUDE.mdCLAUDE.md
- rules/CLAUDE.mdCLAUDE.md
- skills/CLAUDE.mdCLAUDE.md
- docs-statusSkill
- docs-updateSkill
- plugin-updateSkill
- calibrate-claude-mdSkill
- calibrate-generalSkill
- calibrate-hooksSkill
- calibrate-mcpSkill
- calibrate-pluginsSkill
- calibrate-rulesSkill
- calibrate-settingsSkill
- calibrateSkill
- calibrate-skillsSkill
- calibrate-subagentsSkill
- calibration-auditSkill
- calibration-doctorSkill
- calibration-flowSkill
- calibration-onboardingSkill
- calibrationSkill
- calibration-trackSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Pick the run to diff against: Default: the latest run folder with a complete baseline_reports list in plan.md (read it.
- Very specific: line 62
Print a short summary: Read plan.md's now-updated last_evaluation field.
- Distinctive: line 71
After a calibration run you may keep editing — hand-tuning a rule, adding a hook, deleting an unused skill.
- Very specific: line 82
If the picked run's plan.md is missing or unparseable, say so and stop.
- Very specific: line 83
If the user has applied changes by hand that the evaluator now sees in the same scope as a former finding, treat that as resolved — that's …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
echo "=== calibration-diff preprocessing ==="
DOCS_DIR="$(cd "${CLAUDE_SKILL_DIR}/../../docs" 2>/dev/null && pwd || echo UNKNOWN)"
BUNDLES_DIR="$(cd "${CLAUDE_SKILL_DIR}/.." 2>/dev/null && pwd || echo UNKNOWN)"
echo "DOCS_DIR=$DOCS_DIR"
echo "BUNDLES_DIR=$BUNDLES_DIR"
echo "PROJECT_DIR=${CLAUDE_PROJECT_DIR:-$(pwd)}"
echo "NOW_ISO=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
echo "GIT_HEAD=$(git rev-parse HEAD 2>/dev/null || echo not-a-git-repo)"
if [ -f .claude/calibration/current ]; then
CURRENT="$(cat .claude/calibration/current)"
echo "CURRENT_RUN=$CURRENT"
else
echo "CURRENT_RUN=(none)"
fi
echo "--- recent calibration runs (newest first) ---"
ls -1dt .claude/calibration/*/ 2>/dev/null | head -5 || echo "(none)"
echo "=== end preprocessing ==="calibration-diff — re-evaluate against the last baseline
You are the diff-only flow. You run the calibration evaluator pass 2 against the previous run's baseline reports and stop. No planner, no calibrator, no edits.
What to do
- Resolve
DOCS_DIR,BUNDLES_DIR,PROJECT_DIRfrom the preprocessing block. - Pick the run to diff against. Default: the latest run folder with a complete
baseline_reportslist inplan.md(read it; the field is set when the evaluator finishes Pass 1). If the user passed a run identifier in$ARGUMENTS(e.g. a timestamp), use that one. If no run is found, print one line:No prior calibration run found — run /calibrate first to establish a baseline.and stop. Also read the picked run'splugin_filterfield — the delta must re-audit the same plugin scope as the baseline, so reuse it verbatim (don't take a new--pluginsflag here). - Spawn the evaluator (Pass 2):
The evaluator will writeAgent(calibration-evaluator) Pass: 2 (delta). Run folder: <abs of the picked run>. Plan: <run>/plan.md. Baseline reports: <the names from plan.md baseline_reports>. Rubric dir: <DOCS_DIR>. Bundles dir: <BUNDLES_DIR>. Project dir: <PROJECT_DIR>. Plugin filter: <the picked run's plugin_filter from plan.md, or empty = all plugins>.eval-delta-<ts>.mdinto the run folder and updateplan.md'slast_evaluationfield. - Print a short summary. Read
plan.md's now-updatedlast_evaluationfield; print:Diffing against: <run folder> (baseline taken <plan.started>).Before: C<n> H<n> M<n> L<n>. After: C<n> H<n> M<n> L<n>.Resolved <n> · partial <n> · open <n> · new <n>.Delta report: <run>/eval-delta-<ts>.md.→ Run /calibrate to plan fixes for the open + new findings.
Why diff-only
After a calibration run you may keep editing — hand-tuning a rule, adding a hook, deleting an unused skill. This flow re-runs the evaluator against the baseline reports of that earlier run so you can see "what changed since the last calibration" without re-spawning the planner or calibrator. It's the cheapest way to confirm a fix held up.
Hard rules
- You never invoke
calibration-plannerorcalibration-calibrator. The evaluator'sPass: 2only updatesplan.md'slast_evaluationandlast_phase_completed(it setsdelta-eval); it does not touch other state. - You only
Writeindirectly through the evaluator subagent — no direct writes from you. - If the picked run's
plan.mdis missing or unparseable, say so and stop; do not invent a baseline. - If the user has applied changes by hand that the evaluator now sees in the same scope as a former
finding, treat that as
resolved— that's the point.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

