schliff — deterministic instruction-file linter
Overview
Scores one instruction file per dimension and turns that score into a CI gate.
Prerequisites
uv on PATH (it provides uvx). No API key. Expects an instruction-file path
for most commands; see each command's --help.
Commands
These run anywhere uv is available: no plugin, no checkout. All except badge
and demo accept --json for machine-readable output.
uvx schliff score <file>— score one instruction file, per-dimension breakdownuvx schliff doctor --skill-dirs <dir>— grade every skill in a directoryuvx schliff verify <file> --min-score 75— CI gate; exits 1 below the thresholduvx schliff check-commands <file> --repo <dir>— do the file's commands resolve?uvx schliff suggest <file>— ranked fixes with estimated score impactuvx schliff badge <file>— markdown score badgeuvx schliff compare <a> <b>— two files side by sideuvx schliff demo— score a built-in bad skill to see the output shape
Pin the version in CI: uvx schliff@8.12.0 verify <file> --min-score 75.
Examples
Example 1 — score a skill:
$ uvx schliff score SKILL.md
structure 95/100 triggers 95/100 quality 90/100
Structural Score 87.4/100 [A] Tokens: 1,044 / 2,000 (ok)
Grades run S · A · B · C · D · E · F. 4/7 dims in the readout means no eval
suite was found beside the file, so only the deterministic dimensions could be
measured and the score is capped — a coverage statement, not a quality verdict.
verify scales its threshold by that same coverage, so a missing eval suite
never fails CI on its own.
Example 2 — is the file telling the truth?
$ uvx schliff check-commands AGENTS.md --repo .
resolved 'make test' make target 'test' defined in Makefile
dangling 'npm run lint' package.json has no script 'lint'
dangling is claimed only when absence is provable; anything unresolvable is
reported unknown, never as a defect.
Workflow
uvx schliff doctor --skill-dirs <dir>— find the worst file.uvx schliff suggest <file>— see the ranked fixes and their impact.- Apply them, then
uvx schliff score <file>to confirm the delta. - Gate it:
uvx schliff verify <file> --min-score 75in CI.
If the schliff plugin is installed
Only with the full plugin from schliff's own marketplace (/plugin marketplace add Zandereins/schliff, then /plugin install schliff@schliff). A skill-only mirror
and the uvx path above do not ship these commands, which also need python3 >= 3.10:
/schliff:analyze · /schliff:doctor · /schliff:init · /schliff:bench ·
/schliff:eval · /schliff:report · /schliff:mesh · /schliff:triage ·
/schliff:auto
Output
Produces per-dimension scores, a composite grade, and a gate-usable exit code.
Error Handling
A gate result exits 1 with the finding on stdout: verify below the threshold or
with --regression, and check-commands finding a dangling command. Other
failures exit 1 or 2, depending on the command, and print the cause on stdout or
stderr.
Scope
Use when measuring or gating the quality or honesty of an instruction file. Do not use for authoring from scratch, application-code linting, or runtime behaviour testing. schliff measures — it does not write.
Handoffs
- No file to score yet → instead use a skill-creator skill to author one, then come back to schliff to measure it.
- Score plateaus after the suggested fixes → then use a skill-authoring or writing skill; the remaining gap is content, not structure.
check-commandsreportsdangling→ fix the file or the repo, re-run it.- Any non-zero exit → report stdout and stderr verbatim; one of them names the cause.
Scan to join WeChat group