/rdf:r-auditfrom RDF: rfxn Development Framework
Dispatches parallel reviewer and QA subagents to scan the entire codebase for latent issues, then synthesizes findings into a structured AUDIT.md.
Ships in RDF: rfxn Development Framework. 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.
You are running the /rdf:r-audit full codebase audit. This command dispatches multiple reviewer and qa subagents in parallel to scan the entire codebase for latent issues, then synthesizes findings into a structured AUDIT.md.
$ARGUMENTS — optional scope:
--quick: skip subagent dispatch, run inline checks only.rdf/work-output/ directory if it does not existrm -f .rdf/work-output/audit-*.mdAt command startup, create tasks for live progress tracking:
TaskCreate:
subject: "Load governance context and determine scope"
activeForm: "Loading governance context"
TaskCreate:
subject: "Dispatch audit subagents"
activeForm: "Dispatching audit agents"
TaskCreate:
subject: "Collect and deduplicate findings"
activeForm: "Collecting findings"
TaskCreate:
subject: "Synthesize AUDIT.md"
activeForm: "Writing AUDIT.md"
TaskCreate:
subject: "Present audit summary"
activeForm: "Presenting summary"
Issue each TaskCreate in its own message, in the order shown — see
reference/progress-tracking.md
for why parallel batches break display order.
Lifecycle: all tasks start pending. Before starting each stage, mark its task in_progress. After completing, mark completed.
For Stage 2 (parallel subagent dispatch), update the activeForm as agents complete: "Dispatching audit agents: 3/4 complete..."
Mark task "Load governance context and determine scope" as in_progress.
Run /rdf:r-util-code-scan all against the audit scope and write the
report to .rdf/work-output/audit-baseline-patterns.md. This gives
Stage 2 subagents a pre-computed anti-pattern inventory so they do
not each re-derive the same grep results.
The baseline covers the built-in pattern library (backtick-usage,
unquoted-var, bare-which, deprecated-egrep, dollar-bracket,
for-in-cat, silent-error, unsafe-temp, eval-usage, bare-coreutils,
missing-cd-guard, local-mask) plus any project-specific patterns
loaded from governance/anti-patterns.md. AUDIT.md cross-reference
marks each hit TRACKED or UNTRACKED.
Findings from this pass are surfaced to Stage 2a (regression + anti-slop) as extra context. Stage 2a promotes UNTRACKED hits into formal audit findings; TRACKED hits pass through unless the reviewer identifies new context.
Mark task "Load governance context and determine scope" as completed.
Mark task "Dispatch audit subagents" as in_progress.
Dispatch 4 subagents simultaneously. Each receives the audit context from Stage 1 plus focus-specific instructions.
Dispatch reviewer subagent in sentinel mode:
documentSymbol when
active, else a definitions grep; see
reference/read-discipline.md)
and read only the symbol ranges a finding needsDispatch reviewer subagent in sentinel mode:
Dispatch reviewer subagent in sentinel mode:
Dispatch qa subagent:
Audit: N/4 agents completeMark task "Dispatch audit subagents" as completed.
Mark task "Collect and deduplicate findings" as in_progress.
For each expected output file:
Report: Agent Health: N/4 complete, N partial, N failed
Mark task "Collect and deduplicate findings" as completed.
Mark task "Synthesize AUDIT.md" as in_progress.
Assign severity to each unique finding:
Assign category:
Write structured audit report:
# Audit Report: {project} {version}
**Date:** {YYYY-MM-DD}
**Scope:** {full codebase / scoped path}
**Agents:** {N}/4 completed ({N} partial, {N} failed)
## Summary
- Critical: {count}
- Major: {count}
- Minor: {count}
- Total unique findings: {count} (deduplicated from {raw count})
## Critical Findings
| # | Category | File:Line | Finding | Fix |
|---|----------|-----------|---------|-----|
(one row per critical finding)
## Major Findings
| # | Category | File:Line | Finding | Fix |
|---|----------|-----------|---------|-----|
(one row per major finding)
## Minor Findings
| # | Category | File:Line | Finding | Fix |
|---|----------|-----------|---------|-----|
(one row per minor finding)
## Agent Reports
- Regression/Anti-Slop: {verdict} — {summary}
- Security: {verdict} — {summary}
- Performance: {verdict} — {summary}
- Standards/Lint: {verdict} — {summary}
## Recommendations
(prioritized action items derived from critical + major findings)
Mark task "Synthesize AUDIT.md" as completed.
Mark task "Present audit summary" as in_progress.
Mark task "Present audit summary" as completed.
When --quick is passed, skip Stage 2 entirely:
/rdf:r-util-code-scan all inline — canonical anti-pattern check
(supersedes ad-hoc grep; writes to
.rdf/work-output/audit-baseline-patterns.md)What SKILL.md sets; muted values are Claude Code's defaults
38 skills in this plugin
/r-audit-slopAI slop audit. Finds dead code, orphan helpers, noop functions,
/r-buildUse when a plan exists and you want it built: dispatches the plan-execution orchestrator (engineer/QA/review gates) per phase at the right tier.
/r-context-auditMeasure, score, and report on Claude Code context overhead for this
/r-envUse to assess the environment against an optimal Claude Code + RDF setup: code intelligence plugins and language servers, tools, limits, sandbox, Claude Code currency, .claude files and the price table, with exact fix commands.
npx claudepluginhub rfxn/rdf --plugin rdfOther plugins' skills for the same job