agentleFS
odere-proodere-pro/claude-calibration/CLAUDE.md

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…

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
  1. Very specific:

    [signature-tracked]: Don't rename a pattern signature — breaks recurrence history.

    line 70
  2. Very specific:

    [hook-guarded]: Don't break the signature → bundle map in rules/dispatch.md — signature general:must-rule-with-no-hook flags it and …

    line 72
  3. Very specific:

    [advisory]: Don't skip /reload-plugins after editing under --plugin-dir.

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 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 — a Workflow script (run via the Workflow tool / /workflows) that parallelizes the read-only audit: it fans the 9 feature evaluators out via a deterministic parallel() over calibration-feature-evaluator, then synthesizes via calibration-evaluator. There is no native plugin component for workflows, so the SessionStart hook install-workflows.sh copies it into the project's .claude/workflows/ registry on session start (idempotent, never clobbers local edits); same reports as /claude-calibration:calibration-audit
  • agents/calibration-*.md — 5 worker subagents: planner, evaluator, calibrator, calibration-feature-evaluator (haiku worker the evaluator fans out to in parallel), and calibration-flow-evaluator (sonnet worker the /calibration-flow behavioural flow spawns)
  • rules/{signatures,dispatch}.md — canonical signature catalogue + dispatch map
  • hooks/{hooks.json,calibrator-write-guard.sh,audit-write-guard.sh} — PreToolUse write-guards
  • hooks/install-workflows.sh — SessionStart hook that installs workflows/*.mjs into 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 Workflow ships at workflows/ (plugin root, see "What ships"), not under .claude/. Since there is no plugin component type for workflows, the SessionStart hook materialises it into each project's .claude/workflows/ registry so /workflows lists 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; signature rule:should-be-skill tracks this class of violation.
  • [hook-guarded] Don't break the signature → bundle map in rules/dispatch.md — signature general:must-rule-with-no-hook flags it and hooks/calibrator-write-guard.sh blocks unauthorised writes during a calibrator session.
  • [advisory] Don't skip /reload-plugins after 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's reference.md, its scripts/lint.sh emit, and rules/dispatch.md. See rules/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.

GateProtectsTypical failure
G1 01-json-parsesevery shipped *.json is valida typo in plugin.json / hooks.json
G3 03-skill-frontmatterevery SKILL.md has name + descriptionmissing frontmatter
G4 04-skill-dmievery shipped skill is disable-model-invocation: truea skill that can auto-fire
G5 05-agent-frontmatteragents/*.md declare name/description/tools/modela tool-inheriting agent
G6 06-rules-have-pathsevery shipped rule has paths:an always-on rule for every user
G7 07-signature-dispatch-integritydispatch signatures ∈ catalogue; 9 bundles well-formedsignature ↔ dispatch ↔ bundle drift
G8 08-shellcheckall shell scripts lint clean (-S error)a shell bug
G9 09-no-absolute-pathsno /Users/ /home/ in shipped filesa leaked machine path
G10 10-secret-scanno token-shaped secrets in shipped filesa leaked credential
G11 11-changelog-versionCHANGELOG.md has the plugin.json version sectionchangelog/version drift
G12 12-hooks-no-remoteno curl/wget/remote npx in hooksnetwork on the hot path
G13 13-hooks-json-resolveshooks.json commands resolve to executablesbroken hook wiring
G14 14-doc-linksno dangling intra-doc .md linksa broken doc/briefing link
G15 15-markdown-lint (advisory)markdown stylestyle nit
G16 16-changelog-fragment-presenta PR with non-doc changes adds a changelog/ fragmentmissing fragment
G17 17-glossary-consistencydocs/glossary.md defines the power-word vocabulary (agent/subagent distinct) AND prose uses it — drift is caughta 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-uniqueevery changelog/<NN>-<slug>.md has a distinct <NN>two in-flight PRs picked the same fragment number
G19 19-flow-fixture-integritybehavioural-flow fixtures have input/ + a parseable expected.md oracle naming only catalogued signatures; the scorer can score each shipped examplea fixture with no expected.md, an unparseable oracle, or a signature not in signatures.md
G20 20-plugin-filterthe skills/lib/ plugin-filter helpers extract names, apply allow/block + scope correctly, and the resolver normalises --plugins / config.jsona 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 loop

Source layout

PathRoleShips?
.claude-plugin/plugin.json (the manifest)yes
skills/orchestrator (calibrate), dispatcher (calibration), 6 flows, 9 per-feature bundlesyes
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.mdyes
agents/the 5 worker subagentsyes
rules/signatures.md + dispatch.md (path-scoped)yes
hooks/the two PreToolUse write-guards + the SessionStart workflow installeryes
docs/the rubric the plugin grades againstyes
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 fragmentsauthor-only
workflows/calibration-audit-parallel.mjs — Workflow script; installed into the project's .claude/workflows/ by the SessionStart hookyes
.claude/this repo's own project config + maintenance skills/agentauthor-only
.github/CI/release workflows + issue/PR templatesauthor-only

Where to read before editing

Editing…Read first
a calibrate-* bundleskills/CLAUDE.md + that bundle's reference.md + .claude/rules/plugin-dev.md
a pattern signaturerules/CLAUDE.md (the four-places-in-sync rule)
a worker subagentagents/CLAUDE.md
a write-guard hookhooks/CLAUDE.md
a CI gatetests/gates/CLAUDE.md
the rubric vs upstream docsrun /docs-status → /docs-update → /plugin-update (author-only skills under .claude/skills/)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.