Agent skill
skill-validator
Validates Claude skill files for correct structure, YAML frontmatter, Python imports, naming conventions, and compliance with official documentation
Install this agent skill to your Project
npx add-skill https://github.com/chaorenex1/coding-workflow/tree/main/skills/skill-validator
SKILL.md
Claude Skill Validator
This skill provides comprehensive validation for Claude Skills, ensuring all files follow official Anthropic standards and best practices. It checks structure, formatting, naming conventions, and compliance requirements.
Capabilities
- File Structure Validation: Validates presence and organization of all required skill files (SKILL.md, HOW_TO_USE.md, Python files, sample data)
- YAML Frontmatter Validation: Checks SKILL.md YAML frontmatter for correct format, kebab-case naming, and required fields
- Python Code Validation: Validates Python file imports, structure, error handling, and best practices
- Naming Convention Validation: Ensures kebab-case for skill names, snake_case for Python files, proper file extensions
- Compliance Validation: Checks against official Claude documentation standards
- Batch Processing: Validates multiple skills at once with summary reporting
- Auto-Fix Suggestions: Provides automatic fixes for common issues (renaming files, fixing YAML, etc.)
Input Requirements
Single skill validation:
- Skill folder path (local directory containing skill files)
- Optional: Specific validation focus (structure, yaml, python, naming, all)
Batch validation:
- Directory containing multiple skill folders
- Optional: Validation report format (JSON, CSV, text)
Direct file input:
- SKILL.md file path for YAML validation
- Python file path for code validation
- JSON configuration for custom validation rules
Output Formats
- Validation Report: Structured JSON with detailed findings
- Error Details: Specific error messages with file paths and line numbers
- Severity Levels: Critical, Warning, Info classifications
- Auto-Fix Suggestions: Specific commands to fix common issues
- Summary Statistics: Pass/fail counts, error distribution
- Multiple Formats: JSON, CSV, text, and markdown reports
How to Use
"Validate this skill folder for compliance with Claude standards" "Check the YAML frontmatter in this SKILL.md file" "Batch validate all skills in the skills directory and output a CSV report" "Fix the naming conventions in this skill automatically"
Scripts
validate_skill.py: Main validation orchestrator and batch processorvalidate_yaml.py: YAML frontmatter validation and auto-fixingvalidate_python.py: Python code structure and import validationvalidate_naming.py: Naming convention validation and auto-renaming
Best Practices
- Validate Early: Run validation during skill development, not just before deployment
- Batch Processing: Validate entire skill catalogs regularly to maintain consistency
- Auto-Fix First: Use auto-fix suggestions for common issues before manual intervention
- Documentation Reference: Always cross-check with official Claude documentation
- Version Control: Integrate validation into CI/CD pipelines for automated quality checks
Limitations
- Cannot validate subjective quality (content relevance, usefulness)
- Limited to structural and formatting standards
- Auto-fix may not handle complex refactoring scenarios
- Requires local file system access (cannot validate remote URLs directly)
- Python validation is syntax/import focused, not functional testing
Compliance Standards
This validator checks against:
- Official Claude Skills documentation
- YAML frontmatter specifications
- Python import and structure best practices
- File naming conventions (kebab-case, snake_case)
- Required file presence and organization
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
memex-fallback
Fallback to memex-cli when codeagent-wrapper is unavailable. Automatically converts codeagent-wrapper syntax to memex-cli stdin protocol and executes.
tdd
Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.
codex-cli-bridge
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
git-code-review
Get git records for specified users and days, perform code review for each commit, and generate detailed code review reports
component-tester
This skill should be used when the user asks to "test memex-cli", "test code-with-codex", "test ux-design-gemini", "test /multcode", "run component tests", "validate workflow components", "run integration tests", or "verify plugin functionality". Provides comprehensive testing framework for coding-workflow plugin components.
test-case-organizer
This skill should be used when the user asks to "测试用例整理", "测试整理", "organize test cases", "reorganize tests", "consolidate scattered tests", or mentions test cases scattered in business code that need to be moved to proper test directories.
Didn't find tool you were looking for?