Skip to content

CLI

sh
skills-lint [OPTIONS]

Flags

FlagDefaultDescription
--file <path>Lint a single file (skips aggregate rules)
--config <path>.skills-lint.config.jsonConfig file path
--quietfalseHide the ASCII banner
--verbosefalseShow all findings including passing rules
--no-cachefalseDisable token-count caching (see Caching)
--helpPrint help
--versionPrint version

Exit Codes

CodeMeaning
0All pass
1At least one error
2Warnings only
3Runtime error

Output

Each file section shows its applicable rules as a tree. Rules are displayed in this order:

  1. Inline rulesskill-structure, unique-name, unique-description — shown as single-line findings
  2. Sub-table rulesfrontmatter-limit, token-limit — shown as tables with columns: Model, Tokens, Warning, Error, Status

Status is ✓ PASS, ⚠ WARN, or ✗ ERROR. In non-verbose mode, only rules with warnings or errors are shown. Use --verbose to see all rules including passing ones.

When skill-index-budget is configured, an additional (skill index) section appears with the aggregate frontmatter token count. This is not included in the file count.

A summary line follows with total passed, warnings, and errors across all files.

Examples

sh
# Default config
skills-lint

# Single file
skills-lint --file .github/skills/code-review/SKILL.md

# CI mode
skills-lint --quiet

# Custom config
skills-lint --config configs/skills-lint.json

Released under the MIT License.