calibration-audit
Skill1 starsChanged 6 months agoMITView on GitHub
Read-only audit — runs the calibration planner-init and evaluator-baseline phases, prints the per-feature findings, then stops. No improvement plan, no approval gate, no edits. The same first half of /calibrate. Use this as a periodic health check or a CI gate when you only want to know "what's wrong" without applying anything. Persists baseline reports to .claude/calibration/<ts>/ so a later /claude-calibration:calibration-diff can compare against them. Scope which plugins the audit covers with --plugins foo,bar (allow-list), --plugins -baz (block-list), or --plugins global|local; a persisted .claude/calibration/config.json sets the same default.
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-diffSkill
- calibration-doctorSkill
- calibration-flowSkill
- calibration-onboardingSkill
- calibrationSkill
- calibration-trackSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
No improvement plan; no approval gate.
- Very specific: line 46
planner-init: Create the run folder; write plan.md with intent "audit (read-only)", intent_source: audit-flow.
- Very specific: line 50
Print the findings: Read plan.md and the three eval reports.
- Distinctive: line 106
If the planner or evaluator fail, surface the error one line and stop — do not continue silently.
≈ “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-audit 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 "TIMESTAMP=$(date +%Y%m%d-%H%M%S)"
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)"
echo "GITIGNORE_HAS_CALIBRATION=$(grep -qs 'calibration' .gitignore && echo yes || echo no)"
PLUGIN_FILTER=""
[ "$BUNDLES_DIR" != "UNKNOWN" ] && [ -f "$BUNDLES_DIR/lib/resolve-plugin-filter.sh" ] && PLUGIN_FILTER="$(bash "$BUNDLES_DIR/lib/resolve-plugin-filter.sh" "$ARGUMENTS" "${CLAUDE_PROJECT_DIR:-$(pwd)}" 2>/dev/null || true)"
echo "PLUGIN_FILTER=$PLUGIN_FILTER"
echo "=== end preprocessing ==="calibration-audit — read-only baseline
You are the audit-only flow. Your job is to chain calibration-planner (init) and
calibration-evaluator (pass 1) — exactly the first two phases of /calibrate — and then stop.
No improvement plan; no approval gate; no calibrator. The user wants to know what's wrong, not fix
it.
The arguments are: $ARGUMENTS (restart starts a new audit run; --plugins <val> scopes which
plugins are audited — already normalised into PLUGIN_FILTER by the preprocessing block).
Phases (subset of /calibrate)
- planner-init. Create the run folder; write
plan.mdwith intent"audit (read-only)",intent_source: audit-flow. - baseline-eval. Evaluator pass 1 — write
eval-features-*.md,eval-interactions-*.md,eval-intent-flow-*.md; setlast_phase_completed: baseline-eval. - Print the findings. Read
plan.mdand the three eval reports; print:- The diagnostics ask (the four CLI outputs the user must paste for exact numbers).
- Severity counts (C/H/M/L).
- The top 5 highest-impact findings, one per line:
severity · scope · feature · signature · one-line detail. - The path to the run folder so the user can read the full reports.
→ Re-run /calibrate to plan fixes, or /claude-calibration:calibration-diff after manual edits.
Procedure
- Resolve
DOCS_DIR,BUNDLES_DIR,PROJECT_DIR,TIMESTAMP,NOW_ISO,GIT_HEADfrom the preprocessing block. IfBUNDLES_DIRisUNKNOWN, tell the evaluator to fall back toRubric dir: <DOCS_DIR>only. $ARGUMENTS = restartor no current audit folder → create<PROJECT_DIR>/.claude/calibration/<TIMESTAMP>/. Otherwise resume the latest audit folder (find vials -1dt .claude/calibration/*/ | head -1).- Phase 1 — spawn
calibration-planner:
On return:Agent(calibration-planner) Mode: init. Intent: "audit (read-only)". Intent source: audit-flow. Run folder: <abs>. Project dir: <PROJECT_DIR>. Rubric dir: <DOCS_DIR>. Bundles dir: <BUNDLES_DIR>. Git HEAD: <GIT_HEAD>. Started: <NOW_ISO>. Audit scope: user (~/.claude/) + project + enabled plugins. Plugin filter: <PLUGIN_FILTER>.✓ Audit run initialised: <run>/plan.md. → Next: baseline evaluation. - Phase 2 — spawn
calibration-evaluator:
On return: print the counts + top 3 lines the evaluator returned.Agent(calibration-evaluator) Pass: 1 (baseline). Run folder: <abs>. Plan: <run>/plan.md. Rubric dir: <DOCS_DIR>. Bundles dir: <BUNDLES_DIR>. Project dir: <PROJECT_DIR>. Audit scope: user + project + plugins. Plugin filter: <PLUGIN_FILTER>. - Read the reports yourself. Open
<run>/eval-features-*.md,eval-interactions-*.md, andeval-intent-flow-*.md. Compose the audit summary per the format above. - Do not spawn the planner in improve mode, do not present an approval gate, do not spawn the calibrator. The flow ends here.
Hard rules
- You never invoke
Agent(calibration-calibrator)and you never spawncalibration-plannerwithMode: improve. If the user wants a plan or edits they re-run/calibrate. - You only
Writeto the run folder (the planner and evaluator do that themselves; you do not). - The shipped audit-only write-guard hook will exit 2 if anything tries to write outside the run folder during this flow — treat any such block as evidence of a bug and report it.
- If the planner or evaluator fail, surface the error one line and stop — do not continue silently.
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.

