Agent Skill Linter
A linter that checks agent skills for spec compliance and publishing readiness.
What it checks
- SKILL.md spec compliance — delegates to
skills-reffor frontmatter validation - LICENSE — exists, Apache-2.0 or MIT, current year
- Author —
metadata.authorin SKILL.md frontmatter - README badges — CI, license, Agent Skills badges
- CI workflow —
.github/workflows/has at least one YAML workflow - Installation section — README has install instructions with
npx skillsand agent directory table - Usage section — README has usage examples with starter prompts
- Content dedup — flags heavy overlap between README.md and SKILL.md
- Body length — SKILL.md body under 500 lines
- Directory structure — flags non-standard directories
- CSO description — description starts with "Use when..." (triggering conditions, not workflow summary)
- CSO name — name is action-oriented (gerund preferred over noun forms)
Running
skill-lint check ./my-skill # Lint a skill directory
skill-lint check ./my-skill --fix # Auto-fix fixable issues
skill-lint check ./my-skill --format json # JSON output for CI
Exit code 1 on errors, 0 otherwise.
Templates
Installation section (for README.md)
When fixing a missing or incomplete Installation section, use this template (replace {owner}/{repo} with the actual GitHub slug):
## Installation
### Recommended: `npx skills`
```bash
npx skills add {owner}/{repo}
```
### Manual installation
Copy the skill directory to your agent's skill folder:
| Agent | Directory |
|-------|-----------|
| Claude Code | `~/.claude/skills/` |
| Cursor | `.cursor/skills/` |
| Gemini CLI | `.gemini/skills/` |
| Amp | `.amp/skills/` |
| Roo Code | `.roo/skills/` |
| Copilot | `.github/skills/` |
### As a CLI tool
```bash
uv tool install git+https://github.com/{owner}/{repo}
```