/full-audit:full-auditfrom full-audit
Orchestrates an exhaustive, denominator-driven audit of an entire area (codebase, docs, memory, skills, DB, config) via a 6-phase pipeline. Defaults to read-only AUDIT_ONLY mode; never auto-advances to file writes. Not for single-file checks or fixed-checklist scoring.
Ships in full-audit. 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.
Read when SKILL.md points to them; scripts run unread.
Accuracy of the coverage claim — the word "exhaustive" ships with a method label or it doesn't ship at all. The moment an unreviewed area gets reported as reviewed, this skill has failed its own purpose.
/full-audit [area] · "audit everything" · "exhaustive audit" · "full audit" · "double-check everything"AUDIT_ONLY. These are analysis requests, not execution requests — see Execution Modes below. Advancing to PROPOSE or APPLY_APPROVED in the same invocation requires the user to say so explicitly (e.g. "audit everything and apply the fixes").This skill keeps analysis and execution in separate, explicitly-named modes. A trigger phrase like "audit everything" or "analyze this" selects a mode — it does not, by itself, authorize any file write.
| Mode | When active | What runs | Writable scope |
|---|---|---|---|
AUDIT_ONLY (default) | Any bare audit/analysis trigger, with no separate execution request | Phase 0-3 (scope, deterministic sweep, content review, judgment) + Phase 5 (coverage map) | None — audited files are read-only. No Edit/Write to any target file, protected or not. Only audit artifacts may be written (scratch scripts, canary staging, coverage map, recall ledger). |
PROPOSE | User asks for fix proposals (after an AUDIT_ONLY pass, or up front) | AUDIT_ONLY output + a listed fix/addition bucket (Phase 4 framing, nothing applied) | None — still read-only, output is a proposal list |
APPLY_APPROVED | User explicitly approves specific items or the fix bucket as a whole ("apply these items", "apply the fix bucket") | Applies only the items the user named as approved | Limited to the approved items. A protected path (see "Protected paths" under Safety Layers) is reachable only here, only for that one named item, and only by drafting the edit plus an apply script for the user to run themselves — the model has no path to lift a deny rule (the deny rule lives in the same settings file it protects). |
One-way per pass: AUDIT_ONLY never auto-advances into PROPOSE or APPLY_APPROVED within the same invocation. Advancing needs a new, explicit user statement. This closes the gap where "audit everything" silently walked all the way to Phase 4 fix-bucket execution — including a protected file changing — without the user ever approving execution, not just analysis.
Delegated runs: in a run with no user present (a subagent, a scheduled task), approval for PROPOSE or APPLY_APPROVED counts only when the caller passes the user's own approving words verbatim. A paraphrase or "the user approved" is not approval: stay in AUDIT_ONLY and return NEEDS_INPUT listing the items that need approval.
AUDIT_ONLY unless the request explicitly names PROPOSE/APPLY_APPROVED or explicitly approves specific items up front.git ls-files and git ls-files --others --exclude-standard - a tracked-only list drops uncommitted files, which are the ones most in need of review. (If the area is not a git repository, build the list with find and say so on the map.)<repo root>/.audit/coverage-map.md (for a non-git area: <area root>/.audit/coverage-map.md); use the project's own location if it already has one. If no map exists, say "no prior map" and do a full scan.Whatever a machine can count, a script counts — never eyeball it:
Cross-index contract sweep (mandatory sub-step — this is the layer most exhaustive audits skip): The layer most easily missed in "exhaustive" audits is "does the index/routing doc match the real files?" — careful reading of individual files alone will never catch this. Sweep deterministically:
Coverage caps intervention value: before starting Phase 2 content review, count how many items this audit could actually affect (e.g., "N files this rule change would apply to"). That count caps the maximum value of the intervention before you've even seen the results — if only 3 items are in scope, no amount of review sophistication can produce more improvement than those 3 items allow. Computing this cap up front prevents over-investing deep-review time in low-cap areas, and gives a concrete basis for shifting review effort toward higher-cap areas instead.
Canary mixing (a control group for telling "clean" apart from "the reviewer missed it"): when reviewing a code area, stage one known-clean file and one file with a planted defect from this skill's bundled example pool (scripts/canaries/{clean,seeded}/) using python3 "${CLAUDE_SKILL_DIR}/scripts/canary_mix.py" select --pool both --n-clean 1 --n-seeded 1 --stage-dir <scratch>/<run>/bundle --out <scratch>/<run>/canary-manifest.json, then mix the staged files into one or two real review bundles. Don't tell the reviewer dispatch that a control exists or which file it is, and don't count canaries in the Phase 1 denominator. The bundled pool ships with only 2 clean / 2 seeded example files — build a project-owned pool with pairs representative of the actual codebase before treating a recall number as meaningful, keep it in the project (not in the install folder, so a skill update does not erase it), and select from it with --canaries-dir <your pool> (layout: <pool>/clean/ and <pool>/seeded/ with one .json sidecar per seeded file; see scripts/canaries/README.md). For a docs/rules area, add .md pairs to the pool (one clean, one seeded with a numeric contradiction inside the body) and pass --ext .md to the same command; the bundled pool has none, so without your own .md pairs the script exits with "no files with suffix .md". The leading dot in --ext is optional. Put the clean and the seeded doc into different review bundles - their bodies look alike, and seeing both together gives away that they are controls. If the pool has no file with the requested suffix, or Python is unavailable, skip the step and note "canary not applied (no pool for this area / no Python)" on the map. Scoring uses the same canary_score.py.
${CLAUDE_SKILL_DIR} is this skill's folder; Claude Code fills it in. In other agents, replace it with the path where you installed the skill. Use python instead of python3 where only that exists (common on Windows). If a script fails to start, record ⚠️ check unavailable: <script> on the map instead of skipping silently.
Structural checks (Phase 1) alone do NOT justify calling something "exhaustive" — exhaustive = structure + content + rule dry-run, three layers. Rules and guards can't be confirmed as actually working just by reading their documentation — only running them against mock input fills in the third layer. The three layers are non-substitutable: structural checks can come back clean while the content is wrong, and the content can be correct while a rule still fails to fire at runtime.
CONFIRMED / FALSE-POSITIVE (reviewed and dismissed, with a refuting citation) / UNCERTAIN (needs inference — keep it, don't discard, to avoid false negatives) / NIT, each with a reasoning note. CONFIRMED at Critical/High needs 2+ of {condition, impact, reproduction} or it gets downgraded to Medium. FALSE-POSITIVE needs the discarded hypothesis + a refuting citation (command output or a line quote) — "no issue" in one line is not acceptable. An empty false-positive list is not a penalty (state "none dismissed" explicitly — this prevents over-suppression).(refutation check: output refutes the finding / output is unrelated and insufficient). If refuted, it moves to the false-positive bucket. "It's missing" claims must be backed by an exhaustive grep across the whole denominator (explicit regex and scope, grep -rn <pattern> <root> — substring matching alone doesn't count). Passing a mock test alone does not count as a refutation (remove the code and re-test instead). The conclusion needs one objective anchor: a rule/linter, an actual execution result, a direct two-point comparison within the reviewed content, or a grep-derived denominator — "it looks like" with no anchor is invalid (inference-requiring cases aren't invalid, they go to UNCERTAIN instead). Anchor-inject the countables: for anything a machine can count, hand reviewers Phase 1's deterministic values as a given anchor up front rather than asking them to re-derive it — this keeps reviewers out of the business of re-counting what a script already settled.file:line) that justifies it. Report any check with no mapped clause as a false-positive source candidate - checks left without a basis are what block legitimate work.Personally re-verify every reviewer report before classifying. Common false-positive patterns to check for:
file:line source itself (with Read, not a script or grep result) and quotes the refuting text. A regex refutation is supporting evidence only, never the sole reason for dismissal - a regex kill-test has dismissed real defects. A dismissal made without reading the source is marked dismissed-unread on the map and the item goes back to UNCERTAIN. The duty applies only to CONFIRMED -> dismissed, because that is the direction that tells the user "no problem".model parameter differently), in a fresh context. (2) Give it evidence only (file:line source, grep output); leave out the first pass's conclusion, severity and expected answer, and phrase the claim as a neutral question. (3) Output the 4 buckets plus one refuting command. (4) If the passes disagree, do not pick one: re-read the source, leave the item UNCERTAIN and escalate it to the user. (5) Label the vendor honestly on the map: if both passes are Claude models, same_vendor (only the tier differs, so this is not independent verification); independent only if a different vendor was used; unverified if the vendor cannot be shown. Items already UNCERTAIN after the first pass and Medium-or-lower findings are out of scope.[{"file": <path>, "verdict": <final bucket>, "summary": <one line>}] JSON and run python3 "${CLAUDE_SKILL_DIR}/scripts/canary_score.py" --manifest <canary-manifest.json> --findings <that JSON>. A trailing :line or :line:col on file and the letter case of verdict are tolerated. Scoring the same manifest twice does not double-count in the recall ledger (records are keyed by manifest hash plus seeded id). If a clean control file comes back CONFIRMED, mark every CONFIRMED finding from this run as "needs re-verification" on the coverage map — this does not auto-downgrade them. Drop any finding on a canary file from the fix/addition buckets.PROPOSE or APPLY_APPROVED. In AUDIT_ONLY (the default for a bare audit/analysis request), stop after Phase 3 — the coverage map may still list what would land in each bucket, but nothing here executes.PROPOSE; applied only under APPLY_APPROVED, and only for items the user approved (a blanket "apply the fix bucket" covers non-protected paths — a protected path always needs its own explicit approval, see Safety Layers)PROPOSE; executed under APPLY_APPROVED only per-item after explicit approval — never covered by a blanket approvalCreate or update the coverage-map file (default <repo root>/.audit/coverage-map.md, see Phase 0; same-day re-run = append a pass section):
Area | Method label | Findings/actions — four method labels required: [deterministic] / [LLM judgment] / [close read] / [dry-run] (the rule dry-run layer: a fixture was actually run through the rule)Assumption/Parameter | Status | Evidence needed | Materiality (would it flip the verdict?) | Owner. Five status values: externally-anchored (verified by a third party) / author-calibrated-prior (an adjusted assumption) / assertion-only (unsupported claim) / open-proposal (a TODO) / open-question. If one or more rows are assertion-only, open-proposal, or open-question AND materiality is High (flipping it changes the verdict), downgrade the final label to PARTIAL and name the owner who must resolve it (user / follow-up investigation / tooling). If the CONFIRMED conclusion does not depend on any unverified assumption, the Assumption Ledger may be omitted — if omitted, state "Assumption ledger: N/A (reason)" as one line.python3 "${CLAUDE_SKILL_DIR}/scripts/canary_score.py" --summary --skill full-audit (recall: k/n (seeded), RECALL_UNMEASURED while n<5) to the map verbatim. The recall ledger defaults to ~/.claude/full-audit/recall_ledger.jsonl (outside the install folder, so updates keep it); override it with --recall-ledger <path> or the FULL_AUDIT_RECALL_LEDGER environment variable.| Does | Does NOT |
|---|---|
| [BASH] Deterministic sweep (counts/versions/paths/parsing) | Compute a harness maturity score (a different tool's job) |
| [AGENT] Dispatch parallel content review (read-only) | Grant reviewers edit access |
[EDIT] Apply fix-bucket edits (stale/dead-refs/violations) — only in APPLY_APPROVED mode | Apply any edit while in AUDIT_ONLY or PROPOSE mode; execute addition-bucket changes without per-item approval (propose-only) |
| [WRITE] Record the coverage map | Declare "100% done" while hiding remaining gaps |
| [READ] Read the prior coverage map and diff | Silently include areas the user excluded |
| Risky Action | Reversibility | Applied Layers |
|---|---|---|
| Fix-bucket edit (existing file) | high (git) | L1 (the mode-gate is the user's conversational approval — switching to APPLY_APPROVED is the approval; it is not a confirmation prompt, so it does not count as L3) |
| Delete/move a file (addition bucket) | medium | L1 (explicit per-item conversational approval required) + mode-gate (APPLY_APPROVED only) |
| Editing a protected config/rules path | medium | L2 (deny — the model cannot edit it directly, if a deny rule exists) + L3 (the user runs the apply script themselves) + mode-gate: reachable only in APPLY_APPROVED, and only for the specific item the user named, by drafting an edit plus an apply script. There is no path for the model to lift the deny. |
Layer key: L1 = written instructions the model is asked to follow (this file); L2 = a physical block outside the model's control (a permission deny rule or a hook); L3 = confirmation by the user (a prompt or the user running the command). A yes given in the conversation is L1 (conversational approval), not L3; the mode-gate takes effect only when the user's request names the mode explicitly.
Protected paths are the rules, agent-instruction and settings files of the audited project (for example CLAUDE.md, a rules folder, settings files). Many setups also keep a deny-list: an optional user setting (for example permission deny rules in Claude Code settings) that blocks edits to those paths. If you have no deny-list, this skill still treats those paths as protected by rule: edits only in APPLY_APPROVED, only for the named item, and by apply script.
Guard-degradation observability: if a Phase 1 checker can't run, don't silently skip it — record ⚠️ check unavailable: [reason] on the coverage map.
APPLY_APPROVED and only for approved items; additions (new features, structural changes, deletions) are applied only per item after explicit approval. In AUDIT_ONLY and PROPOSE nothing is applied. Violation → scope creep, and the user's decision rights get bypassed.AUDIT_ONLY and never auto-advances into Phase 4 execution, and a protected path is never touched outside APPLY_APPROVED with that specific item named. Violation → a request to "look at X" silently becomes a request that changed X, including a file protected by a deny rule.| Failure | Detection | Recovery |
|---|---|---|
| Checker script execution failure | Script errors out | Rewrite and retry once → on repeat failure, record "⚠️ check unavailable" on the map, never treat it as passed |
| Ambiguous scope ("everything" — but everything up to where?) | Scope unclear at Phase 0 | Make the area table explicit and confirm with the user |
| Reviewers disagree with each other, or disagree with the deterministic sweep | Contradictory reports | Deterministic wins → adversarial re-check → escalate to the user if still unresolved |
WORKING / PARTIAL / BROKEN / BLOCKED (stalled on an external unresolved dependency or pending approval) + a bullet list of remaining gaps or blockers.| Rationalization | Counter |
|---|---|
| "The grep came back clean, so this area is done" | A clean grep means "pattern not found," not "content is sound." Label it [deterministic] only until content review happens (Invariant 1) |
| "Three reviewers found the same thing, so it must be true" | Agreement from reviewers sharing the same blind spot is a false-consensus trap, not confirmation. Verify with citations before accepting |
| "I checked this area last week, skip it this time" | Diff-based scope reduction is fine; silently skipping with no label is coverage inflation |
| "It's a small addition, let's just fix it along the way" | Violates fix/addition separation (Invariant 3). Batch additions and propose them together |
| "I'll do the map later if there's time" | An audit with no map resets to zero for the next session (Invariant 4) |
| "A few UNCERTAINs here and there do not matter" | Individual passes do not hide accumulated risk — 3+ in the same area triggers the composite-accumulation-gate flag (Phase 3) |
| "The user said 'audit', so finding an issue and just fixing it right there is helpful" | An audit/analysis trigger defaults to AUDIT_ONLY — fixing without an explicit mode-advance conflates analysis with execution (Invariant 5). Report it in the coverage map instead and wait for PROPOSE/APPLY_APPROVED |
AUDIT_ONLY/PROPOSE/APPLY_APPROVED) / list of applied fixes with line anchors (APPLY_APPROVED only) / list of proposed fixes and additions (PROPOSE/APPLY_APPROVED) / verification results (✅⚠️❌) / final status label / remaining gaps / Assumption ledger (if applicable)Internal revision history (the plugin's release version is in
.claude-plugin/plugin.json): r1 (initial release) → r2 (added the coverage-caps-intervention-value step to Phase 1) → r3 (added the AUDIT_ONLY/PROPOSE/APPLY_APPROVED execution-mode gate — a bare audit/analysis trigger now defaults to read-only and never auto-advances to Phase 4 fix-bucket execution or a deny-lift on a protected file; those now require an explicit mode-advance from the user) → r4 (added the single-reviewer batch-size cap to Phase 2 — batch size is a separate axis from parallel-agent count) → r5 (added an opt-in canary-mixing step to Phase 1/2/3/5 — a known-clean and a known-defective file from a bundled example pool are mixed unlabeled into a review bundle, then scored after the fact, as a control for whether "zero findings" means clean or means the reviewer missed it; corrected the deny-lift claim — the model drafts an edit plus an apply script for the user to run, it never lifts a deny itself; addedBLOCKEDto the Truthful Reporting status enum)
agents/openai.yaml (opens in a new tab)scripts/canaries/README.md (opens in a new tab)scripts/canaries/clean/account_repo.py (opens in a new tab)scripts/canaries/clean/settings_loader.py (opens in a new tab)scripts/canaries/seeded/billing_client.json (opens in a new tab)scripts/canaries/seeded/billing_client.py (opens in a new tab)scripts/canaries/seeded/user_lookup.json (opens in a new tab)scripts/canaries/seeded/user_lookup.py (opens in a new tab)scripts/canary_mix.py (opens in a new tab)scripts/canary_score.py (opens in a new tab)scripts/test_canary_mix.py (opens in a new tab)scripts/test_canary_score.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alexzio00/sovereign-skills --plugin full-auditOther plugins' skills for the same job