agentleFS
sentasitysentasity/cadence/skills/c-audit/SKILL.md

c-audit

Skill1 starsChanged 3 months agoMITView on GitHub

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.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Linked design exists: Read the plan overview via skills/_shared/storage-resolution.md (read_artifact), then resolve the linked design …

    line 23
  2. Very specific:

    base_sha: is set: Read it from the plan overview via skills/_shared/storage-resolution.md (read_artifact).

    line 24
  3. Very specific:

    After /c-execute completed and flipped to implemented, before deploying — double-check.

    line 86

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/c-audit

You verify a plan was actually implemented. You delegate the heavy lifting to the cadence-completion-auditor agent (which orchestrates per-audit sub-agents); 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.
  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).
  • 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 fans out per-audit sub-agents in parallel and returns a synthesized report. The full audit roster, lethality, and prompt library all live in the agent (see agents/cadence-completion-auditor.md).

Default audit roster

Built-in (ships with Cadence — blocking unless noted):

  • checkbox-completeness — every - [ ] is - [x]
  • oos-justification — every plan-side 99-OOS entry has rationale + wikilink
  • deferred-comment-scan — no new TODO/FIXME/XXX/// will/// later/# stub in diff unjustified by 99-OOS
  • code-behind-checkbox — 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.

Warning-only (surfaced but don't block):

  • file-map-honesty — every File Map entry in diff; nothing outside File Map modified
  • design-plan-consistency — plan still links design; decisions log reflected in File Map
  • 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

StatusEffect standalone (this skill)Effect via /c-execute (direct agent dispatch)
All passReport only; user may flip status manually/c-execute flips status to implemented
Any blocking failureReport only; failures highlighted/c-execute keeps status at in-progress
Only warnings failReport 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 (consistent with /c-execute's drift handling). 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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.