Skill Linter
by @mengbin92
Analyze and validate SKILL.md files for best practices, common issues, and improvement suggestions. Use when reviewing a Skill, creating a new Skill, or when...
clawhub install skill-linterπ About This Skill
name: skill-linter description: Analyze and validate SKILL.md files for best practices, common issues, and improvement suggestions. Use when reviewing a Skill, creating a new Skill, or when asked to check/audit/improve a SKILL.md file. allowed-tools: Read, Edit, Write
Skill Linter & Advisor
Analyze SKILL.md files against Claude Code Skills best practices and provide actionable feedback.
Analysis Process
1. Read the SKILL.md file - Load the complete content 2. Parse frontmatter - Validate YAML structure and required fields 3. Check content structure - Verify best practices for the markdown body 4. Compare against patterns - Match against known good Skill patterns 5. Generate report - Provide structured feedback with severity levels
Validation Checklist
Frontmatter (YAML Header)
| Check | Severity | Description |
|-------|----------|-------------|
| Has --- delimiters | π΄ Critical | Must have opening and closing --- |
| Valid YAML syntax | π΄ Critical | YAML must parse without errors |
| Has name field | π‘ Warning | Defaults to directory name, but explicit is better |
| Has description | π΄ Critical | Required for auto-trigger to work |
| Description quality | π‘ Warning | Should be specific, mention when to use |
| disable-model-invocation | π’ Info | Only set if you want manual-only |
| user-invocable | π’ Info | Set to false to hide from / menu |
| allowed-tools | π‘ Warning | Specify if Skill needs specific tools |
| model override | π’ Info | Only if you need specific model |
| context: fork | π’ Info | Use for long-running or isolated tasks |
| agent with context | π’ Info | Required when context: fork |
Content Structure
| Check | Severity | Description | |-------|----------|-------------| | Has clear title/heading | π‘ Warning | First line should indicate purpose | | Has process/steps | π‘ Warning | Skills should have actionable steps | | Has output format | π‘ Warning | Define expected output structure | | Uses specific language | π‘ Warning | Avoid vague terms like "etc", "etc." | | Has examples | π’ Info | Concrete examples improve reliability | | Has constraints/guardrails | π’ Info | Define what NOT to do | | Appropriate length | π‘ Warning | Too short (<100 words) or too long (>2000) |
Common Issues
| Issue | Severity | Fix |
|-------|----------|-----|
| Missing description | π΄ Critical | Add description explaining when to trigger |
| Description too vague | π‘ Warning | Be specific about use cases |
| No clear output format | π‘ Warning | Add expected output structure |
| Missing tool declarations | π‘ Warning | Add allowed-tools if using tools |
| Too many responsibilities | π‘ Warning | Split into multiple focused Skills |
| Hardcoded paths | π‘ Warning | Use variables or relative paths |
| No error handling guidance | π’ Info | Add what to do when things go wrong |
Output Format
# Skill Analysis ReportFile: {filepath}
Frontmatter Analysis
| Field | Status | Value | Notes |
|-------|--------|-------|-------|
| name | β
/β οΈ/β | {value} | {feedback} |
| description | β
/β οΈ/β | {value} | {feedback} |
| ... | | | |
Frontmatter Score: X/10
Content Analysis
| Check | Status | Notes |
|-------|--------|-------|
| Has clear purpose | β
/β οΈ/β | {feedback} |
| Actionable steps | β
/β οΈ/β | {feedback} |
| Output format defined | β
/β οΈ/β | {feedback} |
| Has examples | β
/β οΈ/β | {feedback} |
| Appropriate length | β
/β οΈ/β | {word_count} words |
Content Score: X/10
Issues Found
#### π΄ Critical (Must Fix)
1. {issue description} β {fix suggestion}
#### π‘ Warnings (Should Fix)
1. {issue description} β {fix suggestion}
#### π’ Suggestions (Nice to Have)
1. {issue description} β {fix suggestion}
Overall Assessment
Total Score: X/10
Verdict:
β
Excellent - Ready to use
π‘ Good - Minor improvements suggested
β οΈ Needs Work - Address warnings before using
β Critical Issues - Must fix before using Recommended Actions
1. {action item}
2. {action item}
3. {action item}
Improved Version (Optional)
If significant improvements are needed, provide a rewritten SKILL.md:
yaml
improved frontmatter
Improved content...
Skill Patterns Reference
Pattern 1: Checklist/Task Skill
For: Code review, testing, validation tasksStructure:
Pattern 2: Generator Skill
For: Documentation, commit messages, reportsStructure:
Pattern 3: Explorer/Research Skill
For: Code exploration, debugging, analysisStructure:
Pattern 4: Workflow Skill
For: Multi-step processes, releases, deploymentsStructure:
Examples of Good Descriptions
β Good:
β Bad:
Examples of Good Output Formats
β Good:
## Output FormatStructure your review as:
Summary
[One-paragraph overall assessment]
Critical Issues
[Must fix before merging]
Approved?
[YES / NO / YES WITH CONDITIONS]
β Bad:
Just give me a review of the code.