joshft/correctless/caudit
Claude Code and agent skill by joshft/correctless
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Cross-codebase quality audit. Use after a major feature lands or periodically for systemic bug detection. Presets: QA, Hacker, Performance, UX.
Install
npx vskill@latest install joshft/correctless/cauditSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as joshft/correctless/caudit.
/caudit — Olympics Audit System
Shared constraints apply. Before executing, read_shared/constraints.mdfrom the parent of this skill's base directory. All constraints there apply to this skill.
Intensity Gate
This skill requires effective intensity high or above. Compute effective intensity using the procedure in the shared constraints (_shared/constraints.md).
Intensity threshold: /caudit requires high minimum intensity to activate.
- If the effective intensity is below the required intensity (i.e.,
standardwhen this skill requireshigh), print an informational message: - Skill name: /caudit
- Required intensity: high
- Effective intensity: (computed above)
- Override: pass
--forceto override the intensity gate, or setworkflow.intensitytohighor above in.correctless/config/workflow-config.json - Then do not proceed with the skill body. Stop here.
- If the effective intensity is at or above the threshold, or if the user passed
--force, proceed normally — skip the gate entirely, no gate output.
You are the Olympics orchestrator. You run convergence-based audits using parallel agents with specialized hostile lenses. Each agent is incentivized to find real issues and penalized for false positives. The loop runs until no critical or high findings remain.
Philosophy
The TDD cycle catches feature-level bugs. The Olympics catch systemic and adversarial bugs that TDD misses — because the agents have different lenses. A TDD agent asks "does this feature work?" An Olympics agent asks "how does this feature break everything else?" or "how does an attacker abuse this feature?"
Progress Visibility (MANDATORY)
Olympics audits run multiple convergence rounds, each spawning parallel agents. This can take 30-60+ minutes. The user must see what's happening at every stage.
Before starting, create a task list for Round 1 with each specialist agent. Update between rounds.
Before each round, announce: "Starting Round {N} — spawning {M} specialist agents ({preset} preset). Looking for: {what each agent hunts for}."
As each agent completes, announce immediately: "{Agent name} complete — submitted {N} findings ({C} confirmed, {P} probable, {S} suspicious). {M} agents still running..."
After triage, announce: "Triage complete — {N} raw findings → {M} validated, {K} rejected. {H} high-severity fixes needed."
After each fix round, announce: "Fix round complete — {N}/{M} findings resolved. Running regression tests..."
Between rounds, show the convergence trend: "Round 1: 12 findings → Round 2: 4 findings → Round 3: 1 finding. {Converging/Not yet converging}."
Parameters
Invoke with: /caudit [preset] [scope]
preset:qa|hacker|perf|ux|custom(default:qa)scope:all|changed|path/to/package(default:changed)
When to Run
- Post-feature: after any major feature lands. Scope to changed files + dependencies.
- End-of-week: scope to entire project. Finds systemic issues that accumulate.
- Pre-release: full scope with both QA and Hacker presets.
- After incident: targeted scope to the affected subsystem.
Branching and State
Create an audit branch and initialize audit state:
All fixes commit here, never to main. Structured commit messages: fix(qa-r2): resource leak in connection pool. After convergence, call workflow-advance.sh audit-done before merging to main.
Checkpoint Resume
Check for .correctless/artifacts/checkpoint-caudit-{slug}.json (derive slug from the preset and date, e.g., qa-2026-03-29).
- If found and <72 hours old: Read
completed_phases(e.g.,["round-1", "round-2"]). Before skipping, verify each completed round: the findings artifact for that round must exist in.correctless/artifacts/findings/(e.g.,audit-{preset}-{date}-round-{N}.json). If verification passes: "Found checkpoint from {timestamp} — rounds 1-{N} already done. Resuming from round {N+1}." Skip completed rounds. If a round's artifact is missing: restart from that round. On resume, also restore the in-progress round's SHA: ifround_start_shais present in the checkpoint, re-pin viagit update-ref "refs/audit-round-{N}-start" {round_start_sha}before starting the round. - If found but >72 hours old: "Stale checkpoint found (from {date}). Starting fresh."
- If not found: Start from Round 1 as normal.
After each round's fixes are committed, write/update the checkpoint:
Clean up the checkpoint file when the audit converges and completes successfully.
The Loop
Why fix verification is mandatory (AP-012 / PMB-002)
The QA Olympics audit on 2026-04-09 produced a 3-round convergence where every fix round introduced at least one new regression. R1's 19 fixes caused 3 R2 regressions; R2's 7 fixes caused 1 R3 regression; R3's 1 fix caused a CI failure on jq 1.7 that no local test caught. The convergence loop works eventually, but it wastes rounds. Each round means ~6 specialist agents + triage
- human review — cheap when there's no regression, expensive when there is.
The root cause: fix commits are treated as "closing the finding" rather than "new code that needs scrutiny". Fix rounds bypass the TDD discipline that the main workflow enforces on feature code. Running the test suite and a diff-focused review after each fix commit catches regressions cheaply, before they propagate to the next round.
Step 5.5: Pin the round-start SHA (pre-commit)
This step runs AFTER step 5 (Fix all confirmed findings) and BEFORE step 6 (Commit fixes). Its job is to pin the round's starting HEAD into a named git ref so that step 6a's consumer — which runs post-commit — can read back a SHA that really refers to the pre-fix tip.
Placing the producer here (not inside step 6a) is required by temporal Loop ordering: step 6a runs AFTER step 6 commits the fixes, so a producer placed inside step 6a would pin HEAD to the post-fix SHA, making the diff range ROUND_START_SHA..HEAD empty and silently bypassing PRH-005's pre-diff git-state read. See QA-010 for the root-cause analysis.
This step also binds ROUND_N from the workflow-state file (or a local counter) so that refs/audit-round-${ROUND_N}-start has a concrete number and so that step 6a's consumers of $ROUND_N are not orphaned.
Producer (pin at round start, before any fix commit for this round):
On checkpoint resume (see "Checkpoint Resume" above), the orchestrator MUST verify refs/audit-round-${ROUND_N}-start exists for each resumed round. If missing, recompute it from the checkpoint's recorded HEAD at round start and re-pin via git update-ref before proceeding. Do NOT fall back to a relative range that counts commits from the tip — the number of fix commits per round varies (INV-004 prohibits any relative diff range).
Step 6a: Fix Verification
<!-- STEP 6A BEGIN -->
After committing each round's fixes, run the full project test suite (from commands.test in workflow-config.json). Test failures become BLOCKING findings for the round — do not advance until the suite is clean.
Once tests pass, invoke the fix-diff reviewer plugin agent. The orchestrator (this skill, caudit) is responsible for computing the diff, enumerating path-scoped rules, wrapping both in untrusted fences, and invoking the agent via a namespaced Task call. The agent itself has read-only tools only.
Step 1 — Read back the round-start SHA.
The round-start ref was pinned in Step 5.5 (above, BEFORE step 6 committed fixes). See that section for the producer. Here we only READ it back, after fixes are committed:
Step 2 — Compute the fix-round diff.
The diff range is always <round-start-sha>..HEAD. Do NOT use any relative range that counts commits from the tip — the number of fix commits per round varies (1, 2, or 3+), so any relative range would miss fixes or over-report.
Step 3 — Enumerate path-scoped rules that govern touched files.
For every rule file under .claude/rules/*.md, read its YAML frontmatter and extract the paths: list. Parse with yq if available, else fall back to awk reading the paths: block, else grep -A on paths:. Intersect the rule's paths: list with the set of files changed in the diff (via git diff --name-only "${ROUND_START_SHA}..HEAD"). For each matching rule file, the orchestrator reads the rule body from the pre-diff git state:
Reading from ${ROUND_START_SHA} — not the index, not the checkout — is deliberate. It guarantees that if the fix commits themselves modified a rule file, the reviewer sees the rule as it applied when the finding was identified, not as rewritten by the fix.
Step 4 — Build the Task prompt with untrusted fences.
Structure the prompt as prose authored by the orchestrator, followed by two kinds of fenced data blocks:
Path-scoped rules applying to this diff
Each matching rule body is wrapped in an <UNTRUSTED_RULES> fence:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/caudit/SKILL.md
Popularity
- Repository stars
- 64
- Repository forks
- 2
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/joshft/correctless/caudit)