agentleFS
sgaunetsgaunet/claude-plugins/.claude/skills/audit-plugins/SKILL.md

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.

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
  1. Very specific:

    Use Glob to enumerate all files to audit:

    line 16
  2. Very specific:

    Read all files matching plugins/*/agents/*.md

    line 40
  3. Distinctive:

    Description quality: Should clearly state WHEN to use the agent (shown in Claude Code UI)

    line 43
  4. Distinctive:

    Content structure: Should include role statement, proactive triggers, core capabilities, implementation patterns, deliverables

    line 45
  5. Distinctive:

    Unknown fields: Every field must appear in the official skills frontmatter spec

    line 62
  6. Very specific:

    Directory name: Must match the frontmatter name

    line 64
  7. Distinctive:

    Description quality: Should be concise, action-oriented, and state when to use the skill

    line 65
  8. Distinctive:

    Process section: Should have clear numbered steps

    line 66
  9. Distinctive:

    Output format: Should specify expected output structure

    line 67
  10. Distinctive:

    Read all manifest and config files:

    line 81
  11. Distinctive:

    Version format: Should follow semver

    line 87
  12. Distinctive:

    Description quality: Should include keywords for discoverability and list MCP servers

    line 88
  13. Distinctive:

    Completeness: Should reference all agents and skills in the plugin directory

    line 89
  14. Very specific:

    Plugin references: All plugins in plugins/ should be listed

    line 92
  15. Distinctive:

    Server declarations: Should match servers actually used in agent/skill tool lists

    line 95
  16. Distinctive:

    No orphaned files (agents/skills referenced nowhere)

    line 99

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 definitions
  • plugins/*/skills/*/SKILL.md — skill definitions
  • plugins/*/assets/** — shared skill assets (templates)
  • plugins/*/.claude-plugin/plugin.json — plugin manifests
  • .claude-plugin/marketplace.json — marketplace manifest
  • plugins/*/.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:

  1. Fetch official docs using WebFetch:
    • https://code.claude.com/docs/en/plugins-reference — extract agent frontmatter fields, required vs optional, content structure
    • https://code.claude.com/docs/en/sub-agents — extract sub-agent best practices, model selection guidance
  2. Read all files matching plugins/*/agents/*.md
  3. 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: sonnet for code/speed tasks, opus for complex analysis/docs, haiku for 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-tools should be scoped appropriately (not overly broad)
  4. Return findings with severity levels and file references

Agent 2: Skill Auditor (general-purpose, model: sonnet)

Prompt the agent to:

  1. Fetch official docs using WebFetch:
    • https://code.claude.com/docs/en/skills — extract the full SKILL.md frontmatter spec, required vs optional
    • https://code.claude.com/docs/en/plugins-reference — extract plugin skill discovery and namespacing rules
  2. Read all files matching plugins/*/skills/*/SKILL.md
  3. 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 set user-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-tools should match what the process section references
    • Supporting files: Assets referenced via ${CLAUDE_PLUGIN_ROOT} or ${CLAUDE_SKILL_DIR} must exist
  4. Return findings with severity levels and file references

Agent 3: Manifest, Structure & Ecosystem Auditor (general-purpose, model: sonnet)

Prompt the agent to:

  1. Fetch official docs using WebFetch:
    • https://docs.claude.com/en/docs/claude-code/plugins — extract plugin structure requirements, marketplace format
    • https://docs.claude.com/en/docs/claude-code/plugins-reference — extract manifest field specifications
  2. Read all manifest and config files:
    • plugins/*/.claude-plugin/plugin.json
    • .claude-plugin/marketplace.json
    • plugins/*/.mcp.json
  3. 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
  4. 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
  5. For .mcp.json, check:
    • Server declarations: Should match servers actually used in agent/skill tool lists
  6. 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)
  7. 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, invalid model value)
  • 🟠 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 color field)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.