schliff
Deterministic linter and scorer for instruction files — SKILL.md, AGENTS.md, CLAUDE.md. No model in the loop: the same bytes score the same everywhere. Use for linting, scoring, auditing or CI-gating an instruction file, and for checking whether the commands a file promises actually resolve in the repo. Trigger phrases: "lint my skill", "score my skill", "audit skill", "review my skill", "harden skill", "make this skill better", "optimize my skill", "improve [metric] from X to Y", "benchmark skill", "check my AGENTS.md", "is my AGENTS.md lying", or paste a SKILL.md for auto-analysis. Also use when a user shares an instruction file without explicit instructions. Do NOT use for authoring a file from scratch — use a skill-creator first, then schliff. Do NOT use for application-code linting, SQL tuning, or runtime behaviour testing.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 18
- Forks
- 0
01 前言 Front Matter
- name
- schliff
- license
- MIT
- description
- Deterministic linter and scorer for instruction files — SKILL.md, AGENTS.md, CLAUDE.md. No model in the loop: the same bytes score the same everywhere. Use for linting, scoring, auditing or CI-gating an instruction file, and for checking whether the commands a file promises actually resolve in the repo. Trigger phrases: "lint my skill", "score my skill", "audit skill", "review my skill", "harden skill", "make this skill better", "optimize my skill", "improve [metric] from X to Y", "benchmark skill", "check my AGENTS.md", "is my AGENTS.md lying", or paste a SKILL.md for auto-analysis. Also use when a user shares an instruction file without explicit instructions. Do NOT use for authoring a file from scratch — use a skill-creator first, then schliff. Do NOT use for application-code linting, SQL tuning, or runtime behaviour testing.
- allowed-tools
- Bash(uvx schliff *), Bash(uvx schliff@8.12.0 *)
- compatibility
- Requires uv, which provides uvx.
02 资源文件 200
- 脚本__init__.py92 B
- 参考文档eval-suite.json25.1 KB
- 参考文档hooks/hooks.json407 B
- 脚本hooks/session-injector.js5.7 KB
- 参考文档references/improvement-protocol.md24.1 KB
- 参考文档references/metrics-catalog.md7.0 KB
- 参考文档references/skill-patterns.md3.5 KB
- 参考文档references/state-management.md1.7 KB
- 脚本scripts/__init__.py—
- 脚本scripts/achievements.py6.6 KB
- 脚本scripts/analyze-skill.sh9.1 KB
- 脚本scripts/auto-improve.py31.9 KB
- 脚本scripts/cli.py51.8 KB
- 脚本scripts/doctor.py29.7 KB
- 脚本scripts/drift.py11.1 KB
- 脚本scripts/episodic_store.py19.5 KB
- 脚本scripts/episodic-store.py151 B
- 脚本scripts/eval_split.py3.2 KB
- 脚本scripts/evolve/__init__.py45 B
- 脚本scripts/evolve/budget.py2.6 KB
- 脚本scripts/evolve/content.py3.6 KB
- 脚本scripts/evolve/engine.py19.0 KB
- 脚本scripts/evolve/guard.py2.8 KB
- 脚本scripts/evolve/lineage.py4.9 KB
- 脚本scripts/evolve/llm.py5.7 KB
- 脚本scripts/evolve/plateau.py2.8 KB
- 脚本scripts/evolve/prompts.py5.5 KB
- 脚本scripts/evolve/sanitize.py4.8 KB
- 脚本scripts/generate-report.py21.3 KB
- 脚本scripts/init-skill.py33.7 KB
- 脚本scripts/judge/judge_v0.py11.3 KB
- 脚本scripts/manifest.py19.3 KB
- 脚本scripts/measure_patch_ratio.py2.3 KB
- 脚本scripts/meta_report.py16.1 KB
- 脚本scripts/meta-report.py145 B
- 脚本scripts/nlp.py3.5 KB
- 脚本scripts/parallel_runner.py16.7 KB
- 脚本scripts/parallel-runner.py153 B
- 脚本scripts/progress.py30.1 KB
- 脚本scripts/report.py7.2 KB
- 脚本scripts/run-eval.sh22.2 KB
- 脚本scripts/runtime-evaluator.py9.9 KB
- 脚本scripts/score_skill.py805 B
- 脚本scripts/score-skill.py8.0 KB
- 脚本scripts/scoring/__init__.py1.3 KB
- 脚本scripts/scoring/clarity.py9.1 KB
- 脚本scripts/scoring/coherence.py3.6 KB
- 脚本scripts/scoring/command_resolution.py24.1 KB
- 脚本scripts/scoring/completeness.py9.4 KB
- 脚本scripts/scoring/composability.py5.2 KB
- 脚本scripts/scoring/composite.py10.8 KB
- 脚本scripts/scoring/credentials.py4.3 KB
- 脚本scripts/scoring/diff.py3.6 KB
- 脚本scripts/scoring/edges.py4.6 KB
- 脚本scripts/scoring/efficiency.py9.6 KB
- 脚本scripts/scoring/formats.py8.6 KB
- 脚本scripts/scoring/guards.py10.7 KB
- 脚本scripts/scoring/operational_coverage.py26.4 KB
- 脚本scripts/scoring/output_contract.py10.4 KB
- 脚本scripts/scoring/patterns/__init__.py731 B
- 脚本scripts/scoring/patterns/base.py25.5 KB
- 脚本scripts/scoring/patterns/skill_md.py11.4 KB
- 脚本scripts/scoring/patterns/system_prompt.py10.6 KB
- 脚本scripts/scoring/quality.py5.6 KB
- 脚本scripts/scoring/registry.py6.4 KB
- 脚本scripts/scoring/runtime.py7.9 KB
- 脚本scripts/scoring/security.py9.3 KB
- 脚本scripts/scoring/structure_prompt.py13.4 KB
- 脚本scripts/scoring/structure.py9.3 KB
- 脚本scripts/scoring/triggers.py6.5 KB
- 脚本scripts/shared.py40.8 KB
- 脚本scripts/skill_mesh.py33.8 KB
- 脚本scripts/skill-mesh.py143 B
- 脚本scripts/sync.py25.2 KB
- 脚本scripts/terminal_art.py12.2 KB
- 脚本scripts/test-integration.sh68.4 KB
- 脚本scripts/test-self.sh10.0 KB
- 脚本scripts/text_gradient.py57.3 KB
- 脚本scripts/text-gradient.py149 B
- 脚本scripts/track.py9.3 KB
- 脚本scripts/verify.py14.6 KB
- 参考文档templates/eval-suite-template.json4.5 KB
- 其他templates/improvement-log-template.jsonl328 B
- 其他templates/improvement-log-template.tsv106 B
- 参考文档tests/fixtures/command-signal/deserves.md3.0 KB
- 参考文档tests/fixtures/command-signal/dump.md2.4 KB
- 参考文档tests/fixtures/credential-repo/AGENTS.md818 B
- 参考文档tests/fixtures/dangling-repo/AGENTS.md383 B
- 其他tests/fixtures/dangling-repo/Makefile23 B
- 参考文档tests/fixtures/dangling-repo/package.json79 B
- 参考文档tests/fixtures/v630_baseline.json280 B
- 参考文档tests/proof/bad-eval-suite.json2.2 KB
- 参考文档tests/proof/bad-skill.md317 B
- 脚本tests/proof/test-proof.sh6.5 KB
- 脚本tests/unit/conftest.py886 B
- 参考文档tests/unit/fixtures/system_prompts/bad_minimal.txt124 B
- 参考文档tests/unit/fixtures/system_prompts/good_api_assistant.txt4.3 KB
- 参考文档tests/unit/fixtures/system_prompts/looks_like_skill.txt732 B
- 参考文档tests/unit/fixtures/system_prompts/mediocre_chatbot.txt1.1 KB
- 参考文档tests/unit/fixtures/system_prompts/xml_tags_prompt.txt1.8 KB
- 脚本tests/unit/test_action_security.py1.9 KB
- 脚本tests/unit/test_agents_md_profile.py12.3 KB
- 脚本tests/unit/test_auto_improve_split.py4.1 KB
- 脚本tests/unit/test_cadence_rule_stated_once.py4.8 KB
- 脚本tests/unit/test_callers_pass_format.py6.3 KB
- 脚本tests/unit/test_cli_diff.py12.3 KB
- 脚本tests/unit/test_cli_error_handling.py4.7 KB
- 脚本tests/unit/test_cli_new.py16.5 KB
- 脚本tests/unit/test_cli.py9.5 KB
- 脚本tests/unit/test_collect_traffic.py14.5 KB
- 脚本tests/unit/test_command_docs_document_the_loop.py5.6 KB
- 脚本tests/unit/test_command_docs_flags_exist.py4.2 KB
- 脚本tests/unit/test_command_resolution.py26.2 KB
- 脚本tests/unit/test_compare.py8.6 KB
- 脚本tests/unit/test_composability_structural_signals.py8.6 KB
- 脚本tests/unit/test_composite_unified.py21.2 KB
- 脚本tests/unit/test_composite_weights.py22.5 KB
- 脚本tests/unit/test_credential_gate.py9.3 KB
- 脚本tests/unit/test_credential_review_fixes.py18.7 KB
- 脚本tests/unit/test_credentials.py6.1 KB
- 脚本tests/unit/test_diff_scoring.py16.9 KB
- 脚本tests/unit/test_doctor_collapses_duplicate_copies.py39.9 KB
- 脚本tests/unit/test_doctor_multiformat.py5.1 KB
- 脚本tests/unit/test_doctor_positional_dirs.py3.9 KB
- 脚本tests/unit/test_doctor.py3.4 KB
- 脚本tests/unit/test_documented_command_forms.py4.7 KB
- 脚本tests/unit/test_documented_command_signal.py7.3 KB
- 脚本tests/unit/test_drift.py10.7 KB
- 脚本tests/unit/test_edge_cases.py15.7 KB
- 脚本tests/unit/test_efficiency_length_is_charged.py3.0 KB
- 脚本tests/unit/test_episodic_store.py2.8 KB
- 脚本tests/unit/test_eval_split.py2.7 KB
- 脚本tests/unit/test_eval_suite_is_portable_ere.py3.3 KB
- 脚本tests/unit/test_eval_suite_owner.py8.6 KB
- 脚本tests/unit/test_evolve_budget.py2.7 KB
- 脚本tests/unit/test_evolve_content.py5.7 KB
- 脚本tests/unit/test_evolve_engine.py8.8 KB
- 脚本tests/unit/test_evolve_guard.py4.5 KB
- 脚本tests/unit/test_evolve_lazy_import.py2.1 KB
- 脚本tests/unit/test_evolve_lineage.py5.3 KB
- 脚本tests/unit/test_evolve_llm.py5.3 KB
- 脚本tests/unit/test_evolve_plateau.py3.3 KB
- 脚本tests/unit/test_evolve_prompt_injection.py11.0 KB
- 脚本tests/unit/test_evolve_prompts.py2.0 KB
- 脚本tests/unit/test_evolve_sanitize.py7.2 KB
- 脚本tests/unit/test_formats.py6.2 KB
- 脚本tests/unit/test_gate_power_wiring.py5.8 KB
- 脚本tests/unit/test_gate1_verdict.py4.6 KB
- 脚本tests/unit/test_golden.py12.5 KB
- 脚本tests/unit/test_gradient_delta_scale.py6.3 KB
- 脚本tests/unit/test_gradient_target.py2.3 KB
- 脚本tests/unit/test_guards.py6.9 KB
- 脚本tests/unit/test_init_skill.py11.4 KB
- 脚本tests/unit/test_install_version.py8.1 KB
- 脚本tests/unit/test_judge_v0.py4.7 KB
- 脚本tests/unit/test_known_gaming_limits.py2.6 KB
- 脚本tests/unit/test_leaderboard_kv.py14.8 KB
- 脚本tests/unit/test_leaderboard_storage.py5.9 KB
- 脚本tests/unit/test_leaderboard_versioning.py3.1 KB
- 脚本tests/unit/test_manifest.py27.9 KB
- 脚本tests/unit/test_measurement_scripts.py7.4 KB
- 脚本tests/unit/test_normalization.py4.3 KB
- 脚本tests/unit/test_opcov_gradients.py10.2 KB
- 脚本tests/unit/test_operational_coverage.py28.6 KB
- 脚本tests/unit/test_parallel_runner.py1.8 KB
- 脚本tests/unit/test_patch_ratio.py1.2 KB
- 脚本tests/unit/test_patterns_are_bounded.py5.5 KB
- 脚本tests/unit/test_patterns_scale_linearly.py29.2 KB
- 脚本tests/unit/test_patterns_split.py6.3 KB
- 脚本tests/unit/test_patterns.py24.0 KB
- 脚本tests/unit/test_playground_score.py8.2 KB
- 脚本tests/unit/test_registry.py10.8 KB
- 脚本tests/unit/test_regression_v71.py7.1 KB
- 脚本tests/unit/test_report.py5.7 KB
- 脚本tests/unit/test_run_eval_timeout_visibility.py6.0 KB
- 脚本tests/unit/test_runtime_evaluator_security.py5.0 KB
- 脚本tests/unit/test_sanitize_coverage.py1.6 KB
- 脚本tests/unit/test_scoring_edges_malformed.py10.0 KB
- 脚本tests/unit/test_scoring_redos.py10.2 KB
- 脚本tests/unit/test_scoring_runtime_enabled.py12.5 KB
- 脚本tests/unit/test_scoring_type_guards.py7.3 KB
- 脚本tests/unit/test_scoring.py51.8 KB
- 脚本tests/unit/test_security_field_false_positives.py14.8 KB
- 脚本tests/unit/test_security.py13.4 KB
- 脚本tests/unit/test_shared.py12.5 KB
- 脚本tests/unit/test_skill_card_executable.py6.1 KB
- 脚本tests/unit/test_skill_discovery_excludes_vendored.py10.8 KB
- 脚本tests/unit/test_skill_mesh.py7.1 KB
- 脚本tests/unit/test_stress.py33.7 KB
- 脚本tests/unit/test_suggest.py7.3 KB
- 脚本tests/unit/test_sync.py20.1 KB
- 脚本tests/unit/test_system_prompt_scoring.py39.0 KB
- 脚本tests/unit/test_terminal_art.py10.5 KB
- 脚本tests/unit/test_tokens.py7.4 KB
- 脚本tests/unit/test_track.py9.6 KB
- 脚本tests/unit/test_trigger_precision_recall.py5.0 KB
- 脚本tests/unit/test_url.py853 B
- 脚本tests/unit/test_verify.py22.6 KB
- 脚本tests/unit/test_version_consistency.py2.9 KB
- 脚本tests/unit/test_version_pin_limit_stated_once.py6.3 KB
03 SKILL.md 正文
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.
Resources
04 同仓库更多 Skills
schliff
Deterministic skill linter and scoring engine for Claude Code — the Ruff for SKILL.md files. 7-dimension structural scoring (structure, triggers, quality, edges, efficiency, composability, clarity) with anti-gaming detection, ~32% rule-based patches, and cross-session episodic memory. An autoresearch loop that measures first, then fixes — not the other way around. Use for linting, scoring, and autonomously improving any Claude Code skill: trigger accuracy, output quality, edge coverage, token efficiency, composability, or custom metrics. Works with community, custom, project-local, or global skills. Trigger phrases: "make this skill better", "optimize my skill", "iterate on this skill overnight", "improve [metric] from X to Y", "audit skill", "review my skill", "harden skill", "benchmark skill", "lint my skill", "score my skill", or paste SKILL.md for auto-analysis. Also use when user shares skill without explicit instructions. Do NOT use for brand-new skills from scratch — use skill-creator first, then come to Schliff. Do NOT use for SQL query tuning. Do NOT use for prompt template authoring.
deploy-helper
暂无简介