calibrate-skills
Skill1 starsChanged 6 months agoMITView on GitHub
Audits every `SKILL.md` across user / project / plugin-self / plugin-cache. Flags missing or vague frontmatter (`name`, `description`), descriptions that bust the 1,536-char routing budget, bodies over 500 lines, side-effecting verbs (deploy / commit / push / publish / release / delete / post) without `disable-model-invocation: true`, overlapping descriptions that confuse Claude's routing, over-broad `allowed-tools` (bare `Bash` / `Edit` / `Write`), and bare-CLI invocations that should be promoted to a 4-layer wrapper skill. Also scaffolds the wrapper skill when a `skill:cli-not-wrapped` or `mcp:no-skill-pair` recurrence fires. Invoked by the calibration orchestrator (`/calibrate`) and standalone via `/claude-calibration:calibrate-skills`.
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-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
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 81
When the planner detects a recurrence that this bundle owns (per rules/dispatch.md):
- Very specific: line 92
After every edit or create, re-run bash <BUNDLE>/scripts/lint.sh <changed path> and record verify: ✓ if the signature no longer fires (or …
- Distinctive: line 103
Don't reformat unrelated content when applying a fix.
≈ “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-skills — per-feature bundle
You audit and tune SKILL.md files. You receive one of two kinds of work:
- Direct invocation (
/claude-calibration:calibrate-skills) — audit everything, report findings, propose fixes inline. The user drives the conversation. - Dispatch from the calibrator — one approved plan row at a time, applied surgically.
In both cases the workflow is the same; only the framing differs.
1. Enumerate
bash <BUNDLE>/scripts/enumerate.sh "$PROJECT_DIR"Yields TSV scope\tpath. Scope is user (~/.claude/skills/**/SKILL.md), project
($PROJECT/.claude/skills/**/SKILL.md), or plugin-self ($PROJECT/skills/**/SKILL.md when
the project itself is a plugin, plus plugin-cache best-effort).
The plugin-self (cached + project-plugin) rows honour the CALIBRATION_PLUGIN_FILTER env var, so
a calibration run scoped with /calibrate --plugins … only audits the requested plugins' skills.
2. Lint
bash <BUNDLE>/scripts/lint.sh <path …>Yields TSV path\tsignature\tseverity\tdetail. The signatures this bundle owns
(see reference.md):
skill:missing-name(HIGH)skill:missing-description(HIGH)skill:description-over-1536(MEDIUM)skill:vague-description(MEDIUM)skill:body-over-500(MEDIUM)skill:side-effecting-no-dmi(HIGH)skill:overlap(MEDIUM)skill:allowed-tools-broad(LOW)skill:name-over-64(HIGH)skill:cli-not-wrapped(LOW)skill:in-repo-only-ok(INFO)
3. Fix — kind: edit rows
For each finding, the remediation pattern is in examples/<case>/:
skill:missing-name/:missing-description→ add the frontmatter field.skill:description-over-1536→ trim the description; move detail into the body orreference.md.skill:vague-description→ rewrite to include routing words ("use when", "after", "before").skill:body-over-500→ split intoSKILL.md(workflow) +reference.md(detail).skill:side-effecting-no-dmi→ adddisable-model-invocation: trueso Claude can't auto-fire a destructive workflow.skill:overlap→ reconcile descriptions; rename or merge the overlapping skills.skill:allowed-tools-broad→ narrow to scoped permissions (Bash(gh *)not bareBash).skill:name-over-64→ rename to ≤ 64 chars (Claude hard-caps the field).skill:cli-not-wrapped→ seeexamples/cli-not-wrapped/: add scopedBash(<tool> *)toallowed-toolsanddisable-model-invocation: true. Recurrence for the same CLI promotes to a new wrapper skill (usestemplates/cli-wrapper.tmpl).skill:in-repo-only-ok→ informational; no action.
4. Create — kind: create rows
When the planner detects a recurrence that this bundle owns (per rules/dispatch.md):
skill:cli-not-wrapped×N for the same CLI → 3→4-layer promotion. Scaffold a wrapper skill at.claude/skills/<cli>-wrapper/SKILL.mdusingtemplates/cli-wrapper.tmpl.mcp:no-skill-pair×N for the same server → scaffold an MCP wrapper skill at.claude/skills/<server>-wrapper/SKILL.mdusingtemplates/mcp-wrapper.tmpl.
Both templates include disable-model-invocation: true and narrow allowed-tools by default.
5. Verify
After every edit or create, re-run bash <BUNDLE>/scripts/lint.sh <changed path> and record
verify: ✓ if the signature no longer fires (or verify: ✗ <signature> if it still does).
Hard rules
- Side-effecting skills MUST have
disable-model-invocation: true— Claude must never auto-fire a deploy / commit / publish workflow. allowed-toolsis narrow by default. BareBash/Edit/Writeis a code-smell.description+when_to_usecombined must stay under 1,536 chars (Claude's routing budget).name≤ 64 chars (hard cap).- Body ≤ ~500 lines; reference belongs in
reference.md. - Don't reformat unrelated content when applying a fix.
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.

