@mukundakatta/skillint
v1.0.0
Published
Linter for Claude Code skill files (SKILL.md). Validates YAML frontmatter, required fields, descriptions, and secret leaks. CLI + GitHub Action.
Maintainers
Readme
skillint
A linter for Claude Code skill files (SKILL.md). Catches malformed YAML frontmatter, missing required fields, thin descriptions, hardcoded secrets, and broken references before they ship.
- CLI —
skillintscans**/SKILL.md. - GitHub Action — inline PR annotations + SARIF for Code Scanning.
- Programmatic API — compose rules into your own pipeline.
$ skillint
skills/git-commit/SKILL.md
line 3 error missing-required
Frontmatter is missing required field "description".
tip: Add "description:" to the frontmatter block.
line 11 error hardcoded-secret
Possible hardcoded OpenAI API key (sk-proj-xx...789a).
tip: Reference the env var at runtime instead.
Checked 1 file in 3ms: 2 errors.Install
npm install -g skillint
# or one-off:
npx skillintUsage
CLI
skillint # default: **/SKILL.md
skillint path/to/SKILL.md # single file
skillint 'skills/**/SKILL.md' --format sarif # SARIF for Code Scanning
skillint skill.md --fail-on warning # strictGitHub Action
# .github/workflows/skillint.yml
name: skillint
on: [pull_request]
permissions:
contents: read
pull-requests: write
security-events: write
jobs:
skillint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: MukundaKatta/skillint@v1
with:
paths: '**/SKILL.md'
fail-on: error
- uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: skillint.sarifProgrammatic
import { checkSource } from "skillint";
const report = checkSource(source, "SKILL.md");
for (const issue of report.issues) {
console.log(issue.line, issue.severity, issue.ruleId, issue.message);
}Rules
| ID | Checks | Default severity |
|---|---|---|
| missing-frontmatter | File doesn't start with --- YAML fence. | error |
| yaml-parse-error | Frontmatter fails to parse. | error |
| missing-required | name or description absent. | error |
| empty-required | name or description is empty/whitespace. | error |
| kebab-case-name | name not kebab-case. | error |
| overlong-name | name exceeds 64 chars. | warning |
| short-description | description below 80 chars (errors below 20). | warning |
| no-trigger-in-description | Description lacks "when/use/trigger" language. | warning |
| no-body-headings | Skill body missing section headings. | warning |
| hardcoded-secret | OpenAI / Anthropic / GitHub / Slack / AWS / Stripe / Google keys in file. | error |
| broken-reference | Relative markdown link/image target doesn't resolve. | warning |
| unknown-field | Frontmatter field outside the known set. | info |
| duplicate-name | Two scanned skills share a name. | error |
Configuration
// skillint.config.json
{
"rules": {
"noTriggerInDescription": { "severity": "off" },
"unknownField": { "severity": "warning" }
}
}Every rule accepts { "enabled": boolean, "severity": "error" | "warning" | "info" | "off" }. Run with --config skillint.config.json.
Why care about SKILL.md quality
- Claude uses the
descriptionfield to decide when to invoke a skill. A thin description means the skill never fires when it should. - Skills ship as part of a repo or plugin; any committed secret ends up distributed.
- Duplicate or non-kebab-case names cause silent discovery failures.
- Skillint catches all of these at CI time so they never reach users.
Development
npm install
npm run build
npm test # 12 passingLicense
MIT
