patterns/codebase-audit/skills/codebase-audit-reviewer/SKILL.md
Reviewer CSA for fact-checking Writer outputs against source code
npx skillsauth add ryderfreeman4logos/cli-sub-agent codebase-audit-reviewerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Role MUST be determined by explicit mode marker, not fragile natural-language substring matching.
Treat the run as executor ONLY when initial prompt contains:
<skill-mode>executor</skill-mode>.
YOU ARE THE EXECUTOR. Follow these rules:
csa run, csa review, csa debate, or ANY csa command.Fact-check all documentation files generated by the Writer CSA for a single crate. Verify every claim against the actual source code and fix errors in-place.
For every line number reference in README.md, review_report.md, blog.md, and chapters/:
For every function signature in facts.toml:
For every type definition in facts.toml:
exported_apis appears in README.mdpub fn / pub struct / pub enum / pub trait in source appear in facts.tomlunwrap()/expect() callsWhen you find an error:
FIXED: {file} — {what was wrong} → {what you changed}CRITICAL_FIX: Wrong function signature, nonexistent API, wrong typeMINOR_FIX: Wrong line number, typo in description, missing minor detailPrint a review summary to stdout:
=== Review Summary: {crate_name} ===
Files checked: {count}
Critical fixes: {count}
Minor fixes: {count}
Verdict: PASS | PASS_WITH_FIXES | NEEDS_REWRITE
{List of all FIXED entries}
If NEEDS_REWRITE (>5 critical fixes), the workflow should re-run the Writer.
This skill is invoked by the codebase-audit workflow. Not meant to be called directly.
The workflow provides ${CRATE_DIR} and ${crate} variables.
development
Use when running a non-blocking CSA background code health scan that uses csa health and csa tokuin estimate to propose refactoring GitHub issues for files over token or complexity thresholds.
data-ai
Recover main-agent context after `/clear`, `/compact`, or lost local thread state by using `csa recall` against recorded Claude main sessions.
tools
Use when: merged PR had HIGH/CRITICAL findings that represent a bug class — extracts reusable coding rule
tools
Use when: review found 2+ independent findings in different files, fix phase can parallelize RECON