plugin-audit
Skill4 starsChanged 12 days agoMITView on GitHub
This skill should be used when the user asks to "audit my plugins", "check for plugin duplicates", "plugin collision check", "find duplicate skills across plugins", "which plugins overlap", or wants to know if an installed Claude Code plugin duplicates or shadows another plugin's commands/skills. Diffs enabled plugins' actual command/skill surface against each other and flags cross-namespace name collisions — e.g. a bare `workflow:brainstorm` skill in one plugin vs. `craft:brainstorm` in another. Read-only — reports findings, never disables or uninstalls a plugin itself. Do not confuse with guard-audit (branch-guard.sh rule tuning) or command-skill-token-efficiency (command-vs-skill placement within a single plugin) — this skill compares surfaces ACROSS installed plugins.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- WSmithDR/cli-plugin-templatetheir own version, first seen Oct 13, 2026
- vercel/vercel-plugintheir own version, first seen Oct 8, 2026
- kiterunner1/dsh-plugin-audittheir own version, first seen Sep 15, 2026
- crackcode09/plugin-audittheir own version, first seen Jun 4, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- vercel/vercel-plugin★ 328same name
- crackcode09/plugin-audit★ 0same name
- kiterunner1/dsh-plugin-audit★ 0same name
- WSmithDR/cli-plugin-template★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- system-architectSkill
- project-detectorSkill
- audit-routerSkill
- command-skill-token-efficiencySkill
- sync-featuresSkill
- backend-designerSkill
- devops-helperSkill
- frontend-designerSkill
- git-workflowSkill
- dist-extrasSkill
- distribution-strategistSkill
- homebrew-formula-expertSkill
- homebrew-multi-formulaSkill
- homebrew-setup-wizardSkill
- homebrew-workflow-expertSkill
- architecture-decision-recordsSkill
- changelog-automationSkill
- claude-md-lifecycleSkill
- guard-auditSkill
- hooksSkill
- insights-applySkill
- mode-controllerSkill
- drive-engineSkill
- plan-orchestratorSkill
- repo-triageSkill
- session-stateSkill
- task-analyzerSkill
- workflow-engineSkill
- orchestrator-resilienceSkill
- project-plannerSkill
- preflight-checkSkill
- releaseSkill
- test-generatorSkill
- test-strategistSkill
- adhd-workflowSkill
- brainstorm-insightsSkill
- brainstormSkill
- grillSkill
- prompt-refinerSkill
- background-task-managerSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Does not uninstall, disable, or edit any plugin, marketplace entry, or ~/.claude/settings.json key.
- Distinctive: line 17
Does not evaluate whether a plugin's *content quality* is good — only whether its surface (command/skill names) collides with another …
- Very specific: line 18
Does not require network access — everything it reads is local (~/.claude/settings.json, ~/.claude/plugins/, each plugin's own repo/cache …
- Very specific: line 79
Run this pairwise across all C(N, 2) plugin pairs.
- Distinctive: line 107
If zero collisions: report a clean audit explicitly (don't stay silent — silence reads as "didn't run" not "found nothing").
- Very specific: line 122
Negative control (must NOT be flagged): create two more throwaway directories that each define an unrelated status command with no …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Plugin Audit
Finds duplicate or colliding plugins in the current Claude Code installation — the class of finding that a one-off manual sweep is prone to miss. Grew out of a 2026-07-01 session in which a manual 60-plugin review (2026-06-29) had missed workflow@local-plugins, a standalone plugin whose commands/workflow/* fully duplicated craft's own commands/workflow/* namespace (1131 legacy lines vs. craft's 112-line thin shim, same command names). See docs/specs/SPEC-token-efficiency-and-context-tooling-2026-07-01.md Part D #3.
Why this matters
Two plugins registering the same command or skill name — or near-duplicate content under different namespaces (workflow:brainstorm vs. craft:brainstorm) — is both a token-cost problem (duplicate content loads twice) and a correctness problem (routing ambiguity: which one fires?). Manual plugin audits are infrequent and don't scale past a handful of plugins; this skill makes the surface-diff repeatable and cheap enough to run any time plugin state changes.
What this skill does NOT do
- Does not uninstall, disable, or edit any plugin, marketplace entry, or
~/.claude/settings.jsonkey. It reports; the user (or a follow-up command) acts. - Does not evaluate whether a plugin's content quality is good — only whether its surface (command/skill names) collides with another installed plugin's surface.
- Does not require network access — everything it reads is local (
~/.claude/settings.json,~/.claude/plugins/, each plugin's own repo/cache directory).
Inputs
~/.claude/settings.json—enabledPluginsobject. Keys are<plugin-name>@<marketplace-name>; only plugins with a truthy value are actually active.~/.claude/plugins/installed_plugins.json(if present) — richer per-plugin metadata (source path, marketplace, version) thansettings.jsonalone provides. Treat as supplementary, not required — some installations only havesettings.json. Schema:{"version": 2, "plugins": {"<name>@<marketplace>": [{"installPath": "...", "version": "...", ...}]}}—.pluginsis an object keyed by<name>@<marketplace>, each value an ARRAY of install records (usually one). The on-disk path field isinstallPath, notpath.- Each enabled plugin's own directory — resolve via
installed_plugins.json's recorded path, or~/.claude/plugins/marketplaces/<marketplace>/<plugin>//~/.claude/plugins/repos/...(layout varies by install method: local marketplace vs. GitHub marketplace vs. Desktop). Within that directory, the actual surface is:commands/**/*.md— each file's path (minus the.md) becomes a command name, namespaced as<plugin>:<relative-path-without-ext>(e.g.commands/brainstorm.md→<plugin>:workflow:brainstorm).skills/**/SKILL.md— eachSKILL.md's parent directory name is the skill name, namespaced the same way.
Audit procedure
Execute these steps in order.
Step 1: Enumerate enabled plugins
jq -r '.enabledPlugins | to_entries[] | select(.value == true) | .key' ~/.claude/settings.jsonCross-reference against installed_plugins.json if present, to resolve each plugin's on-disk path. .plugins is keyed by <name>@<marketplace> with an array of install records per key — take the first record's installPath:
jq -r '.plugins | to_entries[] | "\(.key) -> \(.value[0].installPath // "unknown")"' ~/.claude/plugins/installed_plugins.json 2>/dev/null \
|| echo "(installed_plugins.json not found — resolve paths manually per plugin)"Progress indicator: [1/4] Enumerate plugins .......... DONE (N enabled)
Step 2: Extract each plugin's command/skill surface
For each enabled plugin, list its command and skill basenames:
# Commands: strip .md, keep path structure as the namespaced name
find "<plugin-dir>/commands" -name '*.md' 2>/dev/null | sed -E "s#^.*/commands/##; s#\.md\$##"
# Skills: each SKILL.md's parent directory name
find "<plugin-dir>/skills" -name 'SKILL.md' 2>/dev/null | sed -E 's#/SKILL\.md$##; s#^.*/skills/##'Build one flat list per plugin of <base-name> entries (the part after the last / — this is what actually collides, since users invoke by base name or via fuzzy match, not full namespaced path).
Progress indicator: [2/4] Extract surfaces ........... DONE (N plugins, M total commands+skills)
Step 3: Cross-plugin collision detection
Compare every pair of enabled plugins' base-name lists. A raw basename intersection produces a false-positive firehose in practice — generic names (status, init, check, sync, list) legitimately recur across many unrelated plugins without being duplicates. Apply BOTH of the following filters; report a pair only if at least one fires:
- Breadth threshold (weak signals, need volume): the pair shares 3 or more basenames. A single coincidental shared word (e.g. two unrelated plugins both happen to have a
statuscommand) is NOT reported on its own — it's noise, not signal. - Structural namespace containment (strong signal, 1 match is enough): one plugin's own name/namespace (e.g.
workflow) exactly matches a subdirectory name under another plugin'scommands/orskills/tree (e.g.craft'scommands/workflow/). This is the actualworkflow@local-pluginsvs.craft:workflow:*bug pattern — one plugin's entire top-level surface duplicates a subtree of another — and it's reportable even with just one shared basename, because the containment itself is the finding, not the name overlap.
A single shared basename with NO structural containment relationship is a coincidence, not a collision — do not report it.
# Given two newline-separated basename lists, list1.txt and list2.txt:
comm -12 <(sort -u list1.txt) <(sort -u list2.txt)
# Apply the breadth threshold (>=3) OR the structural containment check above
# before treating the comm -12 output as a reportable finding.Run this pairwise across all C(N, 2) plugin pairs. For N enabled plugins this is cheap (N is typically under 100).
Progress indicator: [3/4] Collision detection ........ DONE (N collisions found)
Step 4: Report
┌───────────────────────────────────────────────────────────────┐
│ PLUGIN AUDIT REPORT │
├───────────────────────────────────────────────────────────────┤
│ Plugins enabled: N │
│ Total commands+skills surfaced: M │
│ Collisions found: K │
│ │
│ [COLLISION] "brainstorm" │
│ - workflow@local-plugins commands/brainstorm.md │
│ - craft@local-plugins commands/brainstorm.md │
│ Same base name, likely duplicate/redundant plugin. │
│ Recommendation: review workflow@local-plugins for removal │
│ (this skill does not remove it — human judgment call). │
│ │
│ [NAMESPACE OVERLAP] plugin "workflow" vs. craft's │
│ commands/workflow/* subtree (14 shared base names) │
│ Recommendation: confirm which is canonical before either │
│ plugin's commands drift further apart. │
└───────────────────────────────────────────────────────────────┘If zero collisions: report a clean audit explicitly (don't stay silent — silence reads as "didn't run" not "found nothing").
Progress indicator: [4/4] Report ...................... SHOWN (K collisions)
Detecting the target class on a synthetic fixture
To sanity-check this skill's logic without touching real installed plugins, create two throwaway directories — note the first plugin must be named workflow (not a generic placeholder) for the containment check below to actually apply, since containment compares a plugin's own directory/basename against the other plugin's subdirectory names:
/tmp/workflow/commands/brainstorm.md
/tmp/fixture-plugin-craft/commands/brainstorm.mdBoth have base name brainstorm — Step 3's comm -12 on their basename lists finds one shared basename, and fixture-plugin-craft's command lives under a workflow/ subdirectory matching the first plugin's own name (workflow) → structural containment fires → reportable, even though there's only one shared basename. This mirrors the real workflow@local-plugins vs. craft finding from 2026-07-01 without requiring a live plugin install to reproduce.
Negative control (must NOT be flagged): create two more throwaway directories that each define an unrelated status command with no structural relationship:
/tmp/fixture-plugin-c/commands/status.md
/tmp/fixture-plugin-d/commands/status.mdOne shared basename (status), no breadth (<3 shared names), no namespace containment (status isn't a subdirectory name in either plugin) → Step 3 must report zero collisions for this pair. If a run of this skill flags fixture-plugin-c vs. fixture-plugin-d, the breadth/containment filters have regressed back to the false-positive firehose this section exists to prevent.
Error Recovery
| Situation | Recovery |
~/.claude/settings.json missing or unreadable | Report the path checked, stop — cannot proceed without it |
installed_plugins.json absent | Fall back to manual/documented plugin paths; note the limitation in the report |
| A plugin's directory can't be resolved | List it as "surface unknown — skipped" rather than silently omitting it from the plugin count |
| Zero enabled plugins found | Report "no enabled plugins" rather than an empty table |
See Also
skills/code/command-skill-token-efficiency/SKILL.md— command-vs-skill placement within one plugin (a different axis: this skill compares across plugins)skills/guard-audit/SKILL.md— branch-guard rule tuning, a different config surface entirelydocs/specs/SPEC-token-efficiency-and-context-tooling-2026-07-01.mdPart D #3 — the finding and backlog item this skill implements
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.

