claude-calibration
CLAUDE.md1 starsChanged 6 months agoMITView on GitHub
This repo is the source for the claude-calibration Claude Code plugin. It is not an application — every file under here ships to end users when the plugin is installed. This repo no longer ships its own marketplace.json. Distribution is via the external odere-pro aggregator marketplace, which lists this plugin by github source — install with claude-calibration@odere-pro. - skills/calibrate*/ — orchestrators + 9 per-feature bundles - skills/calibration-*/ — top-level flows: calibration (dispatcher), calibration-audit, calibration-diff, calibration-track, calibration-flow, calibration-doctor, calibration-onboarding - workflows/calibration-audit-parallel.mjs…
In this repository25 other files it gives its agents.
- agents/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
- calibration-trackSkill
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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 70
[signature-tracked]: Don't rename a pattern signature — breaks recurrence history.
- Very specific: line 72
[hook-guarded]: Don't break the signature → bundle map in rules/dispatch.md — signature general:must-rule-with-no-hook flags it and …
- Very specific: line 75
[advisory]: Don't skip /reload-plugins after editing under --plugin-dir.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
claude-calibration — plugin development
This repo is the source for the claude-calibration Claude Code plugin. It is not an
application — every file under here ships to end users when the plugin is installed.
What ships
.claude-plugin/plugin.json— manifest (version of record)
This repo no longer ships its own marketplace.json. Distribution is via the external
odere-pro aggregator marketplace,
which lists this plugin by github source — install with claude-calibration@odere-pro.
skills/calibrate*/— orchestrators + 9 per-feature bundlesskills/calibration-*/— top-level flows:calibration(dispatcher),calibration-audit,calibration-diff,calibration-track,calibration-flow,calibration-doctor,calibration-onboardingworkflows/calibration-audit-parallel.mjs— aWorkflowscript (run via theWorkflowtool //workflows) that parallelizes the read-only audit: it fans the 9 feature evaluators out via a deterministicparallel()overcalibration-feature-evaluator, then synthesizes viacalibration-evaluator. There is no native plugin component for workflows, so the SessionStart hookinstall-workflows.shcopies it into the project's.claude/workflows/registry on session start (idempotent, never clobbers local edits); same reports as/claude-calibration:calibration-auditagents/calibration-*.md— 5 worker subagents: planner, evaluator, calibrator,calibration-feature-evaluator(haiku worker the evaluator fans out to in parallel), andcalibration-flow-evaluator(sonnet worker the/calibration-flowbehavioural flow spawns)rules/{signatures,dispatch}.md— canonical signature catalogue + dispatch maphooks/{hooks.json,calibrator-write-guard.sh,audit-write-guard.sh}—PreToolUsewrite-guardshooks/install-workflows.sh—SessionStarthook that installsworkflows/*.mjsinto the project's.claude/workflows/docs/— human-readable rubric (the doc-set the plugin grades against)
What doesn't
.claude/(this dir's project config — only for plugin authors, not loaded for end users)tmp/(scratch).claude/calibration/(run artifacts)
The parallel-audit
Workflowships atworkflows/(plugin root, see "What ships"), not under.claude/. Since there is no plugin component type for workflows, theSessionStarthook materialises it into each project's.claude/workflows/registry so/workflowslists it.
Note: Claude Code clones the whole repo into the plugin cache — there is no ship-whitelist or
.claudeignore. So author-only files (.claude/,tests/gates/,.github/,CONTRIBUTING.md,SECURITY.md,CHANGELOG.md,SOFTWARE-3-0.md, …) are copied but never loaded — Claude only loads recognized component dirs (skills/,agents/,rules/,hooks/,commands/) plus the manifest. They cost nothing at runtime, so we don't add a build/packaging step to strip them.
Pointers
- README for the user-facing pitch:
README.md - Docs index (the rubric):
docs/README.md - Plugin lifecycle & usage:
docs/install.md,docs/usage.md
Agent routing
The 5 worker subagents (calibration-planner, calibration-evaluator, calibration-calibrator,
calibration-feature-evaluator, calibration-flow-evaluator) are invoked exclusively by the skill
layer — the /calibrate orchestrator and the standalone flows (calibration-flow spawns
calibration-flow-evaluator); never by the user directly. No root AGENTS.md is needed; routing is
encoded in the
orchestrator's dispatch logic, not a routing table.
House rules
Detailed plugin-development rules live in .claude/rules/plugin-dev.md (path-scoped to plugin
internals; loads on-demand).
Guard rails (each labelled by enforcement mechanism):
- [signature-tracked] Don't rename a pattern signature — breaks recurrence history. See
rules/signatures.md; signaturerule:should-be-skilltracks this class of violation. - [hook-guarded] Don't break the
signature → bundlemap inrules/dispatch.md— signaturegeneral:must-rule-with-no-hookflags it andhooks/calibrator-write-guard.shblocks unauthorised writes during a calibrator session. - [advisory] Don't skip
/reload-pluginsafter editing under--plugin-dir. No hook enforces this; it's a workflow reminder.
Vocabulary
Two files are authoritative; everything else defers to them:
rules/signatures.md— the pattern-signature catalogue (<feature>:<short-name>). Signatures are a public contract: a rename breaks cross-run recurrence history. Adding/changing one means syncing four places —signatures.md, the owning bundle'sreference.md, itsscripts/lint.shemit, andrules/dispatch.md. Seerules/CLAUDE.md.docs/glossary.md— the term vocabulary (feature, scope, layer, bundle, recurrence, enforcement-creation, orchestrator/dispatcher/flow, run folder, …).
Gate map
bash tests/gates/run-all.sh before any PR. Each gate is a small standalone script under
tests/gates/; CRITICAL gates fail CI, advisory ones only warn.
| Gate | Protects | Typical failure |
G1 01-json-parses | every shipped *.json is valid | a typo in plugin.json / hooks.json |
G3 03-skill-frontmatter | every SKILL.md has name + description | missing frontmatter |
G4 04-skill-dmi | every shipped skill is disable-model-invocation: true | a skill that can auto-fire |
G5 05-agent-frontmatter | agents/*.md declare name/description/tools/model | a tool-inheriting agent |
G6 06-rules-have-paths | every shipped rule has paths: | an always-on rule for every user |
G7 07-signature-dispatch-integrity | dispatch signatures ∈ catalogue; 9 bundles well-formed | signature ↔ dispatch ↔ bundle drift |
G8 08-shellcheck | all shell scripts lint clean (-S error) | a shell bug |
G9 09-no-absolute-paths | no /Users/ /home/ in shipped files | a leaked machine path |
G10 10-secret-scan | no token-shaped secrets in shipped files | a leaked credential |
G11 11-changelog-version | CHANGELOG.md has the plugin.json version section | changelog/version drift |
G12 12-hooks-no-remote | no curl/wget/remote npx in hooks | network on the hot path |
G13 13-hooks-json-resolves | hooks.json commands resolve to executables | broken hook wiring |
G14 14-doc-links | no dangling intra-doc .md links | a broken doc/briefing link |
G15 15-markdown-lint (advisory) | markdown style | style nit |
G16 16-changelog-fragment-present | a PR with non-doc changes adds a changelog/ fragment | missing fragment |
G17 17-glossary-consistency | docs/glossary.md defines the power-word vocabulary (agent/subagent distinct) AND prose uses it — drift is caught | a power word with no entry, or a banned synonym in prose (e.g. a worker subagent written as a plain agent) |
G18 18-changelog-fragment-unique | every changelog/<NN>-<slug>.md has a distinct <NN> | two in-flight PRs picked the same fragment number |
G19 19-flow-fixture-integrity | behavioural-flow fixtures have input/ + a parseable expected.md oracle naming only catalogued signatures; the scorer can score each shipped example | a fixture with no expected.md, an unparseable oracle, or a signature not in signatures.md |
G20 20-plugin-filter | the skills/lib/ plugin-filter helpers extract names, apply allow/block + scope correctly, and the resolver normalises --plugins / config.json | a regression in plugin allow/block-list scoping |
Test / verify quick-recipes
bash tests/gates/run-all.sh # full gate suite
bash tests/gates/07-signature-dispatch-integrity.sh # one gate, standalone
bash scripts/changelog-aggregate.sh # preview pending changelog fragments
bash tests/eval/run-eval.sh --scope shipped --durability # deterministic snapshot: floor + scoped lint + durability
bash tests/eval/compare-eval.sh --vs-baseline # track improvement/regression vs tests/eval/baseline.json
bash tests/eval/run-eval.sh --scope all --no-write # diagnostic: what an unscoped audit would see (incl. cache)
bash tests/eval/score-flow-cases.sh # deterministic unit tests for the behavioural-flow scorer (no LLM)
claude --plugin-dir . # load the plugin against itself, then in-session:
# /reload-plugins # pick up edits
# /claude-calibration:calibration-audit # read-only end-to-end smoke
# /calibrate cost # load-bearing on calibrate-general/scripts/lint.sh
# /calibrate "audit this plugin's setup" # dogfood the full loopSource layout
| Path | Role | Ships? |
.claude-plugin/ | plugin.json (the manifest) | yes |
skills/ | orchestrator (calibrate), dispatcher (calibration), 6 flows, 9 per-feature bundles | yes |
skills/lib/ | shared shell helpers (plugin-filter.sh sourced by bundle enumerate.sh; resolve-plugin-filter.sh called by calibrate/audit/diff) — not a skill, no SKILL.md | yes |
agents/ | the 5 worker subagents | yes |
rules/ | signatures.md + dispatch.md (path-scoped) | yes |
hooks/ | the two PreToolUse write-guards + the SessionStart workflow installer | yes |
docs/ | the rubric the plugin grades against | yes |
tests/gates/ | the CI validation suite (run-all.sh + numbered gates) | author-only |
tests/eval/ | deterministic eval harness (run-eval.sh / compare-eval.sh + baseline.json + history.jsonl) | author-only |
scripts/ | maintenance scripts (changelog-aggregate.sh) | author-only |
changelog/ | per-PR changelog fragments | author-only |
workflows/ | calibration-audit-parallel.mjs — Workflow script; installed into the project's .claude/workflows/ by the SessionStart hook | yes |
.claude/ | this repo's own project config + maintenance skills/agent | author-only |
.github/ | CI/release workflows + issue/PR templates | author-only |
Where to read before editing
| Editing… | Read first |
a calibrate-* bundle | skills/CLAUDE.md + that bundle's reference.md + .claude/rules/plugin-dev.md |
| a pattern signature | rules/CLAUDE.md (the four-places-in-sync rule) |
| a worker subagent | agents/CLAUDE.md |
| a write-guard hook | hooks/CLAUDE.md |
| a CI gate | tests/gates/CLAUDE.md |
| the rubric vs upstream docs | run /docs-status → /docs-update → /plugin-update (author-only skills under .claude/skills/) |
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.

