/credo:auditfrom credo
Read-only quality gate that audits completed work against requirements and Definition of Done before moving to 2_done/. Produces severity-ranked decision proposals (BLOCKER/MAJOR/MINOR/NIT) with evidence. Mandatory in every session mode.
Ships in credo. 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.
A read-only quality gate. audit inspects work that is claimed complete and
judges whether it actually satisfies its stated requirement and Definition of Done,
BEFORE the item is allowed into 2_done/. The output is a decision proposal for the
user, never a change.
Task backend. If the task backend is
gsd(.credo/config: task_backend, or theCREDO_TASK_BACKENDenv override), the credo item lifecycle is inactive and there is no2_done/gate to run - GSD owns task tracking. audit is still usable as a standalone read-only review tool, but it does not gate credo items in that mode.
audit judges whether FINISHED work is genuinely done and correct against its
requirement. It does not investigate causes and it does not exercise UI.
.env*, key files, or shell/session
history. Never exfiltrate or encode such content.audit writes are its own report under .credo/process/reports/ (plus,
in the fix step, the small fixes on the item's worktree branch).Audit-after-completed is a mandatory gate before any item moves to 2_done/, in
all session modes (active, passive, autonomous). No exceptions:
audit against that item.2_done/. A failing audit sends the
item back out (see Findings handling).Whatever is needed to complete the core of the item is part of that item and is NOT a separate side finding. The gate is about the item's own Definition of Done.
The gate above is mandatory for every item and is always run by a dedicated subagent that
is not the builder. The tier only decides HOW DEEP the audit goes, never WHETHER it runs.
Depth follows risk: there are two tiers, full and lean.
full - every check in this skill, with current verify evidence required. An item is
full when ANY of these holds:
ui: true (current browser evidence from the verify skill is required; the
audit cites it, it does not drive a browser itself);audit: full (the only override, see the items skill);full.full is the default. lean - only small, low-risk items that meet none of the above.
It reviews the diff and runs the tests, at about half the cost of full. Tentative: 6
trials so far; the rule stays tentative until 10+. Checks:
docs/** the change affects);A lean audit still produces severity-ranked findings with evidence, a verdict, and a report.
Who picks the tier. The main agent picks the tier when it spawns the audit subagent and
names it in the brief. The audit report states the tier plus a one-line reason in its
Summary (e.g. "lean: 3 files, no UI, no security area"). An auditor that finds a full
criterion on a lean-briefed item escalates to full and says so in the report. There is NO
audit: lean override - a risky item can never be downgraded.
Tests. The builder and the audit run the repo's relevant stage command when dogma
defines one: resolve the newest installed dogma with
ls -d "${CLAUDE_CONFIG_DIR:-$HOME/.claude}"/plugins/cache/*/dogma/*/ | sort -V | tail -1
and run <that dir>/scripts/test-commands.sh get relevant (exit 4 / empty output = not
defined). When dogma is absent or defines no relevant command, choose the relevant tests
as before. An audit of a branch touching shared core files runs the whole core test
folder. The full suite runs where dogma says (stage all, Final Verification, or once
per release bundle when DOGMA-PERMISSIONS sets §8eyz "run ALL tests only at release" to
[x]), else once per batch release (credo orchestration, "When the full suite runs") - NOT per item,
in neither tier. Running tests is a read-only check and does not break the audit's hard
constraints.
Batching. A bundle (2-3 small related items built in one worktree, credo
orchestration) gets ONE audit; bundle only lean-eligible items. Several finished
lean items from the same period may also go to ONE audit subagent. Each item still gets its own verdict and its own report section (one report per
item, or one report with a clearly separated section and verdict per item; the item move
follows each item's own verdict). full items are always audited singly, never batched.
For the item under review, gather the ground truth first (read, do not guess):
Requirement (verbatim) and its source. Treat user-verbatim text as
authoritative; never trim, soften, reinterpret, or invent constraints.Success Criteria (= DoD) (the observable "user can X" statements).ui frontmatter flag. If ui: true, a visual verify (via the verify skill)
is a DoD requirement, and its evidence must exist and be current.items, "Human-only checks do not block done"): a
check only the human can run is NOT a finding against the move to 2_done when the item
records it in ## Verify as human-only: pending with what to check. Flag it only when
that record is missing, or when the agent could have run the check itself.items, "Scope of an item"). Judge against the target as it stood
at GO plus any extension; a point that was lowered or moved to pass counts as not met.items, Success Criteria): an item whose result is an
algorithm, a detection, or a quality or numeric outcome must name a data set and a target
value in its DoD and record the measured value. Target missed: BLOCKER. Not measured,
or no measurement defined for such an item: MAJOR. Re-run the measurement yourself
where it is cheap; do not take the builder's number on trust.items, Build-completion gate): its report
lists what it tried to break. A missing list is a MINOR finding; a case you break that
the list claims held is judged by its own severity..credo/docs/ and relevant project docs/**.Then compare the actual built result (files, wiring, tests, verify evidence) against
that ground truth. Confirm each success criterion is genuinely met, that new code is
reachable and wired (not present-but-unreachable), and that documentation was updated
in the same change (stale docs = incomplete). Docs currency includes the project wiki
(a separate repo) and in-repo READMEs, not just files inside the commit; where dogma is
present, check that /dogma:docs-update was the mechanism (or an equivalent manual
update happened). audit checks and flags stale docs - it does not run the update itself.
Stale head / body check (the freshness backstop). As part of this comparison, run the
Body-freshness invariant from the credo items skill against the item: flag any place
where the item's head or body still claims "open / not built / needs a decision" while the
requirements log, an audit report, the code, or the version shows it was already clarified,
built, or shipped. This is the post-completion backstop that catches what the build-time
Full-body reconciliation sweep and the read/build-gate let through. Severity: a stale claim
of this kind is a BLOCKER when it misrepresents whether the core requirement is met
(the item text asserts open/unbuilt for something core that is actually done, or vice
versa), and a MAJOR when it materially misleads the next reader without hiding a core
miss. Evidence is the contradicting file:line / log / report location plus the stale
claim's own location, per the evidence rule below.
Completeness against the whole item. Check that the built work realizes EVERYTHING the whole item specifies (body + Success Criteria / DoD + the requirements log), not only what a brief or summary happened to mention. A planned requirement that was silently omitted is a finding: BLOCKER when the omission means the core requirement or a success criterion is unmet, otherwise MAJOR. Evidence is the exact item / DoD text that is left unfulfilled.
User-facing rule text vs source of truth. Check user-facing text or logic that encodes a
domain rule (grades, thresholds, formulas, enums, marker semantics) substantively against the
authoritative code source - not merely that something is present. A domain rule presented to
the user incorrectly is a BLOCKER; text that is materially misleading without falsifying
the core statement is a MAJOR. Evidence is the cited file:symbol plus the correct value
versus the shipped text. This differs from the stale head / body check above: that concerns
stale claims inside the item; these two concern the BUILT work against the item and against
the code.
Rank every finding with exactly one level:
2_done/.Every finding MUST carry concrete, checkable evidence:
file:line for code or documentation findings..credo/screenshots/ for visual findings (naming
<task-or-feature>-<viewport>-<YYYY-MM-DD>.png; viewport widths come from the config
key verify.viewports).No evidence -> not a finding. A verdict without evidence is not acceptable.
items, "Scope of an item"), with no own item and no new fix round for it. The auditor
still fixes small findings itself where it can ("Fixing small findings" below); only what
stays open goes into the collection item.For an item with frontmatter polish: true (credo items, "Polish items") the gate still
applies, in a lighter form:
## Verify for the next verify round with the owner.pass (best effort) with the leftover list. The item then moves to 2_done.1_todo/2_go if
the fix is clear and approved, or to 1_todo/1_clarify if it needs a user decision (a
question the agent decision rule cannot settle - credo items).
Record in the item's Historie why it came back.items, "Scope of an item"). If the finding is something the core
completion needs, it is part of this item, not a new one. An item created from an audit
finding is agent-owned: clarify_owner: agent, parent: <audited id> and a
created by agent first History line (credo items, "Clarify owner and the agent
decision rule").preset:, else the built-in balanced) is the only source of
the escalation stages for fix rounds: the model, the effort, the attempts per stage and
when back-to-human comes (credo-preset.sh stage <role> <attempt>, credo orchestration,
"Model presets"). Each fix round is one attempt on that ladder. Each stage allows its
configured attempts (until-done has no attempt cap; the budget caps stop it), then
back-to-human. This audit skill and audit agents keep no fail count and no brake of
their own. While the ladder has attempts left, whether another fix round runs is the main
agent's decision, never an owner question. An audit subagent never declares a brake
itself: it counts the earlier FAIL reports under .credo/process/reports/ for the item,
states the attempt number in the verdict, and the main agent decides the next step per
.credo/RULES.md and the ladder. The item goes back to the owner only at the ladder's
back-to-human or for a genuine owner decision (the escalation list and the
Named-Decision-Test, credo items). The until-done hand-back on the same failure twice
without progress is part of the preset semantics. By default the same finding returning
unchanged twice is an early hand-back too; a repo's .credo/RULES.md can switch that default off..credo/RULES.md overrides these defaults. Read it before the verdict
(credo rules skill).EVERY finding - at every severity, MINOR and NIT included - must be explicitly DISPOSITIONED. Dropping a finding with no disposition is not allowed. The three allowed dispositions are:
The severity levels and the evidence rule above are unchanged; this governs what happens to a finding AFTER it is reported, not whether it is reported.
Code fix beats a doc workaround. When a finding can be fixed cleanly in code, fix it at
the root rather than bloating the docs to describe or justify the messiness. Follow the
language and project best practices and do not mix conventions - for example a config
getter should emit canonical lowercase booleans rather than leaking Python-style
True/False and then documenting the leak. A doc-only workaround is a fallback only when
a clean code fix genuinely harms (a real, stated reason - e.g. it would break other
callers) or is impossible. Convenience is not such a reason.
The judgement only proposes. The audit names each finding and its recommended disposition before anything is changed. Small findings the auditor then fixes itself ("Fixing small findings" below); everything else is carried out by the acting/building agent per the audit's proposal - that separation is the point of the gate.
How the acting agent acts on it, by session mode:
Default in the batch workflow (credo orchestration): after the findings and the verdict
are written down, the same fresh audit subagent (never the builder) fixes SMALL findings
itself - a local, obvious fix with no design decision and no scope change (typically MINOR
or NIT, also a MAJOR whose fix is local and clear). It commits on the item's worktree
branch only (never push or merge), re-runs the relevant tests, and records each one as
"Fixed now" in the report with the commit. The report keeps the original findings; the
verdict states the state after the fixes. Anything larger - a BLOCKER, a redesign, a
user-only decision - is not fixed here; it follows "Findings handling" above.
In presence modes the fixes are listed to the user with the report; a borderline
call is left unfixed for the user.
The audit result is a decision proposal for the user, not a unilateral action. State a clear verdict (pass, or fail with the highest severity present) and the recommended item move. The user (or, in autonomous mode, the governing session rules) acts on it.
Write one report per audit to .credo/process/reports/ (resolve .credo via the repo
root; the reports directory is created by credo-init). Use frontmatter kind: audit:
---
kind: audit
item: 124
date: YYYY-MM-DD
tier: full
verdict: fail
highest_severity: BLOCKER
auditor: <subagent role, not the builder>
---
## Summary
<tier + one-line reason, e.g. "lean: 3 files, no UI, no security area">
<one-line verdict and recommended item move>
## Findings
- [BLOCKER] <what> - evidence: path/to/file.ext:42 (or screenshot path) - contradicts: "<criterion text>"
- [MINOR] <what> - evidence: ...
## Recommendation
<move item back to 1_todo/2_go | 1_clarify | allow into 2_done/; collection item entries and new independent items, if any>
Reference the item as #<id> and by date; do not rely on transcript line numbers.
Where dogma already governs a concern (versioning, git rules, language, linting), audit checks against dogma first and treats credo rules as fallback only, never as a duplicate or a conflict. DOGMA-PERMISSIONS always take precedence.
What SKILL.md sets; muted values are Claude Code's defaults
28 skills in this plugin
/budgetThe single source for all API budget cap and reset rules - how much of the 5-hour and weekly API limits may be spent, when to throttle, pause, wake up, or hibernate, and the commit-identity gate that runs before any commit. Use whenever you are about to start or continue autonomous work, before spawning or stopping subagents, when deciding how large a task chunk to take on, when a limit is near a cap, before a commit, or whenever someone asks "how much budget is left" or "can I keep going". Works standalone (no session skill required) and applies inside subagents too: any agent that spends API budget or commits must apply these rules.
/compact-plusSecure everything the user approved before a context compaction so a later /compact can never lose or alter it. Writes verbatim intent and handoff state to disk and commits plus pushes the tracked work product in the correct repository, then reports whether it is safe to compact. It does NOT run /compact itself - it makes a later compact safe. Run this only when the limit plugin's injected ACTION line names it (session-context fill crossed a configured threshold; in interactive modes only after asking the user once, autonomous mode runs it directly) or when the user invokes it manually. Never self-trigger it proactively - that only wastes tokens. Accepts extra trailing instructions to perform in addition to the securing checklist. A minimal mode (invoke as /compact-plus min) secures only intent plus handoff to disk - no audit, no commit or push - for a quick token-cheap save.
npx claudepluginhub marcel-bich/marcel-bich-claude-marketplace --plugin credoOther plugins' skills for the same job