calibration-track
Skill1 starsChanged 6 months agoMITView on GitHub
Track whether calibration is actually improving your Claude Code setup across iterations. Takes a deterministic snapshot of the current config (a structural floor from calibration-doctor plus signature-keyed lint over all nine features), anchors a baseline to the last PR merged onto main, keeps a local gitignored history ledger, and prints an improvement/regression verdict vs that baseline AND vs the previous iteration. Unlike /calibrate's built-in before→after delta, this measure is deterministic and independent of the evaluator the calibrator optimizes against, so it can confirm real movement rather than restating the calibrator's own opinion. Measures config quality (does the setup get tighter/safer), not the runtime behaviour of the workflow. Use it after each calibration round, or after hand-edits, to answer "did that change actually help?"
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-diffSkill
- calibration-doctorSkill
- calibration-flowSkill
- calibration-onboardingSkill
- calibrationSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 58
If the block reported TRACK_SCRIPTS_NOT_FOUND=..., print exactly:
- Distinctive: line 77
Keep the tables verbatim — they are already aligned.
- Very specific: line 81
Read the verdict: line and the VS_BASELINE_EXIT / VS_PREVIOUS_EXIT tokens.
- Very specific: line 109
If both comparisons are unresolvable (no-baseline and need-two-iterations), say so plainly: the first iteration is now recorded.
≈ “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-track preprocessing ==="
PROJECT_DIR="${CLAUDE_PROJECT_DIR:-$(pwd)}"
SCR="${CLAUDE_SKILL_DIR}/scripts"
echo "PROJECT_DIR=$PROJECT_DIR"
echo "NOW_ISO=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
if [ ! -f "$SCR/snapshot.sh" ]; then
echo "TRACK_SCRIPTS_NOT_FOUND=$SCR"
else
echo "--- baseline sync (config as of the last PR merged onto main) ---"
bash "$SCR/snapshot.sh" "$PROJECT_DIR" --baseline 2>&1
echo "--- iteration snapshot (current working tree) ---"
bash "$SCR/snapshot.sh" "$PROJECT_DIR" 2>&1
echo "--- compare: current vs base (last main merge) ---"
bash "$SCR/compare.sh" "$PROJECT_DIR" --vs-baseline 2>&1; echo "VS_BASELINE_EXIT=$?"
echo "--- compare: current vs previous iteration ---"
bash "$SCR/compare.sh" "$PROJECT_DIR" 2>&1; echo "VS_PREVIOUS_EXIT=$?"
fi
echo "=== end preprocessing ==="/claude-calibration:calibration-track
You are the iteration track. The preprocessing block above has already taken a deterministic
snapshot of the setup, synced a baseline to the last PR merged onto main, and run two comparisons.
Your job is to format and relay those results and name the next step. Do not re-run the snapshot
sequence yourself (the block already did) and do not write any files — except the optional flag
handling below.
What the snapshot measures (say this once, briefly, if asked)
A deterministic read of config quality: a structural floor (broken / warn / ok from
calibration-doctor) plus signature-keyed lint over all nine features. It is independent of
/calibrate's built-in delta (which re-scores with the same evaluator the calibrator optimizes
against), so it can confirm real movement. It does not measure the runtime behaviour of a
workflow (e.g. whether a code-review setup catches more bugs) — that is out of scope.
Output format
If the block reported TRACK_SCRIPTS_NOT_FOUND=..., print exactly:
calibration-track: scripts/ not found.
→ The plugin install may be incomplete. Re-install or run /reload-plugins.and stop.
Otherwise present two short sections, then a verdict line and a → Next: pointer:
- vs base (last main merge) — relay the
current vs basecomparison: the severity before→after table, the floor line, and any non-unchangedsignature rows. If that compare printedno-baseline/no-base-ref, say the base is unavailable (not a git repo, or nomainlineage yet) and that only the iteration-over-iteration view applies. - vs previous iteration — relay the
current vs previouscomparison the same way. If it printedneed-two-iterations, say this is the first tracked iteration and movement will show on the next run.
Keep the tables verbatim — they are already aligned. Don't invent numbers the block didn't print.
The verdict + next step
Read the verdict: line and the VS_BASELINE_EXIT / VS_PREVIOUS_EXIT tokens. Choose the pointer:
- Any
REGRESSION(exit 1) →→ Regression since the base/last iteration — run /calibrate to plan fixes for the new or regressed findings. - Else any
IMPROVED→→ Improving. Keep iterating; re-run /claude-calibration:calibration-track after the next change to confirm it holds. - Else (
no change of note) →→ Flat vs base and previous. Run /calibrate to plan further improvements, or /claude-calibration:calibration-audit for a full rubric pass.
A regression in either comparison wins (report it). Always note which comparison drove the verdict.
Optional flags (only if $ARGUMENTS asks)
The arguments are: $ARGUMENTS. The standard path above needs none. Handle these only if present:
--reset-baseline— the base may be stale or you want to re-anchor. Runbash "${CLAUDE_SKILL_DIR}/scripts/snapshot.sh" "<PROJECT_DIR>" --baseline --reset-baseline, then re-runbash "${CLAUDE_SKILL_DIR}/scripts/compare.sh" "<PROJECT_DIR>" --vs-baselineand use that.--scope all— widen lint from this project's.claude/**to everything enumerated (user config + installed-plugin cache; non-deterministic, diagnostic). Re-runbash "${CLAUDE_SKILL_DIR}/scripts/snapshot.sh" "<PROJECT_DIR>" --scope allthen the two compares, and note the result is a diagnostic sweep, not the tracked project measure.--vs-baseline— show only the vs-base section; omit the vs-previous one.
Hard rules
- You print only what the scripts emitted, formatted. The snapshot + compare already ran in the block; don't duplicate them on the standard path.
- You never write config files. The scripts persist snapshots under
.claude/calibration/track/(gitignored) on their own — that is not a config edit. - A regression verdict must surface clearly; never bury an
exit=1comparison. - If both comparisons are unresolvable (
no-baselineandneed-two-iterations), say so plainly: the first iteration is now recorded; run again after a change to see movement.
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.

