/aria-knowledge:preflight [<scope>] [<scope-arg>] [--claim "<sentence>"] [--quick]from aria-knowledge
Runs a pre-completion checklist with six checks and three outcomes (PASS/FAIL/INVALID) before claiming work is done. Catches silent failures where verification bounds miss the real problem or a correct decision breaks in context.
Ships in aria-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/prospect looks forward at a plan. /retrospect looks back at shipped work. This runs at the
moment in between: you believe you are done, and you are about to say so.
It is not superpowers:verification-before-completion, which owns the principle — no completion
claim without fresh verification evidence — and owns it well. That skill answers whether to
verify. This one answers what to verify, and specifically: the checks whose absence produces no
signal at all.
If you have not internalised the Iron Law, read that skill first. This one assumes it and adds the cases where you ran a verification, it passed, and the thing was still broken.
Every check below descends from one of these. Neither produces an error, a failing test, or a warning.
The consequence they share: the absence of a problem signal is not evidence there is no problem. Family 1 because your check couldn't see it. Family 2 because nothing was checking.
Work through the checks that apply to your change. Every applicable check gets a recorded result. An unrun check is not a pass — it blocks the verdict.
Each check has three outcomes, never two:
| PASS | the check ran and the property holds |
| FAIL | the check ran and the property does not hold |
| INVALID | the check could not distinguish absence from a broken probe — report no verdict, fix the probe |
The third outcome is the whole point. A probe that returns "nothing found" because it was pointed at a path that does not exist reads exactly like a clean result.
A rationalisation in code is not a disclosure. Nobody diffs docstrings against requirements at review, so an omission explained in the source is invisible in exactly the place it needed a second opinion.
A model's name and fields do not tell you its jobs. A row can be a record and a permission at the same time; a delete that is obviously right for the first is a silent privilege change for the second, and nothing in the model, the migration or your endpoint will mention it.
# every consumer, minus vendored code and migrations
grep -rn --include='*.<ext>' --exclude-dir='<vendor_dir>' --exclude-dir=migrations -e '<SYMBOL>' .
# of those, which sit inside an authorization decision? (same line holds both; tests and migrations
# out; --untracked so new, not-yet-committed code is searched too)
git grep --untracked -niE -e '<SYMBOL>' --and -e 'allow|permission|access|authoriz|can_view|visibility|entitle' \
-- '*.<ext>' ':(exclude,icase)*test*' ':(exclude,icase)*migration*'
A green build measures compilation, not reachability. A component nothing imports is tree-shaken out: it compiles, it deploys, and it is not in the product.
Frontend
# does anything import it? zero here = the feature does not exist
grep -rn --include='*.js' --exclude-dir='<COMPONENT>' -e '<COMPONENT>' src
After deploy, read the source map's module list, not the bundle's strings — a string search cannot distinguish "not deployed yet" from "deployed but tree-shaken." Both return zero. Always include a control module from the same page, or "absent" is indistinguishable from a broken probe.
Backend / any callable
Ask what makes it reachable, then verify that: a route table entry, a registered webhook, a scheduled job actually installed, a feature flag. Include a control — a sibling you did not touch — so a zero result is interpretable.
⚠ A test that calls a function directly does not exercise its routing. If your suite invokes the handler rather than the URL, the suite stays green with the route deleted. That is a real gap, not a pedantic one; check the wiring separately and say which you verified.
⚠ Never write "build green" or "tests pass" as evidence of shipping. Say "imported and present in
the bundle," or "routed at <path>," or make no claim.
Report the instrument, not just the result. A census reports its own bound or it is not a census.
**kwargs spread,
a re-export, or a differently-quoted string. One idiom returning zero is not absence.grep | wc -l cannot report failure. A missing path, a genuine absence and a real zero all
print 0. Read grep's exit code, or verify the path first.The most dangerous green is the one that ran nothing. A request refused upstream, a fixture missing a field, an exception swallowed into a success envelope — the assertions never execute and every one of them passes.
Never cite a gate you have not watched fail. This applies to guards you wrote and guards you inherited.
cmp. Do not restore with version
control if the working edit is uncommitted — that discards it.Emit a compact table, then the verdict. Do not bury a FAIL in prose.
PREFLIGHT — <scope>
P1 requirements diff PASS 3 named / 3 shipped
P2 consumer census FAIL ProfileInvites is read by 2 authz views — delete = permission change
P3 reachability PASS routed at /api/x, control /api/y present
P4 census bound PASS 2 idioms, exit codes read; CODE census, data not checked
P5 non-vacuity PASS envelope asserted + 5 size-writes observed
P6 mutation INVALID probe restored from git, working edit lost — redo from byte backup
VERDICT: NOT READY — 1 FAIL, 1 INVALID
Any FAIL or INVALID ⇒ do not make the claim. Fix, or state the limitation explicitly in the same sentence as the claim. An INVALID is not a soft pass — it means you do not know.
Skipped checks are listed as skipped, with why. "N/A — no model touched" is a result. Silence is not.
Always write the session marker — this is what the commit gate reads. One line per run,
appended, in the private per-user state directory, named by aria-state.sh so it is the file the
gate reads. Run the block unchanged, keeping exactly one of its last two lines — the READY line
when the verdict is READY, the NOT READY line otherwise:
_pf_sid=${CLAUDE_CODE_SESSION_ID:-${CODEX_THREAD_ID:-}}
_pf_m=""
if [ -z "$_pf_sid" ]; then
echo 'preflight: no session id — marker not written'
elif ! sh "${CLAUDE_PLUGIN_ROOT}/scripts/aria-state.sh" key "$_pf_sid" > /dev/null; then
echo 'preflight: the session id is not one the commit gate can read — marker not written'
elif _pf_m=$(sh "${CLAUDE_PLUGIN_ROOT}/scripts/aria-state.sh" path "aria-preflight-$_pf_sid"); then
echo "preflight marker: $_pf_m"
else
_pf_m=""
fi
[ -n "$_pf_m" ] && printf '%s\tREADY\n' "$(date +%H:%M)" >> "$_pf_m"
[ -n "$_pf_m" ] && printf '%s\tNOT READY\n' "$(date +%H:%M)" >> "$_pf_m"
If it prints preflight: no session id, preflight: the session id is not one the commit gate can read (the id holds a character outside A-Za-z0-9._-, so the gate keys no state for it) or an
aria-state: reason (the private state directory is unavailable, and why), the marker was not
written: say so with the verdict, and never write it
anywhere else — the gate reads only this path. When your ARIA CONFIG line carries state_dir=,
compare it with the directory of the printed marker path; if they differ (a sandboxed shell can see a
different temp directory from the hooks), say so — the commit gate will not see this marker.
⛔ The marker carries the verdict token only. The scope is user-supplied text and never goes into a shell command — it lives in the PREFLIGHT table and in the log file below.
pre-commit-preflight-check.sh fires on git commit and warns when no marker exists for the
session. Any recorded verdict satisfies it, including NOT READY — recording a FAIL and
committing anyway is a legitimate, visible choice; the failure being guarded against is not running
the checks at all.
One baseline and two escalations, none a sub-setting of the other:
preflight_gate: off | never fires |
preflight_gate: warn (default) | warns on code commits — and denies on any preflight_deny_repos or preflight_deny_paths match |
preflight_gate: deny | denies every code commit; both lists are irrelevant |
Both lists escalate from any baseline, exactly as critical_paths escalates Rule 22 regardless of
the surrounding setting. They match different things, and the difference is load-bearing:
preflight_deny_paths — space-separated globs matched against repo-relative staged paths.
A bare filename therefore will not match that file nested in a subdirectory, and because the docs
filter runs first, a *.md entry here can never fire.preflight_deny_repos — comma-separated substrings matched against the repository's resolved
absolute path. This is the only way to say "always gate this repo": staged paths are repo-relative,
so the repo name appears nowhere in the string a path glob sees. Substring matching over-matches a
same-named sibling — for a gate, the safe direction.Docs-only diffs are silent under every combination, including a gated repo. That is deliberate: a gate that fires on a README edit is the one that gets switched off wholesale.
Then write the table to <knowledge_folder>/logs/preflight/<date>-<scope>.md when the change is
non-trivial, and run aria's standard intake. A preflight that found something is a candidate
insight — the pattern that produced the FAIL is usually more reusable than the fix.
superpowers:verification-before-completion — owns the Iron Law. Run it; this adds the what./prospect — same discipline, earlier: before the work rather than before the claim./retrospect — after shipping. A FAIL here that you shipped anyway belongs there.Why a skill and not a rule. Every check here descends from a rule someone already knew. The failures happened anyway — including one where a defective probe was run within an hour of reading the note warning against it. Reading a rule does not execute it. Run the checks.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mikeprasad/aria-knowledge --plugin aria-knowledge40 skills in this plugin
/aria-assistMorning product-management review across all your projects. Use when the user runs /aria-assist, asks for a morning review / daily PM digest / "what should I do today across my products", or when the launchd job fires it headless. Two modes - `generate` (headless: read facts, deep-review ACTIVE projects, apply logged light writes, write the dated digest + per-project PM-REVIEW.md) and `review` (interactive: load today's digest, walk proposals, execute approved ones). Roster comes from projects_list; settings from pm_* keys in aria-knowledge.local.md. (Claude Code variant — full scheduler path. Other ports run manual-only generate/review.)/ask/ask — Query-Driven Knowledge CreationResearch a question, check existing knowledge first, draft a knowledge doc from the answer, and save directly to the appropriate category. Use when user says '/ask', 'ask about', 'research and save', 'I want to learn about', 'what is the pattern for'. Skips backlogs — the user reviews the answer in real-time before saving. (Code port — ADR-094.)/audit/audit — Audit Family DispatcherUmbrella for the audit family — the canonical way to run every sub-audit: '/audit knowledge' (scan memory and plans for extractable knowledge, backlog-to-promotion review), '/audit config' (CLAUDE.md/settings/docs drift and staleness), '/audit style' (mine session-log history for revealed working-style rules), '/audit usage' (value/ROI report over your own corpus), '/audit rules' (mine your distilled corrections for promotable standing rules), or '/audit share' (batch-review personal knowledge for promotion to the team-shared tier). Trigger: '/audit', 'run an audit', 'knowledge audit', 'config audit', 'audit my style', 'audit my rules', 'usage report', 'share knowledge', 'promote to team'./audit-config/audit config — Configuration & Documentation Health CheckInternal facet of the audit family — invoke via '/audit config'. Audits project configuration and docs for drift, staleness, and broken references. (Code port — ADR-094.)/audit-knowledge/audit knowledge — Knowledge Repository AuditInternal facet of the audit family — invoke via '/audit knowledge'. Scans Claude memory and plans for extractable knowledge (backlog-to-promotion review). (Code port — ADR-094.)/audit-rules/audit rules — User-Rule Mining Sub-AuditMine your distilled knowledge corpus — memory feedback rows, rules backlogs, always-on indexes — for recurring corrections that deserve promotion to numbered standing rules. Clusters by theme, verifies every quote at its source file, ranks by cross-session recurrence (at least 2 distinct sessions), and writes a rule ONLY on explicit approval. Opt-in. Trigger: '/audit rules', 'mine my corrections', 'promote my rules', 'audit my rules'.Other plugins' skills for the same job