Validate Plugin
Validate that a plugin follows the correct Claude Code plugin format.
When to use
After creating or modifying a plugin, run validation to catch structural issues before publishing.
Checks performed
- Directory structure —
.claude-plugin/plugin.jsonexists at plugin root - plugin.json schema — required fields present (name, description, version)
- Skills — each skill in
plugin.json.skillshas a matchingskills/<name>/SKILL.md - Commands — each command in
plugin.json.commandshas a matchingcommands/<name>.md - Agents — each agent in
plugin.json.agentshas a matchingagents/<name>.md - SKILL.md frontmatter — each skill has
name,description, andallowed-tools - Agent frontmatter — each agent has
name,description, andmodel - No files in wrong locations — skills/commands/agents not inside
.claude-plugin/ - MCP tool references — tools in
allowed-toolsare validmcp__claude-flow__*identifiers
Steps
- Read the plugin's
plugin.json - For each skill, command, and agent declared, verify the file exists
- For each SKILL.md, verify frontmatter has required fields
- For each agent .md, verify frontmatter has required fields
- Report pass/fail for each check with actionable fix suggestions