calibrate-plugins
Skill1 starsChanged 6 months agoMITView on GitHub
Audits installed plugins, registered marketplaces, and (when the project itself is a plugin) the local manifest at `.claude-plugin/plugin.json`. Flags manifests missing `name` or `version`, manifests that don't parse, components misplaced under `.claude-plugin/` instead of at the plugin root, plugins that use legacy `commands/` without `skills/`, duplicate marketplace registrations, and the "enabled but unused" heuristic. Also handles the `kind: create` row when a plugin needs a scaffolded manifest. Invoked by the calibration orchestrator (`/calibrate`) and standalone via `/claude-calibration:calibrate-plugins`.
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-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
5 rules. About 0 are common, 0 are distinctive, and 5 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.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 94
When the planner detects a plugin needs scaffolding (rare from this bundle — usually a companion to a kind: create row from another bundle …
- Very specific: line 99
Create the standard component dirs at the plugin root (skills/, agents/, hooks/, rules/ — only the ones you actually need).
- Very specific: line 104
After every edit or create, re-run bash <BUNDLE>/scripts/lint.sh <changed path> and record verify: ✓ if the signature no longer fires (or …
- Very specific: line 111
Every manifest must have name.
- Very specific: line 115
Don't hand-edit installed_plugins.json or known_marketplaces.json — use /plugin.
≈ “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-plugins — per-feature bundle
You audit and tune plugin manifests, plugin layouts, marketplace registrations, and the installed-plugins state file. Two entry points:
- Direct invocation (
/claude-calibration:calibrate-plugins) — audit everything, report findings, propose fixes inline. - Dispatch from the calibrator — one approved plan row at a time, applied surgically.
The workflow is the same; only the framing differs.
1. Enumerate
bash <BUNDLE>/scripts/enumerate.sh "$PROJECT_DIR"Scoping to specific plugins (optional). enumerate.sh honours the CALIBRATION_PLUGIN_FILTER
env var — an allow-list / block-list of plugin names (and an optional global/local scope). When the
user passes a --plugins <val> argument, normalise it first and export it:
PF="$(bash <BUNDLE>/../lib/resolve-plugin-filter.sh "$ARGUMENTS" "$PROJECT_DIR")"
CALIBRATION_PLUGIN_FILTER="$PF" bash <BUNDLE>/scripts/enumerate.sh "$PROJECT_DIR"--plugins foo,bar audits only those plugins, --plugins -baz audits all but baz, and
--plugins global|local restricts by install scope. With no --plugins and no
.claude/calibration/config.json, PF is empty and every plugin is enumerated (the default).
Yields TSV scope\tpath. Scopes:
installed—~/.claude/plugins/installed_plugins.json.marketplaces—~/.claude/plugins/known_marketplaces.json.cache— one row per installed plugin payload under~/.claude/plugins/cache/.self-manifest— when the project is itself a plugin, its.claude-plugin/plugin.json.self-component— sibling component dirs / files at the plugin root.self-misplaced— components found inside.claude-plugin/instead of at the plugin root.
2. Lint
bash <BUNDLE>/scripts/lint.sh <path …>Yields TSV path\tsignature\tseverity\tdetail. The signatures this bundle owns
(see reference.md):
plugin:missing-name(HIGH)plugin:missing-version(LOW)plugin:misplaced-components(HIGH)plugin:legacy-commands-only(LOW)plugin:enabled-not-used-heuristic(LOW) — best-effort, transcripts-basedplugin:duplicate-marketplaces(LOW)plugin:invalid-manifest-json(HIGH)
3. Fix — kind: edit rows
plugin:missing-name→examples/missing-name/{before,after}.mdnot shipped; the fix is trivial — add"name": "<plugin-name>"to the manifest. Name should match the directory.plugin:missing-version→examples/missing-version/{before,after}.md. Add"version": "0.1.0"and bump on each release. On git distribution every commit is implicitly a new version; explicitversionlets users pin and skill registries deduplicate.plugin:misplaced-components→ move the offending directory from.claude-plugin/<sub>to<plugin-root>/<sub>. The manifest lives in.claude-plugin/; everything else lives at the plugin root.plugin:legacy-commands-only→ migrate thecommands/entries toskills/<name>/SKILL.md. Skills load on demand and have richer frontmatter; commands are kept for backwards-compat.plugin:duplicate-marketplaces→ remove the duplicate entry fromknown_marketplaces.jsonvia/plugin(don't hand-edit the file unless you really mean it).plugin:invalid-manifest-json→ fix the JSON.python3 -m json.tool <manifest>locates the parse error.plugin:enabled-not-used-heuristic→ confirm with the user, then disable via/plugin disable <name>. Re-enable on demand.
4. Create — kind: create rows
When the planner detects a plugin needs scaffolding (rare from this bundle — usually a
companion to a kind: create row from another bundle that needs a host plugin):
- Copy
templates/plugin.json.tmplto<plugin-root>/.claude-plugin/plugin.jsonand fill in{{name}},{{description}},{{version}},{{author}},{{license}},{{keywords}}. - Create the standard component dirs at the plugin root (
skills/,agents/,hooks/,rules/— only the ones you actually need).
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
- Components live at the plugin root, never inside
.claude-plugin/. The manifest is the only thing in.claude-plugin/. - Every manifest must have
name;versionis strongly recommended (LOW today, but every commit is a new version on git distribution — explicit is better). - Plugin-shipped rules need
paths:frontmatter (enforced bycalibrate-rules, not here, but worth noting cross-bundle). - Don't hand-edit
installed_plugins.jsonorknown_marketplaces.json— use/plugin.
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.

