Not loaded · from cc-suite
Audits files for structured findings across 5 or 9 dimensions including logic, duplication, dead code, refactoring, and tech debt. Useful before commits or PRs.
Claude Code won't load this skill
It ships in cc-suite at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Delegate an audit to Claude Code. Claude inspects the specified scope and returns a structured findings table. Codex does not fix anything — use $audit-fix for the full cycle.
| Argument | Default | Effect |
|---|---|---|
--full | off | 9-dimension audit (adds security, performance, compliance, deps, docs) |
--mini | on | 5-dimension audit (logic, duplication, dead code, refactoring, shortcuts) |
| file/dir path | cwd | Scope — one or more files or a directory |
mcp__claude-code__claude_code:
prompt: |
Audit the following code and report every issue with exact file:line locations.
SCOPE: {files or directory to audit}
{IF --mini or default}
Audit dimensions (5):
1. Logic errors — incorrect conditions, off-by-one, unhandled edge cases, race conditions
2. Code duplication — copy-paste, near-duplicate logic that should be extracted
3. Dead code — unreachable branches, unused variables/imports/exports, stale flags
4. Refactoring opportunities — overly complex functions, poor naming, leaky abstractions
5. Shortcuts and tech debt — TODO/FIXME/HACK markers, hardcoded values, missing validation
{IF --full}
Audit dimensions (9):
1. Logic errors — incorrect conditions, off-by-one, unhandled edge cases, race conditions
2. Code duplication — copy-paste, near-duplicate logic that should be extracted
3. Dead code — unreachable branches, unused variables/imports/exports, stale flags
4. Refactoring opportunities — overly complex functions, poor naming, leaky abstractions
5. Shortcuts and tech debt — TODO/FIXME/HACK markers, hardcoded values, missing validation
6. Security — injection, auth bypass, data exposure, missing input validation, insecure defaults
7. Performance — N+1 queries, O(n²) loops, blocking I/O, unnecessary allocations
8. Compliance and documentation — missing error handling, undocumented public APIs, license issues
9. Dependencies — outdated packages, unnecessary deps, known-vulnerable versions
For each finding report:
- File:line
- Severity: Critical / High / Medium / Low
- Dimension (which of the above)
- Issue description (one sentence — what is wrong)
- Suggested fix (one sentence — what to do)
If a file is clean on all dimensions, say so explicitly.
PROVENANCE NOTE: The code was written by OpenAI Codex. Evaluate with full rigor —
do not defer to it. Apply independent judgment on every finding.
cwd: {project working directory}
effort: high
permissionMode: plan
Save the returned session_id as {audit_session_id}.
To expand on a specific finding:
mcp__claude-code__claude_code_reply:
session_id: {audit_session_id}
prompt: "Expand on finding #N — exact mechanism and minimal fix."
Display findings as a table, then a severity summary:
| File:Line | Severity | Dimension | Issue | Fix |
|---|---|---|---|---|
| ... | High | Logic | ... | ... |
Summary: Critical: N | High: N | Medium: N | Low: N | Total: N
If at least one finding, also write the table to .cc-suite/audits/audit-{YYYYMMDD-HHMMSS}-findings.md (create the directory if missing) with a Status column set to open, and report the path — a durable copy survives context compaction and lets a later $audit-fix pass start from this audit's exact output instead of re-auditing.
If clean: report CLEAN with the scope audited (no file is written).
A Claude-backed call that does not return a usable result is terminal for this skill. Stop and report; do not improvise a way to keep going.
This covers every non-success outcome: a runtime or transport error, a timeout, a rate limit, an empty or truncated result, and a result that does not match the shape this skill asked for. Absence of an error is not success — a call that returns nothing has failed, however it exited.
Never report a failed call as a result. It is not CLEAN, not "no findings",
not a completed verification, not an empty plan. A verification that did not run
is UNVERIFIED, and saying so is the entire value of the step.
Do not recover on your own initiative. Unless the user asks for it: do not
retry the call, do not open a replacement session, do not switch to another
Claude execution path (a different MCP tool, a different skill, a direct
invocation), and do not fall back to doing the work yourself in place of the
delegate. A failed claude_code_reply in particular must not silently become a
new claude_code session — that discards the conversation the reply was meant
to continue, and the original work may still be running.
Preserve the session. Report any session_id the call returned, even on
failure, so the user can resume that exact session rather than start over.
Say what may still be running. A timeout or transport error does not establish that the work on the other side stopped. Say so explicitly, so the user does not start a second attempt that overlaps the first.
Then stop according to what the call could have changed:
| Call class | On failure |
|---|---|
Read-only (claude-plan, claude-review, audit, verify, advisor *_consult) | Report the operation as blocked, with the error and any session_id. Nothing was changed. |
Write-capable (claude-debug, claude-implement) | Stop before any further delegation and state explicitly whether partial workspace changes may exist — the delegate may have written files before failing. Recommend the user inspect git status / git diff. |
Cycle (audit-fix) | Stop the current cycle. Retain the existing findings and their fix status; do not discard them and do not mark unattempted findings as resolved. Report which finding the cycle stopped on. |
permissionMode: plan keeps Claude read-only — audit only, no writessession_id to $verify after Codex applies fixes, to reuse the same Claude sessionWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub xiaolai/cc-suite --plugin cc-suite13 skills in this plugin
/agent-designUse when creating, editing, or reviewing a cc-suite advisor agent (a value-over-rules persona under `.cc-suite/agents/`). Covers system-prompt phrasing, model choice, tool restrictions, working-dir scoping, budget/turn limits, and the file format. Use proactively whenever the user asks to "add an agent", "make an advisor", "write a reviewer", or edits anything under `.cc-suite/agents/`./audit-fixFull audit→fix→verify cycle: Claude audits, Codex fixes, Claude verifies. Repeats up to 3 rounds until all issues are resolved or the user stops. Claude does all code reading and judgment; Codex does all file editing./claude-code-conventionsCanonical reference for Claude Code plugin artifact schemas, hook events, frontmatter fields, and naming conventions. Used to inject domain knowledge into Codex audit prompts. To update it from the latest docs, the user types /cc-suite:refresh-knowledge in Claude Code./claude-debugSend a bug or failing test to Claude Code for root-cause analysis and fix. Use when you've hit an error you can't trace, a test is failing for unclear reasons, or a behavior is wrong and the cause is deep in the codebase./claude-implementDelegate an implementation task to Claude Code. Use when you want Claude to write, edit, or refactor code directly in the project. Claude has full read/write access and will make the changes autonomously./claude-planAsk Claude Code to produce an implementation plan before you write code. Use when the task is complex, touches multiple files, or has unclear requirements. Claude returns a numbered step-by-step plan with file paths and interfaces — you implement it.Other plugins' skills for the same job