Validate automatically validates AI assistant code plugin structure, schemas, and compliance when user mentions validate plugin, check plugin, or plugin errors. runs comprehensive validation specific to AI assistant-code-plugins repository standards. Use when validating configurations or code. Trigger with phrases like 'validate', 'check', or 'verify'.
73
68%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./plugins/examples/jeremy-plugin-tool/skills/plugin-validator/SKILL.mdValidates Claude Code plugin structure, JSON schemas, frontmatter format, security compliance, and marketplace catalog consistency. Runs the same checks as the CI pipeline to catch issues before committing.
.claude-plugin/marketplace.extended.jsonjq installed for JSON validation (jq empty <file>)grep and find available on PATH for pattern scanning./scripts/validate-all-plugins.sh available at the repository root.claude-plugin/ subdirectory.${CLAUDE_SKILL_DIR}/references/validation-checks.md):
.claude-plugin/plugin.json present and valid JSON.README.md present and non-empty.LICENSE file present.commands/, agents/, skills/, hooks/, or mcp/).plugin.json schema:
name (kebab-case), version (semver x.y.z), description, author.name, author.email, license, keywords (array, minimum 2).name, version, description, author, repository, homepage, license, keywords).commands/*.md): require name, description, model (one of sonnet, opus, haiku).agents/*.md): require name, description, model.skills/*/SKILL.md): require name, description; allowed-tools optional but validated against the allowed tools list if present.${CLAUDE_SKILL_DIR}/references/validation-checks.md for the complete structure diagram)..sh files and verify they have execute permission. Report any that lack it with a fix command.marketplace.extended.json.plugin.json and the catalog entry.${CLAUDE_PLUGIN_ROOT} instead of hardcoded absolute paths (/home/, /Users/).${CLAUDE_SKILL_DIR}/references/validation-report-format.md.A structured validation report containing:
| Error | Cause | Solution |
|---|---|---|
| Plugin directory not found | Incorrect path provided | Verify path matches plugins/[category]/[name]/ and the directory exists |
jq parse error on JSON | Malformed JSON in plugin.json or catalog | Run jq empty <file> to locate the syntax error line |
| Frontmatter parse failure | Missing --- delimiters or invalid YAML | Ensure YAML frontmatter is enclosed in --- lines with valid key-value pairs |
| Version mismatch | plugin.json and marketplace.extended.json carry different versions | Update the stale version to match; run pnpm run sync-marketplace |
| Scripts not executable | .sh files missing execute permission | Run chmod +x <script> for each flagged file |
| Disallowed fields in plugin.json | Extra fields beyond the allowed set | Remove disallowed fields; only name, version, description, author, repository, homepage, license, keywords are permitted |
Validate a specific plugin:
Trigger: "Validate the skills-powerkit plugin."
Process: Run all 10 validation checks against plugins/community/skills-powerkit/. Identify 2 failures (script permissions, version mismatch). Provide fix commands: chmod +x scripts/*.sh and version update instruction. Report overall: FAILED (see ${CLAUDE_SKILL_DIR}/references/examples.md).
Pre-commit readiness check: Trigger: "Check if my plugin is ready to commit." Process: Detect the plugin from working directory context. Run comprehensive validation including marketplace compliance. Report PASSED or list blocking issues with fixes.
Debug CI failures:
Trigger: "Why is my plugin failing CI?"
Process: Run the same validation checks that CI executes (validate-all-plugins.sh). Identify the exact failure (e.g., disallowed field in plugin.json). Provide the fix command and verify the fix resolves the issue.
${CLAUDE_SKILL_DIR}/references/validation-checks.md -- complete list of all 10 validation categories with specific checks${CLAUDE_SKILL_DIR}/references/validation-report-format.md -- report template with pass/fail formatting${CLAUDE_SKILL_DIR}/references/examples.md -- validation scenario walkthroughs${CLAUDE_SKILL_DIR}/references/errors.md -- error handling patterns3e83543
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.