calibrate-general
Skill1 starsChanged 6 months agoMITView on GitHub
Use this bundle when cross-cutting calibration findings span more than one Claude Code feature. Rolls up estimated always-on context cost (CLAUDE.md + unconditional rules), nested-CLAUDE.md conflict risk, settings precedence surprises, missing `.gitignore` coverage for `CLAUDE.local.md` / `.claude/settings.local.json` / `.claude/calibration/`, and "must"/"always"/"never" rules with no enforcement hook. Always emits `general:diagnostics-ask` so the evaluator reminds the user to paste `/doctor`, `/context all`, `/skills` (press `t`), `/mcp` for exact numbers. The lint script is also the back-end for `/calibrate cost` — its TSV output is read directly by the orchestrator's cost-mode formatter. Invoked by the calibration orchestrator (`/calibrate`) and standalone via `/claude-calibration:calibrate-general`.
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-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 skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 72
If you change the wording, preserve those parse anchors.
- Very specific: line 97
After every edit, re-run bash <BUNDLE>/scripts/lint.sh "$PROJECT_DIR" and record verify: ✓ if the signature no longer fires.
≈ “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
calibrate-general — per-feature bundle (cross-cutting synthesizer)
You synthesise cross-feature findings. Unlike other bundles whose lint takes individual files,
this bundle's lint.sh takes a project directory and walks it itself — the signatures it
emits are rollups of state across many files.
You receive one of two kinds of work:
- Direct invocation (
/claude-calibration:calibrate-general) — run the synthesizer, report findings, propose fixes inline. The user drives the conversation. - Dispatch from the calibrator — one approved plan row at a time, applied surgically.
The cost-mode entry point (/calibrate cost) reads this bundle's lint.sh output directly
and formats it for the user. Keep the TSV detail format stable — see "Detail format contract"
below.
1. Enumerate
bash <BUNDLE>/scripts/enumerate.sh "$PROJECT_DIR"Yields a single row: general\t<PROJECT_DIR>. The bundle synthesises over the project itself.
2. Lint
bash <BUNDLE>/scripts/lint.sh "$PROJECT_DIR"Yields TSV path\tsignature\tseverity\tdetail. The signatures this bundle owns
(see reference.md):
general:diagnostics-ask(INFO) — always emittedgeneral:context-budget-overflow(MEDIUM)general:nested-claude-md-conflict(LOW)general:settings-precedence-surprise(LOW)general:no-gitignore-for-claude-local(LOW)general:must-rule-with-no-hook(MEDIUM)
The script always exits 0, even when findings fire. Lint output is informational, not gated.
Detail format contract
The orchestrator's cost-mode (/calibrate cost) parses the detail field of certain signatures:
general:context-budget-overflow— detail must contain the substring~Ntokens(e.g."CLAUDE.md + unconditional rules ≈ ~6200tokens").general:nested-claude-md-conflict— detail must lead with an integer (e.g."5 nested CLAUDE.md files under project root").general:must-rule-with-no-hook— detail must lead with an integer (e.g."7 always/never/must lines across CLAUDE.md and 2 rules").general:diagnostics-ask— fixed reminder text (see template).
If you change the wording, preserve those parse anchors.
3. Fix — kind: edit rows
general:context-budget-overflow→ seeexamples/context-budget-overflow/{before,after}.md. Trim CLAUDE.md aggressively, addpaths:frontmatter to language- or area-specific rules so they load on demand.general:nested-claude-md-conflict→ consolidate nested CLAUDE.md files into one root file plus path-scoped rules; or accept the structure if the nesting is genuinely scoped.general:no-gitignore-for-claude-local→ add the three patterns to.gitignore.general:must-rule-with-no-hook→ either soften the rule wording (it's a Should, not a Must) or add aPreToolUsehook that enforces it (dispatch tocalibrate-hooks).general:settings-precedence-surprise→ reconcile with the managed policy owner; this is a governance finding, not a config bug per se.general:diagnostics-ask→ informational — surface the four-diagnostics ask block in the final report.
4. Create — kind: create rows
Recurrences this bundle dispatches to its companions (per rules/dispatch.md):
general:must-rule-with-no-hook×N → calibrate-hooks scaffolds the matching enforcement hook.
5. Verify
After every edit, re-run bash <BUNDLE>/scripts/lint.sh "$PROJECT_DIR" and record verify: ✓
if the signature no longer fires.
Hard rules
- The lint script MUST always exit 0.
- The lint script MUST always emit
general:diagnostics-askat least once. - Detail-field parse anchors (
~Ntokens, leading integer) MUST be preserved across edits — the cost-mode formatter keys on them.
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.

