Variables
Arguments: $ARGUMENTS
Argument Parsing
Parse $ARGUMENTS for:
- Scope (optional): directory or file path to limit the audit (default: entire repo)
- Target forms (optional):
--repo,--repos-from,--owner,--fleet,--skip, or the
same request in words, run the audit once per repository. See
Several repositories. With none, the audit covers this repository only.
--fix: after reporting, hand the findings off to the remediation lanes
(/implementation:implement (if enabled) then /verification:confirm (if enabled)) rather than fixing inline. See
Remediation. Per the naming doctrine's verb
contract, bare audit is read-only. It reports at Phase 3 and stops; remediation intent sits
behind this explicit override. (--review-only is also accepted and means the bare read-only
default.)
--medium <value>: governs only the offer of a rendered view
- Dimension filters (optional, mutually exclusive):
--docs-only: only documentation checks--code-only: only code-quality checks--config-only: only configuration checks--arch-only: only architecture checks
If no filter is specified, audit every active dimension, the Phase 1 per-file fan-out makes
dimension order irrelevant (each file gets its own subagent). Enumerate primary-sources across all
active dimensions and dispatch per file.
Adapting to your environment (graceful degrade)
The audit itself (Phases 0–3) is self-contained. Phase 2 names an adjacent capability,
documentation-research tools (MCP docs servers, library-docs lookers-up, web search). Having one is
optional; using one when your setup provides it is not, per Phase 2's external-research step. With no
such tool, follow the inline graceful-degrade guidance, which confidence-tags the
externally-unverifiable part needs-review rather than guessing.
Boundary, the adjacent drift lanes
This skill verifies factual claims in a repo's docs, config, code, and architecture notes
against the repo's actual state. Seven adjacent lanes each own a different kind of drift, and this
skill owns none of them.
This table is a router for the operator, not a dispatch list for this skill. Bare audit is
read-only, and some of these lanes mutate: /discipline:recheck-against-upstream (if enabled) says to "Correct
each forward now: fix gaps toward upstream", and others carry a fix mode. Invoking one from inside a
read-only run would let this skill edit the repo through a sibling, which its own verb contract
forbids. So a request that belongs to another lane is reported as uncovered, and that lane is
named as the next thing the operator can run rather than invoked here. Name the lane whether or
not its plugin is installed, and never assert that an absent one is available. --fix authorizes
remediation of this skill's own findings only; it does not extend to running a sibling's.
Each row states its own invocation form, since one row is an agent and the rest are skills.
| The drift is about | Owner |
|---|---|
| Whether a page deserves to exist: derivable from the code it describes, aspirational, or redundant. Also doc freshness scoped to a change under review | the review plugin's doc-drift-detector agent, so invoke it with the Agent tool as @review:doc-drift-detector, or run /review:fanout run-everything (if enabled). Name that mode: fanout's default lifecycle-tiered mode never dispatches this agent, only run-everything does, so an unqualified /review:fanout (if enabled) can finish without ever reaching the owner. The dispatch rule is the question asked, not the scope swept: whether a page should exist is the agent's, it runs a derivability admission gate this skill has no equivalent of; whether a page's claims are true is always this skill's, repo-wide included. --docs-only is this skill's own exhaustive claim pass and never routes out |
| A session's own working assumptions: base-branch movement, a stale handoff, a referenced PR, issue, or branch whose state has since changed | /session-flow:reanchor (if enabled) |
| Whether the surface in flight still matches the current official upstream docs | /discipline:recheck-against-upstream (if enabled) |
| Prose restating an external source with no pointer, and verification stamps past their expiry window | /attribution:audit (if enabled) |
| Claude Code's own configuration and instruction surfaces: settings.json, .mcp.json, hooks, permissions, environment variables, and the text of CLAUDE.md, AGENTS.md, and .claude/rules/ judged against current model capability or against how Claude Code actually behaves | /harness-config:audit (if enabled), with /harness-config:audit-automation-gaps (if enabled) for automation-landscape gaps and /harness-config:audit-instructions (if enabled) for instruction-surface drift. Phase 0 reads those instruction files here too, but only as the convention lens: a claim they make about this repo is this skill's to verify, a claim they make about the harness or a prescription aimed at the model is not |
| What moved in the instruction-placement findings since the last placement audit | /instruction-placement:delta (if enabled) |
| What moved in the enforcement surface since the last enforcement audit | /overengineering:delta (if enabled) |
The last two are delta lanes over their own prior runs, not over this audit's findings. This skill
keeps no baseline and reports no deltas: each run is a full pass.
Audit dimensions & targets (tracked config seam)
Per-dimension audit targets. primary-sources (where claims live), verification-sources (where
to verify), and example-claims (illustrative { claim, verify-via } rows for the claim-extraction
pass). Come from the consuming repo's config, resolved additively across the config-cascade
layers that