audit-plugins · git:20260924.72c544d · 2026-09-24 · sha256 4b9f4e17f2206942

audit-plugins git:20260924.72c544dA

Immutable. This exact content never changes and is served at /api/v1/blob/4b9f4e17f2206942.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_cszasduwcapf55do/4b9f4e17f220694240d83b6551b333a6c3d149d00841ea4bac604813fa5bb19b.json

Then /plugin install audit-plugins@markdownregistry-cszasduwcapf55do in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: audit-plugins
description: Audit all plugins for adherence to Claude Code official best practices
user-invocable: true
allowed-tools: Read, Grep, Glob, Bash(find:*), Bash(wc:*), Task, WebFetch
---

# 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

```markdown
# 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)