audit-plugins
Skill16 starsChanged 2 months agoMITView on GitHub
Audit all plugins for adherence to Claude Code official best practices
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 12 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
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
Use Glob to enumerate all files to audit:
- Very specific: line 40
Read all files matching plugins/*/agents/*.md
- Distinctive: line 43
Description quality: Should clearly state WHEN to use the agent (shown in Claude Code UI)
- Distinctive: line 45
Content structure: Should include role statement, proactive triggers, core capabilities, implementation patterns, deliverables
- Distinctive: line 62
Unknown fields: Every field must appear in the official skills frontmatter spec
- Very specific: line 64
Directory name: Must match the frontmatter name
- Distinctive: line 65
Description quality: Should be concise, action-oriented, and state when to use the skill
- Distinctive: line 66
Process section: Should have clear numbered steps
- Distinctive: line 67
Output format: Should specify expected output structure
- Distinctive: line 81
Read all manifest and config files:
- Distinctive: line 87
Version format: Should follow semver
- Distinctive: line 88
Description quality: Should include keywords for discoverability and list MCP servers
- Distinctive: line 89
Completeness: Should reference all agents and skills in the plugin directory
- Very specific: line 92
Plugin references: All plugins in plugins/ should be listed
- Distinctive: line 95
Server declarations: Should match servers actually used in agent/skill tool lists
- Distinctive: line 99
No orphaned files (agents/skills referenced nowhere)
≈ “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
Audit Plugins
Scan all plugin definitions in this marketplace and compare them against official Claude Code documentation. Produce a scored audit report with prioritized findings.
Process
Step 1: Discover Plugin Structure
Use Glob to enumerate all files to audit:
plugins/*/agents/*.md— agent definitionsplugins/*/skills/*/SKILL.md— skill definitionsplugins/*/assets/**— shared skill assets (templates)plugins/*/.claude-plugin/plugin.json— plugin manifests.claude-plugin/marketplace.json— marketplace manifestplugins/*/.mcp.json— MCP server configurations
Count totals (plugins, agents, skills) for the report summary.
Step 2: Launch 3 Parallel Sonnet Agents
Launch all 3 agents concurrently using the Task tool. Each agent must first fetch the relevant official documentation via WebFetch before performing its analysis.
Agent 1: Agent & Subagent Auditor (general-purpose, model: sonnet)
Prompt the agent to:
- Fetch official docs using WebFetch:
https://code.claude.com/docs/en/plugins-reference— extract agent frontmatter fields, required vs optional, content structurehttps://code.claude.com/docs/en/sub-agents— extract sub-agent best practices, model selection guidance
- Read all files matching
plugins/*/agents/*.md - For each agent file, check:
- Frontmatter fields:
name(required),description(required),model(required, valid values: sonnet/opus/haiku),allowed-tools(recommended),color(optional),context(optional),permissionMode(optional),capabilities(optional),skills(optional) - Description quality: Should clearly state WHEN to use the agent (shown in Claude Code UI)
- Model appropriateness:
sonnetfor code/speed tasks,opusfor complex analysis/docs,haikufor fast/simple tasks - Content structure: Should include role statement, proactive triggers, core capabilities, implementation patterns, deliverables
- Proactive triggers: File patterns and keyword triggers for automatic activation
- Tool restrictions:
allowed-toolsshould be scoped appropriately (not overly broad)
- Frontmatter fields:
- Return findings with severity levels and file references
Agent 2: Skill Auditor (general-purpose, model: sonnet)
Prompt the agent to:
- Fetch official docs using WebFetch:
https://code.claude.com/docs/en/skills— extract the full SKILL.md frontmatter spec, required vs optionalhttps://code.claude.com/docs/en/plugins-reference— extract plugin skill discovery and namespacing rules
- Read all files matching
plugins/*/skills/*/SKILL.md - For each skill file, check:
- Frontmatter fields:
name(sets the invocation name for plugin skills),description(recommended),argument-hint(recommended for parameterized skills),allowed-tools(recommended),user-invocable/disable-model-invocation(invocation control) - Unknown fields: Every field must appear in the official skills frontmatter spec
- Invocation control: State-changing workflows should set
disable-model-invocation: true; background knowledge should setuser-invocable: false - Directory name: Must match the frontmatter
name - Description quality: Should be concise, action-oriented, and state when to use the skill
- Process section: Should have clear numbered steps
- Output format: Should specify expected output structure
- Tool usage: Tools listed in
allowed-toolsshould match what the process section references - Supporting files: Assets referenced via
${CLAUDE_PLUGIN_ROOT}or${CLAUDE_SKILL_DIR}must exist
- Frontmatter fields:
- Return findings with severity levels and file references
Agent 3: Manifest, Structure & Ecosystem Auditor (general-purpose, model: sonnet)
Prompt the agent to:
- Fetch official docs using WebFetch:
https://docs.claude.com/en/docs/claude-code/plugins— extract plugin structure requirements, marketplace formathttps://docs.claude.com/en/docs/claude-code/plugins-reference— extract manifest field specifications
- Read all manifest and config files:
plugins/*/.claude-plugin/plugin.json.claude-plugin/marketplace.jsonplugins/*/.mcp.json
- For each plugin.json, check:
- Required fields:
name,version,description - Version format: Should follow semver
- Description quality: Should include keywords for discoverability and list MCP servers
- Completeness: Should reference all agents and skills in the plugin directory
- Required fields:
- For marketplace.json, check:
- Required fields: name, version, plugins list
- Plugin references: All plugins in
plugins/should be listed - Version consistency: Marketplace version should be coherent with plugin versions
- For .mcp.json, check:
- Server declarations: Should match servers actually used in agent/skill tool lists
- Cross-cutting ecosystem checks:
- Correct categorization (agent vs skill — no misplaced files)
- Naming conventions consistency across all plugins
- No orphaned files (agents/skills referenced nowhere)
- Inter-agent coordination patterns (context field usage)
- Return findings with severity levels and file references
Step 3: Aggregate Results
Collect findings from all 3 agents and merge into a unified list. Deduplicate any overlapping findings.
Step 4: Prioritize and Score
- Sort findings by severity: Critical > High > Medium > Low
- Calculate scores (1-5 stars) for each category based on finding density and severity:
- 0 Critical + 0 High = 5 stars
- 0 Critical + 1-2 High = 4 stars
- 1 Critical or 3+ High = 3 stars
- 2+ Critical = 2 stars
- 3+ Critical = 1 star
Step 5: Generate Report
Report Format
# Plugin Marketplace Audit Report
## Summary
- **Plugins Analyzed**: N
- **Agents Analyzed**: N
- **Skills Analyzed**: N
- **Total Findings**: N (🔴 X Critical, 🟠 Y High, 🟡 Z Medium, 🟢 W Low)
- **Overall Score**: X/5 ⭐
## Agent Definitions [Score: X/5]
- 🔴 **CRITICAL** `plugins/foo/agents/bar.md` — [Finding description]
- Recommendation: [Actionable fix]
- 🟠 **HIGH** `plugins/foo/agents/baz.md` — [Finding description]
- Recommendation: [Actionable fix]
...
## Skills [Score: X/5]
- 🟠 **HIGH** `plugins/foo/skills/qux/SKILL.md` — [Finding description]
- Recommendation: [Actionable fix]
...
## Manifests & Structure [Score: X/5]
- 🟡 **MEDIUM** `plugins/foo/.claude-plugin/plugin.json` — [Finding description]
- Recommendation: [Actionable fix]
...
## Improvement Roadmap (Prioritized)
1. 🔴 [Most critical fix with file reference]
2. 🔴 [Next critical fix]
3. 🟠 [High priority fix]
4. 🟡 [Medium priority fix]
5. 🟢 [Low priority enhancement]
## Reference Documentation
- [Plugins Overview](https://docs.claude.com/en/docs/claude-code/plugins)
- [Plugins Reference](https://docs.claude.com/en/docs/claude-code/plugins-reference)
- [Sub-agents](https://docs.claude.com/en/docs/claude-code/sub-agents)
- [Skills](https://docs.claude.com/en/docs/claude-code/skills)Severity Levels
- 🔴 CRITICAL: Violates required fields or breaks plugin validation (e.g., missing
name, invalidmodelvalue) - 🟠 HIGH: Missing recommended fields or significant best practice violations (e.g., no
allowed-tools, poor description) - 🟡 MEDIUM: Missing optional but beneficial fields or moderate improvements (e.g., no
argument-hint, no proactive triggers) - 🟢 LOW: Minor enhancements or polish (e.g., inconsistent naming, missing
colorfield)
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.

