skill-check
Scannednpx machina-cli add skill olgasafonova/SkillCheck-Free/skill-check --openclawSkillCheck (Free)
Check skills against Anthropic guidelines and the agentskills specification. This file contains Free tier validation rules.
Want deeper analysis? Upgrade to Pro for anti-slop detection, security scanning, token optimization, WCAG compliance, and enterprise checks.
Prerequisites
- Any AI assistant with file Read capability (Claude Code, Cursor, Windsurf, Codex CLI)
- Works on any platform (Unix/macOS/Windows)
- No special tools required (Read-only)
How to Check a Skill
- Locate: Find target SKILL.md file(s)
- Read: Load the content
- Validate: Apply each rule section below
- Report: List issues found with severity and fixes
Free Tier Validation Rules
Apply these checks in order. Each subsection defines patterns to match and issues to flag.
1. Frontmatter Structure
Every SKILL.md must start with YAML frontmatter between --- markers.
Required Fields
| Field | Required | Rules |
|---|---|---|
name | Yes | Lowercase, hyphens only, 1-64 chars, no reserved words |
description | Yes | WHAT + WHEN pattern, 1-1024 chars |
Frontmatter Security
Check 1.9-xml-in-frontmatter (Critical): Frontmatter values must not contain XML angle brackets (< or >). Frontmatter appears in Claude's system prompt; angle brackets could enable prompt injection.
Detection: Scan all frontmatter string values (name, description, compatibility, etc.) for < or > characters.
Fix: Remove angle brackets from frontmatter. Use plain text descriptions. Markdown formatting and XML tags are fine in the SKILL.md body.
Optional Fields (Spec)
Fields defined in the agentskills.io specification:
| Field | Purpose |
|---|---|
license | License name or reference to bundled license file |
allowed-tools | Tools the skill can use (space-separated or YAML list) |
compatibility | Platform compatibility info (max 500 chars) |
metadata | Additional key-value pairs |
Claude Code Extensions
Recognized by Claude Code but not part of the agentskills.io spec. Other agents may ignore these fields.
| Field | Purpose |
|---|---|
category | Skill domain(s) for discovery and filtering |
model | Override model (claude-*-YYYYMMDD format) |
context | Run context ("fork" for sub-agent) |
agent | Agent type when context: fork |
hooks | Lifecycle hooks (PreToolUse, PostToolUse, Stop) |
user-invocable | Show in slash menu (default: true) |
disable-model-invocation | Manual-only skill |
Community Extensions
Not part of any spec. Used by community tools and registries.
| Field | Purpose |
|---|---|
type | Skill type indicator |
author | Skill author |
date | Creation/update date |
argument-hint | Hints for skill arguments |
Category Validation
Note:
categoryis a Claude Code extension, not part of the agentskills.io spec. Do not flag a missing category field. Only validate format if present.
Format: String or array of strings, lowercase letters, numbers, and hyphens only.
Pattern: ^[a-z][a-z0-9-]*[a-z0-9]$ (same rules as skill name)
Common categories: development, productivity, data, automation, writing, design, security, devops, api, testing, documentation, legal, financial, marketing, ai-ml
Name Validation
Pattern: ^[a-z][a-z0-9-]*[a-z0-9]$
Naming suggestions: Avoid generic terms that don't describe what the skill does: helper, utils, tools, misc, stuff, things, manager, handler. Product-specific terms (claude, anthropic, mcp) are allowed but may limit portability across agents.
Description Validation
Must contain:
- WHAT: Action verb explaining what skill does
- WHEN: Trigger phrase for when to use it
- Key capabilities (recommended): Specific tasks or file types handled
Recommended structure: [What it does] + [When to use it] + [Key capabilities]
Action verbs: Create, Generate, Build, Convert, Extract, Analyze, Transform, Process, Validate, Format, Export, Import, Parse, Search, Find
WHEN triggers: "Use when", "Use for", "Use this when", "Invoke when", "Activate when", "Triggers on", "Auto-activates", "Run when", "Applies to", "Helps with"
<example type="valid"> description: Generate weekly reports from Azure DevOps data. Use when user says "weekly update" or asks for stakeholder summaries. </example> <example type="valid"> description: Helps with code review workflows for Pull Requests. </example> <example type="invalid"> description: A tool for reports. reason: no WHAT verb, no WHEN trigger </example>allowed-tools Validation
Both space-separated and YAML list formats are valid:
<example type="valid"> allowed-tools: Read Glob Bash </example> <example type="valid"> allowed-tools: - Read - Glob - Bash </example> <example type="invalid"> allowed-tools: Read, Glob, Bash reason: comma separation is deprecated; use spaces or YAML list </example>Directory Structure Validation
Skills can include optional subdirectories per the agentskills spec:
| Directory | Purpose | Validation |
|---|---|---|
references/ | Additional docs (REFERENCE.md, etc.) | Files should be .md format |
scripts/ | Executable code (Python, Bash, JS) | Should have execute permissions |
assets/ | Static resources (templates, data) | No validation required |
Check 1.10-readme-in-folder (Warning): Skill folder must not contain a README.md file. All documentation goes in SKILL.md or references/. For GitHub distribution, place the README at the repo root, outside the skill folder.
Detection: Use Glob to check if {skill-dir}/README.md exists.
Skill path formats supported:
- Standard:
~/.claude/skills/{skill-name}/SKILL.md - Namespaced:
~/.claude/skills/{namespace}/{skill-name}/SKILL.md
Namespace support: Namespaces allow organizing skills by source (personal, team, project):
~/.claude/skills/internal/weekly-reports/SKILL.md~/.claude/skills/shared/code-review/SKILL.md
Directory name must match skill name: The parent directory name must exactly match the name field in frontmatter.
Anti-Pattern Format Lint
Check 2.8-antipattern-format (Suggestion): When a skill documents anti-patterns (sections with headers matching "anti-pattern", "what not to do", "avoid", "common mistakes", "bad practices", "pitfalls"), the content should use structured formats (tables or bullet lists) rather than wall-of-text prose.
Fires when:
- Anti-pattern section has a long prose line (100+ chars) containing don't/avoid/never
- Anti-pattern section has 3+ prose lines with 3+ avoidance directives
Does NOT fire when:
- Section already uses tables (
| col | col |) or bullet lists (- item) - Section header doesn't match anti-pattern keywords
| Don't | Do Instead |
|---|---|
| Use globals | Pass parameters |
| Skip tests | Write unit tests |
You should avoid using global variables because they create hidden dependencies and you should never skip error handling because it leads to silent failures in production and makes debugging very difficult.
reason: Wall-of-text prose; restructure as table or bullet list </example>
2. Naming Quality
Names should be descriptive compounds, not single words.
<example type="invalid"> name: generator reason: too generic, what does it generate? </example> <example type="valid"> name: pdf-report-generator </example>Length Guidelines: Minimum 3 chars, optimal 10-30 chars, maximum 64 chars.
3. Semantic Checks
Validate logical consistency and clarity of skill instructions.
Contradiction Detection
Flag conflicting instructions that simultaneously require and forbid the same action.
Ambiguous Terms
Flag vague language that should be more specific. Terms like "multiple items" or "correct settings" lack precision. Use exact counts or specific criteria instead.
Exceptions (not flagged):
- Terms inside code blocks or blockquotes
- Content in example/usage/pattern sections
- Before/After and Good/Bad comparison lines
- Terms followed by qualifiers (e.g., "some specific files")
Output Format Specification
Skills that mention output should specify format with concrete examples.
Detection:
- Skill mentions "output/returns/produces" without
## Outputsection - Has output section but lacks code blocks, JSON, or tables
Returns JSON:
{
"status": "success",
"items": ["a", "b", "c"]
}
</example>
<example type="invalid">
## Output
Returns the processed data.
reason: No concrete format example </example>
Wisdom/Platitude Detection
Check 4.6-wisdom-platitude (Suggestion): Detects generic advice ("wisdom") that lacks actionable content. Skills should contain concrete instructions, not motivational prose.
Three detection layers:
- Opener patterns: Lines starting with wisdom phrases like "Remember that", "It's important to", "Keep in mind that", "Think about", "Never forget that", "Always keep in mind", "Consider the importance of"
- Platitude structures: Mid-line "[noun] is essential/crucial/important to [noun]" patterns
- Vague imperatives: "Ensure quality", "maintain standards", "strive for best practices"
Exceptions (not flagged):
- Content inside code blocks or blockquotes
- Content in example/usage/pattern sections
- Before/After and Good/Bad comparison lines
reason: Generic advice; replace with specific, actionable directives </example>
<example type="valid"> Run golangci-lint before committing. Write at least one test per exported function. Set timeout to 30 seconds for HTTP requests. </example>Misplaced Routing Content
Check 4.4: Body contains trigger conditions that belong in the description field.
Detection: Body contains a heading matching ## When to Use or ## When to Use This Skill, or body text contains routing phrases like "Activate when user", "Trigger this skill when", "Use this skill when".
Problem: The skill body loads only AFTER the Skill tool is invoked. Trigger conditions placed here don't influence routing decisions. Claude reads the description field during routing; that's where "Use when" patterns, trigger keywords, and example phrases belong.
Severity: Warning
Fix: Merge unique trigger content from the body section into the description field, then remove the redundant body section.
When to Use
Activate when user says "weekly report" or "generate summary".
reason: Trigger phrases are invisible during routing; they only load after invocation </example>
<example type="valid"> --- description: Generate reports from data. Use when user says "weekly report" or "generate summary". ---How to Use
- Provide data source path
- Run report generation </example>
4. Quality Patterns (Strengths)
Recognize positive patterns in skills. These are reported as "strengths" rather than issues.
8.1 Has Example Section
Skills with ## Example, ## Usage, or <example> tags demonstrate expected behavior clearly.
Strength: "Skill includes example section"
8.2 Has Error Handling
Skills documenting limitations, error cases, or edge cases set correct expectations.
Patterns detected: ## Error, ## Limitation, does not support, will fail if
Strength: "Skill documents error handling or limitations"
8.3 Has Trigger Phrases
Description includes activation triggers (Use when, Triggers on, Applies to, etc.)
Strength: "Description includes activation triggers"
8.4 Has Output Format
Skills specifying output format with concrete examples (code blocks, JSON, tables).
Strength: "Skill specifies output format with examples"
8.5 Has Structured Instructions
Skills using numbered steps or clear workflow sections.
Strength: "Skill uses structured instructions"
8.6 Has Prerequisites
Skills documenting setup requirements or dependencies.
Strength: "Skill documents prerequisites"
8.7 Has Negative Triggers
Description includes scope boundaries that prevent over-triggering.
Patterns detected: "Do NOT use for", "Not for", "Don't use when", "not intended for", "Do not use for"
Strength: "Description includes negative triggers to prevent over-triggering"
Pro Tier Features
The following checks are available with SkillCheck Pro:
Anti-Slop Detection (Pro)
Detects AI writing patterns that waste tokens and reduce clarity:
- Em-dash abuse
- Hedge stacking ("might potentially")
- Sycophantic openers ("Great question!")
- Filler phrases ("It's important to note that")
- Cliche intros ("In today's fast-paced world")
- Essay closers ("In conclusion")
Why it matters: Skills that use slop patterns teach Claude bad habits. Pro catches 7 anti-patterns.
Token Budget Analysis (Pro)
Ensures skills stay within optimal size limits:
- Frontmatter: 400 tokens max
- Body: 5,000 tokens optimal, 8,000 max
- Total: 15,000 tokens max
- Progressive disclosure: large skills (3K+ tokens) without
references/get a suggestion to split content
Why it matters: Oversized skills consume context window and slow Claude down.
Security Scanning (Pro)
Detects security issues in technical skills:
- Hardcoded secrets and API keys
- Command injection vulnerabilities
- PII in examples (emails, phone numbers, SSNs)
- Unsafe path patterns
Why it matters: Public skills with leaked credentials are a liability.
Workflow Clarity (Pro)
Validates instruction structure:
- Complex skills (2000+ tokens) should use numbered steps
- Clear task decomposition
Why it matters: Well-structured instructions perform better.
Enterprise Readiness (Pro)
Checks for team/org deployment:
- No hardcoded user paths
- Environment variable configuration
- Permission documentation
- Audit trail support
Why it matters: Enterprise skills need to work across different environments.
WCAG Compliance (Pro)
For visual-output skills:
- Color contrast ratios (4.5:1 for AA)
- Non-color indicators
- AI slop aesthetic detection
Why it matters: Accessible output works for everyone.
Error Handling
Troubleshooting guide for validation failures.
Common Errors and Fixes
| Error | Cause | Fix |
|---|---|---|
| "No YAML frontmatter" | Missing --- markers | Add frontmatter block at file start |
| "Missing required field: name" | No name in frontmatter | Add name: your-skill-name |
| "Invalid name format" | Uppercase, underscore, or special chars | Use lowercase letters, numbers, hyphens only |
| "Description missing WHEN trigger" | No activation phrase | Add "Use when..." clause |
| "Unknown tool in allowed-tools" | Typo or invalid tool name | Check tool spelling, use space separation |
Timeout Behavior
- Validation completes in under 2 seconds for files under 1000 lines
- Large skills (1000+ lines) may hit context limits
- If validation stalls, break skill into smaller modules
Recovery Steps
- Run validation on individual sections if full validation fails
- Check frontmatter syntax first (most common failure point)
- Use
--verboseflag with MCP server for detailed diagnostics
Severity Levels
| Level | Meaning | Action |
|---|---|---|
| Critical | Skill may not function | Must fix |
| Warning | Best practice violation | Should fix |
| Suggestion | Could be improved | Nice to have |
Reporting Format
## SkillCheck Results: [skill-name]
### Summary
- Critical: X | Warnings: Y | Suggestions: Z | Passed: N
### Critical Issues
**[Check ID]** Line N: [Issue description]
**Fix**: [How to resolve]
Check IDs Reference
| ID | Category | Tier | Description |
|---|---|---|---|
| 1.0-dir-* | Structure | Free | Directory structure issues |
| 1.1-name-* | Structure | Free | Name field issues |
| 1.2-desc-* | Structure | Free | Description issues |
| 1.3-tools-* | Structure | Free | allowed-tools issues |
| 1.4-category-* | Structure | Free | Category field issues |
| 1.9-xml-in-frontmatter | Structure | Free | XML angle brackets in frontmatter (security) |
| 1.10-readme-in-folder | Structure | Free | README.md inside skill folder |
| 2.-body- | Body | Free | File length, format issues |
| 2.8-antipattern-format | Body | Free | Anti-pattern section format lint |
| 3.-name- | Naming | Free | Name quality issues |
| 4.- | Semantic | Free | Logic/contradiction/output format/routing issues |
| 4.6-wisdom-platitude | Semantic | Free | Wisdom/platitude detection |
| 5.-slop- | Anti-Slop | Pro | Writing pattern issues |
| 5.4-pii-* | Security | Pro | PII detection issues |
| 6.-wcag- | WCAG | Pro | Accessibility issues |
| 7.-security- | Security | Pro | Path/credential/injection issues |
| 9.-token- | Tokens | Pro | Budget issues |
| 10.-enterprise- | Enterprise | Pro | Org deployment issues |
| 12.-workflow- | Workflow | Pro | Step-by-step instruction issues |
Upgrade to Pro
Get the complete validation suite at getskillcheck.com:
- Go binary for CI/CD integration
- MCP server for IDE integration
- All Pro checks (anti-slop, security, tokens, WCAG, enterprise)
- Auto-fix suggestions
- Badge generation for marketplace-ready skills
{
"mcpServers": {
"skillcheck": {
"command": "skillcheck-mcp",
"env": { "SKILLCHECK_LICENSE": "SK_PRO_xxx" }
}
}
}
Source
git clone https://github.com/olgasafonova/SkillCheck-Free/blob/main/skill-check/SKILL.mdView on GitHub Overview
SkillCheck validates SKILL.md files against Anthropic guidelines and the agentskills spec. It identifies structure issues, disallowed characters, and field formatting problems, and reports fixes.
How This Skill Works
SkillCheck loads the target SKILL.md, applies a sequence of rule checks (frontmatter structure, optional fields, Claude Code extensions, and community extensions), and flags issues with severity and recommended fixes. It then outputs a clear report you can act on.
When to Use It
- When you need to verify a SKILL.md for correct frontmatter structure and required fields.
- When you want to detect angle brackets in frontmatter that could enable prompt injection.
- When auditing optional fields like license, allowed-tools, and compatibility per the spec.
- When validating Claude Code extension fields (category, model, context, hooks, etc.).
- When preparing a skill for submission or audit to ensure full compliance and traceable fixes.
Quick Start
- Step 1: Locate the target SKILL.md file.
- Step 2: Load the content and run SkillCheck.
- Step 3: Review the issues, apply fixes, and re-run validation.
Best Practices
- Run SkillCheck before publishing or sharing a SKILL.md file.
- Ensure the name is lowercase with hyphens and within length limits.
- Keep description concise (WHAT + WHEN) and within 1-1024 chars.
- Avoid angle brackets in frontmatter values and use plain text.
- Review the report to address high-severity issues before rechecking.
Example Use Cases
- Audit a new skill with frontmatter name: sample-skill and description that follows WHAT + WHEN.
- Flag a file where frontmatter contains a '<' or '>' in description and fix it.
- Detect a misformatted category in a Claude Code extension and correct it.
- Identify missing required frontmatter fields such as name or description.
- Review a completed SKILL.md and confirm it passes Frontmatter Structure and Category Validation.
Frequently Asked Questions
Related Skills
webapp-testing
anthropics/skills
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
code-quality-principles
athola/claude-night-market
Provides KISS, YAGNI, and SOLID code quality principles for clean code,
coding-assistant
chinkan/RustFox
Help users write, review, and debug code
Governance
smith-horn/product-builder-starter
Enforces engineering standards and code quality policies. Use during code reviews, before commits, when discussing standards or compliance, for quality audits, and when running retrospectives. Trigger phrases include 'run a retro', 'retrospective', 'code review', 'run review', or 'audit standards'.
Worktree Manager
smith-horn/product-builder-starter
Manage git worktrees for parallel development with conflict prevention and wave-aware execution strategy. Use when creating feature branches, starting parallel work sessions, merging worktree PRs, or coordinating multiple Claude sessions.
development-workflow
athola/claude-night-market
detailed development workflow with modular patterns for git, code review, testing, documentation, and deployment