codebase-audit

codebase-audit is a skill for Claude Code from saajunaid/caddis-plugin. It costs 50 tokens per session (1,852 once invoked), scanned A, original, MIT.

A structured audit process for understanding an unfamiliar codebase before changing it, with findings and open questions recorded in Markdown files.

In plain words
What is it for?
Use it when joining a project, preparing implementation work, reviewing a codebase, or performing technical due diligence.
Why use it?
It reduces the risk of making changes without knowing how the existing project works or what constraints it has.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter.

Good fit Use it when joining a project, preparing implementation work, reviewing a codebase, or performing technical due diligence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saajunaid/caddis-plugin/codebase-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add saajunaid/caddis-plugin --skill codebase-audit
Clone the repo
git clone --depth 1 https://github.com/saajunaid/caddis-plugin

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codebase-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/codebase-audit/github.svg)](https://agentmods.dev/skills/saajunaid/caddis-plugin/codebase-audit)
Your own site
<a href="https://agentmods.dev/skills/saajunaid/caddis-plugin/codebase-audit"><img src="https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/codebase-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codebase-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/saajunaid/caddis-plugin/codebase-audit"><img src="https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/codebase-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,852 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.01852
Opus 5.5 $0.00020 $0.00741
Sonnet 5.5 $0.00010 $0.00370
Haiku 4.5 $0.00005 $0.00185

Measured 17d ago against content hash 3a8fbe2e4be6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codebase-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/coding/codebase-audit/SKILL.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codebase Audit Skill

Systematic 6-step audit for entering an unfamiliar codebase before architecture changes, major features, or refactoring. Do not guess patterns — audit first.

1. When to Apply This Skill

Trigger conditions:

  • "I'm new to this codebase"
  • "Audit this project before we start building"
  • "I need to understand what's here before changing it"
  • "Pre-implementation review"
  • Any major feature in a codebase you haven't worked in this session

Do not skip the audit even when the task seems small — hidden coupling causes broken assumptions.

2. Audit Scope — 20 Areas

# Area What to Look For
1 Architecture Monolith/microservice/monorepo, layer separation, module boundaries
2 Entry Points Main files, router setup, CLI entry, exports index
3 Framework & Runtime React version, Next.js, FastAPI, Django, Node version, Python version
4 Dependencies package.json/pyproject.toml — packages, versions, peer deps, outdated
5 Code Quality Lint config, formatter, TypeScript strict mode, type coverage
6 Testing Test runner, coverage %, which layers are tested, missing tests
7 Security Posture Auth implementation, env var usage, hardcoded secrets, CORS
8 Documentation README completeness, inline comments, API docs
9 Performance Signals Caching, lazy loading, database indexes, N+1 queries
10 DevOps / CI Build commands, CI config, deployment method, Dockerfile
11 API Design REST conventions, versioning, error response format, input validation
12 Data Layer ORM vs raw SQL, migration strategy, schema location
13 State Management Client state (Zustand, Redux, Context), server state (React Query)
14 Error Handling Global error boundary, unhandled promise rejections, logging
15 Environment Config .env.example, pydantic-settings, config validation on startup
16 Dead Code / Tech Debt TODOs, commented-out code, unused packages, deprecated calls
17 Naming Conventions Consistent file/folder naming, component vs module patterns
18 Shared Libraries Utility functions, hooks, services — shared vs duplicated
19 Accessibility ARIA usage, keyboard nav, color contrast, skip-nav
20 Observability Logging format, tracing, health endpoints, error reporting

Read the full file on GitHub · 205 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed · -24 tokens per session 3a8fbe2e4be6
  2. 1mo ago First seen · 205 lines · 74 tokens per session scan A 2b5de1d1aff5

Subscribe to this mod's changes

codebase-audit is a skill published in the GitHub repository saajunaid/caddis-plugin (0 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 1,852 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.