| name | plugin-validator |
| description | Validate Claude Code plugin structure, schemas, and component correctness. Use when validating plugins, checking plugin.json, or debugging plugin issues. |
Plugin Validator
Validate Claude Code plugin structure, manifest schema, and all component files to ensure compliance with official requirements.
When to Use
- Validating complete plugin structure
- Checking plugin.json manifest
- Debugging plugin loading issues
- Before publishing plugins
- After creating/modifying components
What This Skill Validates
Plugin structure:
.claude-plugin/plugin.jsonexists and is valid- Required directories present
- File organization correct
Manifest (plugin.json):
- Valid JSON syntax
- Required fields present
- Field types correct
- Paths are relative
Components:
- Skills have valid SKILL.md
- Agents have proper frontmatter
- Commands follow format
- Hooks configuration valid
- MCP config correct
Instructions
Run Validation Script
python scripts/validate_plugin.py /path/to/plugin
The script checks all aspects and reports errors/warnings.
Fix Common Issues
Invalid plugin.json:
- Check JSON syntax
- Verify required
namefield - Ensure paths start with
./
Component errors:
- Skills: Run validate_skill.py on each
- Agents: Check YAML frontmatter
- Commands: Verify frontmatter format
- Hooks: Validate JSON syntax
Directory structure:
- Ensure
.claude-plugin/at root - Component dirs at plugin root
- No components inside
.claude-plugin/
Validation Checklist
-
.claude-plugin/plugin.jsonexists - plugin.json has valid JSON
- Required
namefield present - Name uses kebab-case
- All custom paths are relative
- Skills have valid SKILL.md files
- Agents have proper frontmatter
- Commands follow format
- Hooks JSON is valid
- MCP config is valid
- No absolute paths
- Scripts are executable
Quick Validation
For quick checks without running script:
Check plugin.json:
cat .claude-plugin/plugin.json | jq .Verify structure:
ls -la # Should show .claude-plugin/, commands/, agents/, etc.Test loading:
claude --debug # Install plugin and check logs