Validate skill structure and configuration
Validates Claude Code skill structure, configuration, and compliance with best practices.
/plugin marketplace add syfyufei/skill-squared/plugin install skill-squared@skill-squared-marketplacecommands/Use the skill-squared skill to validate a Claude Code skill's structure, configuration, and compliance with best practices.
Ask the user for the following information if not already provided:
Skill directory:
Skill name (optional):
Call the Python handler to validate the skill:
from handlers import validate_skill
payload = {
'skill_dir': '[user-provided skill directory]',
'skill_name': '[user-provided or None for auto-detect]'
}
result = validate_skill(payload)
The validation checks for:
Organize the output by category:
ERRORS (Red/Critical):
WARNINGS (Yellow/Advisory):
INFO (Green/Success):
SUMMARY:
User: "Validate my skill"
Assistant: "I'll validate your skill structure. What's the skill directory?"
User: "/Users/me/skills/my-awesome-skill"
Assistant: [Calls validate_skill handler]
Assistant: "Validation Results for my-awesome-skill
INFO: ✓ Validating skill at: /Users/me/skills/my-awesome-skill ✓ Detected skill name: my-awesome-skill ✓ Found: .claude-plugin/marketplace.json ✓ Found: .claude-plugin/plugin.json ✓ Found: skills/my-awesome-skill.md ✓ Found: install.sh ✓ Found: README.md ✓ Valid JSON: .claude-plugin/marketplace.json ✓ Valid JSON: .claude-plugin/plugin.json ✓ Frontmatter field 'name': my-awesome-skill ✓ Frontmatter field 'description': An awesome skill for Claude Code ✓ Executable: install.sh ✓ Found 4 slash command(s) ✓ Command process: Process data and generate insights ✓ Command analyze: Analyze results ✓ Command export: Export to various formats ✓ Command help: Show usage help
WARNINGS: ⚠ No warnings
ERRORS: ✗ No errors
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ RESULT: ✅ VALIDATION PASSED
Your skill structure is valid and ready to use!
Next steps:
Assistant: "Validation Results for broken-skill
INFO: ✓ Validating skill at: /Users/me/skills/broken-skill ✓ Detected skill name: broken-skill
ERRORS: ✗ Required file missing: .claude-plugin/marketplace.json ✗ Required file missing: skills/broken-skill.md ✗ Invalid JSON in .claude-plugin/plugin.json: Expecting ',' delimiter: line 8 column 3 (char 145)
WARNINGS: ⚠ File not executable: install.sh (run: chmod +x install.sh) ⚠ No slash commands directory (.claude/commands/)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ RESULT: ❌ VALIDATION FAILED (3 errors, 2 warnings)
Please fix the errors above before using this skill.
Suggested fixes:
Required Files:
JSON Syntax:
Skill Definition:
Permissions:
Commands: