validate-structure
Installation
SKILL.md
Validate Structure
"A plugin that does not follow the spec is not a plugin -- it is a folder with aspirations."
Validates that a Claude Code plugin's directory tree conforms to the official specification. Detects missing directories, misplaced files, naming violations, path traversal risks, and script permission issues.
Procedure
Step 1 -- Locate Plugin Root
- Search for
plugin.jsonat the provided path (official spec location). - If not found at root, check
.claude-plugin/plugin.json(legacy location). ReportINFO: plugin.json found at legacy .claude-plugin/ pathif found there. - If not found at either location, report
CRITICAL: No plugin.json found -- not a valid plugin root. - Record the plugin root path for all subsequent steps.