andon-preflight
Checks whether a repository is ready for andon-loop, andon-propose, or andon-verify. The only files it writes are its own report -- PREFLIGHT.md and preflight_summary.json in the given output_dir -- plus testing ledger-directory writability; nothing else is touched. Use when the user asks if a repo is ready for andon, or before the first run of any andon skill in a new repository.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- andon-preflight
- description
- Checks whether a repository is ready for andon-loop, andon-propose, or andon-verify. The only files it writes are its own report -- PREFLIGHT.md and preflight_summary.json in the given output_dir -- plus testing ledger-directory writability; nothing else is touched. Use when the user asks if a repo is ready for andon, or before the first run of any andon skill in a new repository.
- allowed-tools
- Read, Bash(python3:*), Glob, Grep
- argument-hint
03 SKILL.md 正文
andon-preflight
Read-only readiness report. Never creates the ledger, never modifies files.
Step 1: settings gate
python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/andon_core.py" load-settings <repo_root>
If the returned enabled field is false, stop immediately and report
"andon is disabled via .claude/andon.local.md" -- do not run any of the four
checks below.
Step 2: run all four checks, always, even if one looks bad
Determine availability flags by inspection (do this yourself; the script takes them as booleans since it has no way to query your installed agents):
--befund-stage-mapperif thebefund:stage-mapperagent resolves.--zeugnis-skillif thezeugnis:zeugnis-agentic-reliabilityskill resolves.--lsp-toolif anLSPtool is available in this session.--structural-indexif a Kythe/SCIP/LSIF index file exists on disk (check common locations withGlob, e.g.**/*.kzip,**/compile_commands.json,**/*.lsif).--property-lib-python/--property-lib-js/--property-lib-otherif Hypothesis / fast-check / an equivalent appears in the repo's declared dependencies (checkpyproject.toml,requirements*.txt,package.json).
Then:
python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/andon_core.py" preflight <repo_root> \
[--befund-stage-mapper] [--zeugnis-skill] [--lsp-tool] [--structural-index] \
[--property-lib-python] [--property-lib-js] [--property-lib-other]
This runs all four checks unconditionally -- stage legibility, ledger
writability (via mkdir -p on the ledger's parent directory only, to test
writability, never creating the ledger itself), house-rules presence, and
cross-plugin availability -- and returns one JSON object matching the exact
schema: stageLegibility, stageCountEstimate, ledgerDirWritable,
houseRulesPresent, crossPluginDependencies, verdicts.
Step 3: write the two outputs
-
<output_dir>/PREFLIGHT.md-- a status table plus verdicts, in prose, built from the JSON above. Before writing it yourself, confirm the path withvalidate-write-path, passing the path relative torepo_root, already including theoutput_dirprefix (not relative tooutput_dir) -- the third argument is the allowed directory the first argument must resolve inside of:python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/andon_core.py" validate-write-path \ <output_dir>/PREFLIGHT.md <repo_root> <output_dir>If this exits non-zero or raises an
AndonError(WRITE_SCOPE_ABSOLUTE,WRITE_SCOPE_TRAVERSAL, orWRITE_SCOPE_OUTSIDE), the write must not proceed: stop, report the error message verbatim to the user as "output_dir appears misconfigured", and do not writePREFLIGHT.md. Do not recompute the path and retry -- these are caller misconfigurations (in particularWRITE_SCOPE_OUTSIDE, meaningoutput_diritself resolves outsiderepo_root) that a fresh guess cannot fix. -
<output_dir>/preflight_summary.json-- the exact JSON object from Step 2, unmodified (do not paraphrase or drop fields; the schema is load-bearing forandon-statusand any external tooling that reads it later). Gate this write the same way as item 1 -- confirm the path first:python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/andon_core.py" validate-write-path \ <output_dir>/preflight_summary.json <repo_root> <output_dir>and apply the same handling on failure: stop, report the
AndonErrormessage verbatim as "output_dir appears misconfigured", and do not writepreflight_summary.json.
Verdict semantics (already computed by the script -- report, don't re-derive)
andon-propose:Readyif house-rules found, elseReady-with-gaps.andon-verify:Ready-with-gapsat minimum whenever a strategy prerequisite is missing, naming exactly which strategies degrade.andon-loop:Not-readyif the ledger directory isn't writable,Ready-with-gapsif topology detection would be heuristic/reduced,Readyotherwise.
Report all three plainly even if one is Not-ready -- deliver one complete
readiness report, not a halt at the first failing check.
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.