/marketplace-dev:plugin-audit [plugin-dir] [--fix]from marketplace-dev
Audits structural compliance of any Claude Code plugin: agent type, frontmatter, eval coverage, and line-count budgets. Use when adding/modifying agents or skills, scaffolding a new plugin, or before a migration PR.
Ships in marketplace-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Role: orchestrator. Mechanical, deterministic structural compliance — pattern
matching against the plugin contract. This is the generalized successor to
dev-team's internal agent-audit, scoped to architectural decisions only.
| In scope (this skill) | Out of scope |
|---|---|
| Agent type appropriateness (markdown vs script) | Detection-logic quality (→ the plugin's own agent-eval) |
| Frontmatter compliance | Shipping hygiene / ${CLAUDE_PLUGIN_ROOT} ref resolution |
| Eval coverage presence | Shell portability (bash 3.2 / BSD / Git Bash) |
| Body line-count budgets | Catalog/version sync (→ release-please config) |
Architecture only. Do not evaluate whether a detector is good — only whether the unit is the right type, well-formed, covered, and within budget.
plugins/dev-team, an agent-registry.md, or a .claude/docs/eval-system.md.--fix applies minimal structural fixes (insert missing sections/fields
from templates). Never rewrite existing content.Parse $ARGUMENTS:
plugins/*/ exists, use it; if several, list them and
ask which to audit; if the cwd is itself a plugin dir (.claude-plugin/plugin.json
present), use it.--fix → after the report, apply fixes for FAIL/WARN items.Let PLUGIN = the resolved dir, NAME = its .claude-plugin/plugin.json name.
Eval fixtures are expected at the repo-root sibling evals/<NAME>/ (never shipped
inside PLUGIN); accept evals/<NAME>/fixtures/ or flat evals/<NAME>/ layouts.
$PLUGIN/agents/*.md)For every agent file:
name and description are the sole required
fields. Run
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate_agent_contract.py <file>
and fold every error into FAIL and every warning into WARN in this
table — this covers required-field presence, name pattern, enum
membership on any field present (model, effort, permissionMode,
memory, isolation, color, background, maxTurns), unknown-key
warnings, and the plugin-ignored-field warning (hooks/mcpServers/
permissionMode are inert for plugin-supplied agents). There is no
separate hand-rolled effort check — a plugin's own convention (e.g.
dev-team's effort: high on every agent) is that plugin's local
preference, not a requirement this generalized gate enforces.description — the value must not contain : (breaks
argument-hints). FAIL on a colon.## Skills heading, tools:
must include Skill. FAIL otherwise.${CLAUDE_PLUGIN_ROOT}/knowledge/agent-type-decision-rules.md and classify
the file by its observable behavior (the same R1–R10 walk as
/agent-type-advisor's retrospective mode). A CHANGE verdict is a WARN with
the cited rule IDs; a KEEP is PASS. (For a deeper, dispatched review, the
user can run the plugin-best-practices-review agent separately.)"status": "pass|warn|fail|skip") must declare the output schema
(status, issues, summary), severity definitions, a ## Skip section,
and Context needs:. WARN on any missing.You are… body) over
75 → WARN.$PLUGIN/skills/*/SKILL.md)name, description (no colon), and role present. FAIL
on missing name/description; WARN on missing role.##/###
steps or a ## Steps section). FAIL if absent.user-invocable: true)
declares its arguments (argument-hint or an arguments section). WARN if
missing.For every review agent found in Step 2, check that at least one fixture
references it under evals/<NAME>/. WARN (not FAIL) when a review agent has no
fixture — eval authoring is a follow-up, but the gap must be visible.
# Plugin Audit — <NAME> (<PLUGIN>)
## Agents
| Agent | Frontmatter | No-Colon Desc | Skills-Tool | Type | Review Shape | Body Budget | Status |
| --- | --- | --- | --- | --- | --- | --- | --- |
## Skills
| Skill | Frontmatter | Steps | Arguments | Concise | Status |
| --- | --- | --- | --- | --- | --- |
## Eval coverage
| Review agent | Fixture under evals/<NAME>/ | Status |
| --- | --- | --- |
## Summary
- Agents: N OK, N WARN, N FAIL
- Skills: N OK, N WARN, N FAIL
- Eval coverage: N covered, N gaps
- Action items: <list>
A clean plugin reports zero findings (every cell PASS / N/A). That is the bar
/scaffold-plugin output and a migrated skill must clear.
--fix is passed)Without --fix, list action items and stop. With --fix, apply minimal
structural fixes and re-verify each:
## Skip → insert the skip stub before ## Detect.description → rewrite the value to remove colons (use –/and).## Skills without Skill in tools → append , Skill to the tools: line.After each fix: re-read the file, re-run the specific check, report
FIXED: <unit> — <what>. Type mismatches (Step 2.4) are never auto-fixed —
converting markdown↔script is a human decision; report them as action items.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bdfinst/agentic-dev-team --plugin marketplace-dev10 skills in this plugin
/add-pluginInstall a Claude Code plugin and register it in settings.json so the full team can replicate the install. Use this whenever adding a new plugin to the project — it keeps settings.json in sync with what is actually installed./agent-addCreate a new Claude Code agent file (review or team type) following the official sub-agent schema and token-efficiency budgets. Use when the user wants to add a new review agent, detect a new category of code issue, create a team agent persona, or says things like "add an agent for X", "create a reviewer for Y", "new team agent for Z". Also use when given a URL to a coding standard that should become a review agent./agent-createCreate new Claude Code sub-agent files following the official schema and token-efficiency budgets. Handles both review agents (JSON output, read-only tools, ≤ 40-line body) and team agents (prose output, action tools, ≤ 75-line body). Use when the user says "add an agent", "create a reviewer for X", "new team agent for Y", or when /agent-add is invoked. Validates against /plugin-audit before writing. Updates the agent registry and plugin CLAUDE.md after success, and the repo's model/effort decision log when it has one./agent-removeRemove an agent from the system — deletes the agent file, cleans up all registry entries, removes cross-references, and updates documentation. Use when the user says "remove the X agent", "delete X-review", "retire the X role", or "we no longer need X". Handles both team agents and review agents. Always confirms before deleting./agent-skill-authoringConventions, anti-patterns, and meta-patterns for writing skills (and the shared agent/skill philosophy). Use when creating or editing a SKILL.md file, or when reviewing the agent-vs-skill separation. For the procedural workflow that generates a new agent file, use the agent-create skill (invoked by /agent-add)./agent-type-advisorRecommend whether a plugin capability should be a markdown (LLM-interpreted) unit or a deterministic script. Use when designing a new agent/skill ("should this be markdown or a script?"), or when auditing an existing agent/skill file for a type mismatch. Accepts either a prose use-case description (forward- looking, new unit) or a path to an existing agent/skill file (retrospective).Other plugins' skills for the same job