Comprehensive Code Audit

VerifiedSafe

Audits the entire codebase for bugs, security vulnerabilities, CLAUDE.md violations, dead code, duplicate code, and test quality issues. Use when asked to 'audit code', 'find bugs', 'review codebase', 'check for security issues', or 'find dead code'. Writes prioritized findings to TODO.md without suggesting fixes.

Sby Skills Guide Bot
DevelopmentIntermediate
3/4/2026
Claude Code
#code-audit#bug-detection#security-review#dead-code#technical-debt

Recommended for

Automated summary

This skill performs a full audit of a codebase — bugs, security flaws, dead and duplicated code, test quality issues, and CLAUDE.md rule violations — and records the problems in TODO.md without proposing fixes.

Strengths

  • Four-step process with an explicit progress checklist the model tracks as it works
  • Findings are categorized with tags ([security], [bug], [edge-case], [convention], [dead-code], etc.) and ordered by priority
  • Preserves and renumbers any existing TODO.md items before appending new audit findings
  • Enforces analysis-only discipline: source code is untouched and no solutions are written

Limitations

  • Exploration targets are hardcoded (src/services, src/processing, src/gemini, src/bank…), so it assumes a project with that layout
  • Output is a single TODO.md file — no separate report or export to another format
  • Audit quality depends heavily on the presence and detail of a CLAUDE.md file
When to use it

Use it when you want a prioritized, actionable inventory of problems in an existing codebase before starting a remediation cycle.

When not to use it

Avoid it if you expect fixes to be applied directly, or if the repo has no CLAUDE.md and lacks the expected src/ structure.

Security analysis

Safe
Quality score87/100

The skill is read-only over source code and only writes audit findings to TODO.md; it has no bash, network, secret exfiltration, or destructive instructions. Write/Edit are present but explicitly scoped by the text to TODO.md, and source modification is prohibited.

No concerns found

How this analysis is made

Examples

Full codebase audit
Audit the codebase and write all findings to TODO.md.
Focused audit on services
Run a code audit focused on the services layer — check for bugs, missing auth, and dead code.
Test quality sweep
Audit the tests: find tests with no assertions, always-pass tests, and duplicated test logic, and add them to TODO.md.

name: code-audit description: Audits the entire codebase for bugs, security vulnerabilities, CLAUDE.md violations, dead code, duplicate code, and test quality issues. Use when asked to "audit code", "find bugs", "review codebase", "check for security issues", or "find dead code". Writes prioritized findings to TODO.md without suggesting fixes. argument-hint: [optional: specific area like "services" or "tests"] allowed-tools: Read, Edit, Write, Glob, Grep, Task disable-model-invocation: true

Perform a comprehensive code audit and write findings to TODO.md.

Pre-flight

  1. Read CLAUDE.md - Load project rules to audit against
  2. Read TODO.md - Preserve existing items (will be renumbered)

Audit Process

Copy this checklist and track progress:

Audit Progress:
- [ ] Step 1: Explore codebase systematically
- [ ] Step 2: Check CLAUDE.md compliance
- [ ] Step 3: Collect and categorize findings
- [ ] Step 4: Write TODO.md with priority ordering

Step 1: Systematic Exploration

Use Task tool with subagent_type=Explore to examine each area. If $ARGUMENTS specifies a focus area, prioritize that.

Areas to examine:

  • src/services/ - Core services
  • src/processing/ - Processing pipeline
  • src/routes/ - API routes
  • src/gemini/ - Gemini integration
  • src/utils/ - Utilities
  • src/bank/ - Bank logic
  • src/**/*.test.ts - Tests

For each area, look for:

  • Logic errors, null handling, race conditions
  • Security vulnerabilities (injection, missing auth, exposed secrets)
  • Unhandled edge cases and boundary conditions
  • Dead or duplicate code
  • Test quality issues (no assertions, always-pass, duplicates)

Step 2: CLAUDE.md Compliance

Check project-specific rules. See references/compliance-checklist.md for the complete list.

Step 3: Categorize Findings

| Tag | Description | Priority | |-----|-------------|----------| | [security] | Injection, exposed secrets, missing auth | Critical | | [bug] | Logic errors, data corruption | Critical/High | | [edge-case] | Unhandled scenarios | Medium | | [convention] | CLAUDE.md violations | Medium | | [type] | Unsafe casts, missing guards | Medium | | [dead-code] | Unused functions, unreachable code | Low | | [duplicate] | Repeated logic | Low | | [test] | Useless/duplicate tests | Low | | [practice] | Anti-patterns | Low |

For each issue, document:

  • File path and approximate location
  • Clear problem description
  • Category tag

Do NOT document solutions. Identify problems only.

Step 4: Write TODO.md

Handle Existing Items:

  1. If TODO.md already has items, extract them first
  2. Reformat each existing item to follow ## item #N [tag] format
    • If item lacks a tag, infer appropriate tag from content
    • If item is a simple bullet, convert to proper format
  3. Keep existing items in their original order

Write Final TODO.md:

# TODO

## item #1 [tag]
First existing item (reformatted if needed)

## item #2 [tag]
Second existing item (reformatted if needed)

---

# Code Audit Findings

## item #3 [security]
Description of the security issue.

## item #4 [bug]
Description of the bug.

## item #5 [convention]
Description of the CLAUDE.md violation.

Rules:

  • Each item: ## item #N [tag]
  • Content: Simple paragraph explaining the problem
  • NO solutions
  • Existing items stay at top in original order (items #1-N)
  • Separator line (---) between existing and new items
  • New audit findings below separator, ordered by priority (items #N+1 onwards)
  • All items numbered sequentially

Rules

  • Analysis only - Do NOT modify source code
  • No solutions - Document problems, not fixes
  • Be thorough - Check every file in scope
  • Be specific - Include file paths
  • No time wasting - Don't analyze how to fix

Termination

Output this message and STOP:

✓ Code audit complete. Findings written to TODO.md.

Found N issues:
- X critical/high priority
- Y medium priority
- Z low priority

Next step: Review TODO.md and use `plan-todo` to create implementation plans.

Do not ask follow-up questions. Do not offer to fix issues.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/comprehensive-code-audit-mmbizjmj/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/comprehensive-code-audit-mmbizjmj' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/comprehensive-code-audit-mmbizjmj/download' --output '.skill-downloads/comprehensive-code-audit-mmbizjmj/SKILL.md.part' && mv '.skill-downloads/comprehensive-code-audit-mmbizjmj/SKILL.md.part' '.skill-downloads/comprehensive-code-audit-mmbizjmj/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Read, Edit, Write, Glob, Grep, Task

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/comprehensive-code-audit-mmbizjmj/SKILL.md' && test -s '.skill-downloads/comprehensive-code-audit-mmbizjmj/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/code-audit' && cp -R '.skill-downloads/comprehensive-code-audit-mmbizjmj' '.claude/skills/code-audit'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/comprehensive-code-audit-mmbizjmj'

openskills read 'comprehensive-code-audit-mmbizjmj'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/comprehensive-code-audit-mmbizjmj/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills