nacharbeit-lint
Use to run the mechanical half of the nacharbeit rubric — the script-checkable rules (run `nacharbeit_lint.py --count` for the current total) over a plugin's skills, agents, commands, workflows, hooks, scripts, report viewers, manifest, README, CHANGELOG and docs wiring — with no model in the loop and no tokens spent. Trigger on 'lint this plugin', 'does this plugin meet the Anthropic standard mechanically', 'check the frontmatter and hooks.json', 'nacharbeit lint'. Reports findings by rule; never fixes anything (that is nacharbeit-fix) and never judges prose (that is nacharbeit-review).
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- nacharbeit-lint
- description
- Use to run the mechanical half of the nacharbeit rubric — the script-checkable rules (run `nacharbeit_lint.py --count` for the current total) over a plugin's skills, agents, commands, workflows, hooks, scripts, report viewers, manifest, README, CHANGELOG and docs wiring — with no model in the loop and no tokens spent. Trigger on 'lint this plugin', 'does this plugin meet the Anthropic standard mechanically', 'check the frontmatter and hooks.json', 'nacharbeit lint'. Reports findings by rule; never fixes anything (that is nacharbeit-fix) and never judges prose (that is nacharbeit-review).
03 SKILL.md 正文
Everything a script can decide is decided here, so the model finders downstream never have to. The linter asserts itself before it grades anything: a rule that cannot fail is not a rule.
Steps
-
Prove the instrument first. Run the calibration; it plants one defect per rule, checks a clean plugin stays silent, blanks each rule in turn to prove it load-bearing, and checks the rubric's tables and the linter's rule set agree:
uv run --script "${CLAUDE_PLUGIN_ROOT}/scripts/test_nacharbeit_lint.py"Only proceed on
GREEN. AREDline names the rule that is broken; report it and stop — a linter whose calibration fails has no verdict to give.uv run --scriptreads the script's PEP 723 header and suppliespyyaml. Withoutuv, run the same path withpython3 -B; that needspyyamlimportable, and the linter stops with exit 2 and says so rather than grading frontmatter it cannot parse. -
Lint the targets, writing the JSON the review consumes:
uv run --script "${CLAUDE_PLUGIN_ROOT}/scripts/nacharbeit_lint.py" plugins/<name> [plugins/<other> ...] \ --docs-root docs --out analysis/nacharbeit/lint.jsonDrop
--docs-rootwhen the repository has no docs site; theD-*rules then do not run.--marketplacedefaults to.claude-plugin/marketplace.jsonwhen it exists. -
Read the
skippedlist before the findings. A rule listed there (nonode, no viewer checker) was not evaluated; silence on it is not a pass. -
Report by rule, then by file, with the claim and the fix for each finding. Do not apply any fix, however mechanical: the fix pass runs under a lock and a blind verifier for a reason.
Output format
321 files: skill=72, agent=41, command=9, reference=33, workflow=13, hooks=6, hookscript=7, script=92, viewer=8, manifest=10, readme=10, changelog=10, docs=10
3 H-TIMEOUT
1 M-DUP-CONTENT
7 P-MARKETPLACE-MEMBER
- [minor] H-TIMEOUT plugins/andon/hooks/hooks.json:9
the PreToolUse command handler sets no integer `timeout`
- [major] P-MARKETPLACE-MEMBER plugins/andon/.claude-plugin/plugin.json
description differs from the marketplace copy (run `rrt fields`)
SKIPPED S-JS-SYNTAX: node is not on PATH
Findings: 11 over 3 plugins (1 major, 8 minor, 2 nit); 1 rule skipped.
Every finding is haiku-tier except P-MARKETPLACE-MEMBER (human: the marketplace entry lives outside the plugin).
Next: nacharbeit-review for the judgement rules, or nacharbeit-fix to apply these under the lock.
Rules
- Calibration before verdict, every time. Step 1 is not optional and not cached.
- Findings are data, not failure. The linter exits 0 on a completed scan; a non-zero exit means it could not scan, which is reported as such.
- Never edit the file being graded, and never edit the rubric to make a finding go away — the rubric hash rides in every run.
Resources
scripts/test_nacharbeit_lint.py— run first; the sabotage calibration.scripts/nacharbeit_lint.py— run; the linter.--helplists every flag.scripts/check_viewer_conformance.py,scripts/verify_hooks_deny.py,scripts/check_workflow_models.py— vendored checkers theA-*rules, the hook post-checks andS-WF-MODEL/S-WF-RELAYdelegate to; the linter imports the first and the third.references/rubric.md— read to resolve any rule id in a finding.
04 同仓库更多 Skills
toy-check
A skill that checks things in the repository and reports what it finds.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
zirkel-verify-assumptions
Checks exactly ONE named assumption against real evidence in at most 3 steps and reports one outcome: confidence raised (>=90), reading changed, or still unresolved. Use to resolve a single load-bearing uncertainty — typically a blocking entry surfaced by zirkel-clarify-scope: "verify this one assumption", "is it actually true that X", "check this before we rely on it". For multiple uncertainties, invoke once per uncertainty — the step budget is never shared.