Use when the user wants a Cadence plan's implementation audited against the codebase, such as re-running the completion audit after /c-execute or after hand edits.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of C Audit?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sentasity-c-audit)
---
name: c-audit
description: Use when the user wants a Cadence plan's implementation audited against the codebase, such as re-running the completion audit after /c-execute or after hand edits.
---
# `/c-audit`
You verify a plan was actually implemented. You delegate the heavy lifting to the `cadence-completion-auditor` agent (which runs the mechanical checks as a script and one branch-review sub-agent); your job is pre-flight, invocation, and surfacing the agent's report to the user.
## Architecture: standalone wrapper around the auditor agent
This skill is the **standalone** invocation path. `/c-execute` does NOT route its completion-gate audit through this skill — it dispatches `cadence-completion-auditor` directly. The agent is the single source of truth for audit logic; both invocation paths (this skill, and `/c-execute`'s gating call) dispatch the same agent with the same parameters and produce identical results.
This means: if you ever change audit behavior, change the agent. Changing this skill only affects the standalone UX (pre-flight messages, output formatting).
## Invocation form
`/c-audit <plan-path>` — standalone. Report only; do NOT flip status. There is no "called internally by /c-execute" mode — `/c-execute` doesn't call this skill, it dispatches the agent directly.
## Pre-flight (in order)
1. **Plan artifact exists** — resolve the plan slug via `skills/_shared/storage-resolution.md` (resolve); it must have an `00-overview`.
2. **Linked design exists.** Read the plan overview via `skills/_shared/storage-resolution.md` (read_artifact), then resolve the linked design (resolve) and confirm it exists with `status: approved` or later — do not read a raw `linked_design:` frontmatter line or assume a design folder path. A plan written with `/c-plan --from` has no design: confirm instead that each file on its `**Source:**` line exists.
3. **`base_sha:` is set.** Read it from the plan overview via `skills/_shared/storage-resolution.md` (read_artifact). If missing:
- Abort with: *"`base_sha` is not set on this plan's overview. /c-execute should have set it on first invocation. Either re-invoke /c-execute (which records `base_sha`) or manually set `base_sha` to the SHA at which execution started."*
4. **Diff range computable.** `git diff <base_sha>..HEAD` should not error. If it does (e.g. `base_sha` not in current branch's history), surface the git error verbatim.
## SHA-based diff range (NOT timestamp-based)
> [!warning] Why SHA, not timestamp
> An earlier draft of this skill (and similar tools) used "commits since the plan's `created` timestamp." That's brittle: rebases rewrite commit dates, merges interleave commits from other branches, and the timestamp-to-commit mapping isn't 1:1. SHA-based pinning is deterministic.
## Dispatch model
Dispatch the `cadence-completion-auditor` agent (via `Task` tool) with:
- The resolved plan handle per `skills/_shared/storage-resolution.md` (resolve); the agent reads the plan, its to-do state, and Base SHA via read_artifact. The `git diff <base_sha>..HEAD` range stays git-side and unchanged.
- The resolved linked-design handle (resolve), or for a `--from` plan, its source paths.
- The plan slug: on the notion backend the agent exports the plan and design with `scripts/notion-read.js` (it has no Notion MCP).
- Resolved config content — the JSON printed by `node "${CLAUDE_PLUGIN_ROOT}/scripts/resolve-config.js"` (specifically `audits.*` keys; `audits.*` is team policy, so a local override is honored but surfaced; never read config files directly).
- Mode: `standalone` (this skill ALWAYS passes `standalone`; the `gating` mode is for `/c-execute`'s direct-dispatch path).
- Diff range (`base_sha`..HEAD).
The agent runs the mechanical audits in one call to `scripts/audit-checks.js`, runs the build and document checks itself, dispatches one opus branch review, and returns a synthesized report. The full roster, lethality, and prompts live in the agent (see `agents/cadence-completion-auditor.md`).
## Default audit roster
Built-in (ships with Cadence — blocking unless noted). Checks marked *script* run in `scripts/audit-checks.js`, not a sub-agent:
- **checkbox-completeness** *(script)* — every task step is `- [x]`
- **oos-justification** — every plan-side 99-OOS entry has rationale + wikilink
- **deferred-comment-scan** *(script)* — no new TODO/FIXME/XXX/// will/// later/# stub in diff unjustified by 99-OOS
- **code-behind-checkbox** *(script)* — every `- [x]` step claiming to add a function/symbol has that symbol in the diff
- **branch-review**: one opus sub-agent reads the design, the plan, and the whole branch diff, and judges design intent, spec-silent behavior (what a reasonable user would expect), and cross-task problems. Only a Critical finding blocks; Important and Minor findings go to the report's For your decision section. `design-intent-alignment` in a roster is an alias for it.
- **build-validator** — runs `audits.build_validator.command` (e.g. `make ci`); zero exit required. **Refuses (blocking error) if `command: null`** — fresh-install default forces explicit configuration.
- **merge-integrity** *(script)* — no leftover lane worktrees or branches, no conflict markers, no uncommitted code, no stray commits
Warning-only (surfaced but don't block):
- **file-map-honesty** *(script)* — every File Map entry in diff; nothing outside File Map modified
- **design-plan-consistency** — plan still links design; the design's decisions reflected in the plan
- **validation-doc-presence** — 96-validation.md (or 98 for vault-shaped) has all three categories
Repo-configurable add-ons (declared in `.cadence/config.yaml` → `audits.optional`):
- `api-drift-detector`, `update-docs`, or any other named audit. Lethality declared per-audit in config.
## Lethality and outcomes
| Status | Effect standalone (this skill) | Effect via /c-execute (direct agent dispatch) |
|---|---|---|
| All pass | Report only; user may flip status manually | `/c-execute` flips status to `implemented` |
| Any blocking failure | Report only; failures highlighted | `/c-execute` keeps status at `in-progress` |
| Only warnings fail | Report only; warnings highlighted | `/c-execute` flips to `implemented` and surfaces warnings |
> Note: the right column describes `/c-execute`'s behavior for completeness — those outcomes are produced by `/c-execute` dispatching the same agent this skill dispatches. The agent is identical; only the caller's reaction differs.
**Three response paths on failure.** Presented via `AskUserQuestion` (TUI multi-choice) with "Fix" marked `(Recommended)` in most cases.
> **Hard gate — every `AskUserQuestion`, no exceptions:** (1) the `question` opens with a plain-English lead a newcomer could follow — here, *which* audit failed and what's at stake (the user has waited through a long execution and may not remember which audit covers what); (2) exactly one option is marked `(Recommended)` and listed **first** — triage / "which next?" menus included ("your call" is a non-answer); (3) each option's `description` gives the one-sentence trade-off. Full spec: `skills/_shared/ask-user-question.md`.
- **Fix** *(Recommended)* — re-dispatch the implementer (or relevant sub-agent) with the failing audit's report; re-run `/c-audit`.
- **Mark out of scope** — work moved to plan-side 99-OOS with rationale + wikilink; the blocking item now justified; re-run `/c-audit` (usually passes). Internally an OOS entry; user-facing label is "mark out of scope."
- **Abort** — leave plan at `in-progress`; user resumes later.
## Standalone use cases
- After `/c-execute` completed and flipped to `implemented`, before deploying — double-check.
- Mid-execution sanity check on a partial plan (will be all blocking failures until tasks complete — not useful unless you want to see progress).
- Long after implementation, audit against current main-branch state to catch unrelated regressions.
- User suspects `/c-execute`'s embedded gating call glossed over something — re-running standalone dispatches the same agent and produces a fresh report.
## When NOT to use standalone
- **During an `/c-execute` pause on an audit failure** — the report `/c-execute` shows IS what this skill would produce (same agent, same parameters). Re-running wastes tokens.
- **On a `draft` plan that hasn't been executed** — checkboxes all `[ ]`; report all blocking.
`/c-execute`'s pause surface includes: *"To re-run the audit after fixing, type `/c-audit <plan-path>`."*
## Output format
Returned by `cadence-completion-auditor`; surface unchanged to the caller. Leads with a plain-English paragraph; then Verdict (PASS / BLOCKED / WARNINGS-ONLY); then Blocking failures, Warnings, For your decision, What's working, Recommended next action.
## What `/c-audit` doesn't do
- Doesn't validate the deployed system (that's `/c-validate`).
- Doesn't review docs for substance (that's `/c-check`).
- Doesn't find code bugs unrelated to the plan (that's `/c-find-bugs`).
- Doesn't write code, modify the plan, or flip status when called standalone.
- Doesn't dispatch implementer fixes — reports; user (or /c-execute) decides on fixes.
- Doesn't walk For your decision items or write Review decisions rows; re-run `/c-execute` on the plan to decide them.
## References
- Companion agent: `cadence-completion-auditor`.