nacharbeit-preflight
Use FIRST, before any other nacharbeit skill, to inventory what the target plugin directories contain (skills, agents, hooks, scripts, viewers, manifest, docs wiring), which checkers this environment can run, which other plugins' guard hooks are live in the repository, and whether a nacharbeit fix lock is already open. Trigger on 'what would nacharbeit check here', 'is this plugin ready for a review', 'nacharbeit preflight', or as the automatic first step of nacharbeit-review and nacharbeit-fix. Read-only — writes nothing, grades nothing; grading is nacharbeit-lint and nacharbeit-review.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- nacharbeit-preflight
- description
- Use FIRST, before any other nacharbeit skill, to inventory what the target plugin directories contain (skills, agents, hooks, scripts, viewers, manifest, docs wiring), which checkers this environment can run, which other plugins' guard hooks are live in the repository, and whether a nacharbeit fix lock is already open. Trigger on 'what would nacharbeit check here', 'is this plugin ready for a review', 'nacharbeit preflight', or as the automatic first step of nacharbeit-review and nacharbeit-fix. Read-only — writes nothing, grades nothing; grading is nacharbeit-lint and nacharbeit-review.
03 SKILL.md 正文
Know what is on the bench before measuring it. A review that discovers mid-run that
node is missing, or a fix pass that discovers mid-edit that lehre's guard is live,
has already spent tokens on a result it cannot use.
Steps
-
Resolve the targets. Default to every directory under
plugins/that carries.claude-plugin/plugin.json; when the user names plugins, use those directories. A named directory without a manifest is reported, not silently skipped. -
Run the inventory (read-only):
uv run --script "${CLAUDE_PLUGIN_ROOT}/scripts/preflight.py" [plugins/<name> ...]It prints, per plugin, the unit count by kind; which checkers are available (
nodeforS-JS-SYNTAX, the vendored viewer and hook checkers,contract_diff.py, a prompt index for known-answer routing, a marketplace file, a docs root); which other guard hooks are live (takt, lehre, andon, zeugnis, befund, cupertino) with their escape hatches; whetheranalysis/nacharbeit/fix_scope.jsonis open and how old it is; and which state files from earlier runs exist.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. -
Say what the run can and cannot measure. A missing checker means the rules that need it will be listed under
skipped, never silently passed — name them. A live guard means a later fix pass may be denied by that plugin — say so now, and never plan around its escape hatch. -
Refuse to go further on an open lock. If a fix lock is open, stop and hand the user the release command; a stale lock denies every edit, which is the safe direction, and only a person decides to release it.
Output format
nacharbeit preflight — 3 plugin(s) under plugins
andon agent=4, changelog=1, docs=1, hooks=1, hookscript=1, manifest=1, readme=1, reference=3, script=6, skill=6, viewer=1
takt changelog=1, docs=1, hooks=1, hookscript=1, manifest=1, readme=1
lehre agent=8, changelog=1, docs=1, hooks=1, hookscript=1, manifest=1, readme=1, reference=1, script=5, skill=9, viewer=1
checkers: node=yes, claude=yes, pyyaml=yes, viewer_checker=yes, hooks_checker=yes, contract_diff=yes, known_answers=yes, marketplace=yes, docs_root=docs, fixtures_root=yes
other guards live in this repository (a fix pass runs under them; a denial from one is reported, never bypassed):
lehre marker .lehre/ruleset.json escape hatch: LEHRE_DISABLE_GUARD=1
fix lock: none open
state: lint.json=present, args.json=absent, run.json=absent, fix-args.json=absent, fix-check.json=absent
Can measure: every family. Cannot measure: nothing skipped.
Next: nacharbeit-lint for the mechanical rules (free), nacharbeit-review for the calibrated judgement review.
Rules
- Writes nothing. Not even the state directory.
- Never suggests an escape hatch for another plugin's live guard. A denial from lehre during a fix pass is lehre doing its job.
- Never infers a missing checker as present. If
preflight.pysaysnode=no,S-JS-SYNTAXwill be skipped and the report says so.
Resources
scripts/preflight.py— run it; the inventory above is its output.references/fix-scope-schema.md— read it to interpret an open lock.
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.