Scan a scope of code for unconventional, strange, questionable, undocumented, or opaque things — latent bugs, unexpected complexity, inconsistencies, surprising design choices, and library/API workarounds. Produces a prioritized reading list, not a refactor plan. Use whenever the user wants to 'review' a directory/module/branch, flag 'weird' or 'suspicious' code, find 'red flags', spot 'code smells', or just understand what's odd in a slice of the codebase they're about to touch.
Ships in codebase-analysis. 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.
Produce a reading list of things worth a human's attention in a bounded scope of code — not a comprehensive audit, not a fix plan. The goal is to surface items that a thoughtful senior engineer would circle in a review: latent bugs, suspicious complexity, inconsistencies, odd design choices, and escape hatches around the type system or a library.
The output is optimized for someone who will read it and decide what, if anything, to chase down. Prefer fewer, sharper findings over a flood of shallow ones.
Trigger this skill when the user asks to:
Do not use this skill for:
auditpr-reviewapi-reviewdead-codetest-auditThe user will pass a scope via $ARGUMENTS or inline. Common shapes:
"review the foo/ module" → glob files under that path"this directory" → the current working directory, non-recursive unless the directory is small; otherwise ask"files changed in this branch" / "the diff against main" → git diff --name-only <base>...HEAD, then read each changed file in full (not just the diff — you need surrounding context to judge oddness)foo → ask which path.If the scope is larger than ~50 files, confirm with the user before reading everything — they may want to narrow it. If the scope is ≤50 files, just read.
Read every file in scope in full. Skimming or sampling produces shallow findings. If the scope is too big to read in full, say so and ask the user to narrow it — don't silently cut corners.
Five buckets. A finding can belong to more than one; pick the one that best describes why it's worth noticing.
Logic that's wrong, or correct today but fragile. Examples:
Code more elaborate than the problem warrants. Examples:
Two places doing the same thing differently, or leftovers from an incomplete change. Examples:
Decisions that work but aren't obvious without context. Examples:
Escape hatches around the type system, framework, or a library. Examples:
as Type, @ts-ignore, @ts-expect-error, any, unknown casts covering real uncertainty# type: ignore, cast(), # noqa in Python_internal, unsafe_)Object.getPrototypeOf, eval, Function(...), dynamic imports to bypass checks)For each finding:
path/to/file:line (or line range for a block).Don't suggest fixes unless the fix is trivial and obvious (e.g., "the == should be ==="). This is a reading list, not a refactor plan. If the reader decides to act, they'll ask.
Good findings surprise a reader who knows the code reasonably well. Examples of tone:
src/parser.ts:142 — hand-rolled recursive descent parser for CSV; the project already uses papaparse elsewhere. Footgun: will diverge from the library's quoting behavior.src/auth/session.ts:88 — silent catch around JWT verification returns null on any error, indistinguishable from "no token". Real bug: a malformed token and an absent token are treated identically.src/util/retry.ts:34 — magic constant 7 retries, no comment. Worth knowing; unclear if intentional.Bad findings (avoid these):
Aim for findings a linter can't catch. If it's a one-line rule a tool enforces, skip it.
Group findings under three headings, in this order:
Within each group, order by impact (your judgment), not by file path.
Use this structure exactly:
# Oddities in <scope>
<N findings across M files. Read every file in scope.>
## Top picks
1. **<one-line summary>** — `path:line` — one sentence on why this is the item most worth a human's attention.
2. **<one-line summary>** — `path:line` — …
3. **<one-line summary>** — `path:line` — …
(2–3 items. These should be the ones you'd personally walk a colleague to.)
## Bug
- `path/to/file.ts:142` — <one-sentence description>. Why: <real bug / latent bug>. <optional "unclear if intentional" note>
- …
## Footgun
- `path/to/file.ts:88` — <one-sentence description>. Why: <footgun explanation>.
- …
## Smell
- `path/to/file.ts:34` — <one-sentence description>. Why: <what's odd>.
- …
If a bucket is empty, omit the heading entirely — don't write "None."
For large scopes, you may delegate reading to Agent with subagent_type: Explore — one agent per coherent sub-module, each returning its candidate findings. Then you cull and merge. Only do this when the scope genuinely exceeds what a single pass can hold; for most requests, reading directly is faster and produces better findings because you see cross-file patterns.
What SKILL.md sets; muted values are Claude Code's defaults
/codebase-analysis:odditiesfrom codebase-analysis
npx claudepluginhub driangle/ai-powers --plugin codebase-analysis7 skills in this plugin
/api-reviewReview a library's public API for clarity, consistency, composability, predictability, edge-case handling, and correctness. Use when the user wants to review an API surface, check API design quality, or evaluate a library's exported interface. Designed for libraries and packages — not services, servers, or full applications./auditPerform a comprehensive codebase audit covering security, privacy, data integrity, architecture, and code quality. Use when the user wants to audit the codebase, check for security issues, or review code quality./audit-docsAudit documentation coverage for a project: discover CLI commands, public APIs, configuration options, and features, then cross-reference against documentation to find gaps, stale content, and missing sections. Use when the user wants to check if docs are up to date, find undocumented features, or verify doc completeness.Other plugins' skills for the same job