codebase-audit

A repository review skill that checks a codebase's correctness, design, complexity, tests, and operational risks.

In plain words
What is it for?
Use it to map the codebase, run safe checks, report actionable findings, and propose focused groups of fixes without changing the repository by default.
Why use it?
It gives you an evidence-based view of problems in the whole repository instead of reviewing only recent changes.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/frostney/pascal-mcp-sdk/codebase-audit
Any agent
npx skills add frostney/pascal-mcp-sdk --skill codebase-audit
Clone the repo
git clone --depth 1 https://github.com/frostney/pascal-mcp-sdk

Made for: Claude Code, Codex.

Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,953 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00070 $0.01953
Opus 5 $0.00035 $0.00977
Sonnet 5 $0.00014 $0.00391
Haiku 4.5 $0.00007 $0.00195

Measured 2d ago against content hash d701c48b7be3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

.agents/skills/codebase-audit/SKILL.md · 181 lines

How it starts

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

Codebase audit

Assess the repository's current state rather than a branch diff. Produce a truthful coverage map, actionable findings, and coherent remediation batches.

Modes and boundaries

The audit is non-remediating by default. It may run safe local tests, builds, servers, browser flows, disposable repros, isolated test data, and temporary artifacts, but it must not edit repository content or create persistent or externally visible side effects. Clean up disposable artifacts and report anything retained.

subagents is an additive execution input. Without it, do not delegate any part of the audit.

A request to save JSON authorizes only the named findings artifact; it does not authorize remediation. Read references/findings-json.md only when JSON output is requested.

There is no fix-all mode. After reporting, offer remediation batches. A fix follow-up begins only when the user selects a coherent batch or finding IDs. It authorizes focused local edits and validation on a focused branch, not commits, pushes, publication, issue creation, deployments, or shared-state mutation.

Map before judging

  1. Read applicable project instructions, vision and product documentation, current source, tests, configuration, lockfiles, generated interfaces, completion contracts, packaging, and deployment definitions.
  2. Map user-visible capabilities, entry points, modules, trust boundaries, data and state flows, background work, external dependencies, tests, tooling, and operational paths.
  3. Choose perspectives from the actual codebase:
    • always cover behavior, correctness, architecture and consistency, simplification, self-documentation, test value, and operations;
    • add UI/UX and accessibility when interfaces exist;
    • add security and adversarial-input analysis at trust boundaries;
    • add persistence, migration, transaction, concurrency, and idempotency analysis for stateful paths;
    • add API, CLI, library, packaging, compatibility, deployment, rollback, observability, and performance analysis only where those surfaces exist.
  4. For a shallow subsystem, trace its complete path and direct interactions. For a layered codebase, partition work by capability and perspective so later areas do not receive progressively thinner analysis.
  5. Build a bounded churn map from repository history. Rank frequently changed files, then inspect function, method, class, or module history where symbols are reliable. Use the repository's declared churn window or 90 days when none exists. Prefer its code-health tool; otherwise use Git file history and git log -L for stable symbols. Follow renames; state the window, touch count, and line churn, and label file-level fallback.

Read the full file on GitHub · 181 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 181 lines · 70 tokens per session scan A d701c48b7be3

Subscribe to this mod's changes

codebase-audit is a skill published in the GitHub repository frostney/pascal-mcp-sdk (2 stars, last pushed 6d ago), licensed MIT. It adds 70 tokens to every session and 1,953 once invoked, about $0.0003 per session on Opus 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-08-31.

Related

Other skills, from other repositories

prepare-release

Run all GocciaScript release-preparation tasks before /create-release — verify the build is green, sync docs and the website to source truth (numbers and claims), preview the changelog, run the conformance and generated-data checks, and open a prep PR — ending strictly before the version/changelog/tag work that…

frostney/GocciaScript · 96 tokens

profile-report-review

Review GocciaScript retained VM profile reports from test262 and benchmark main-CI runs. Use when Codex is asked to inspect uploaded test262 or benchmark performance/profile artifacts, compare week-over-week or main-run trends, investigate aggregate/detailed profile data, or turn profiling findings into compiler…

frostney/GocciaScript · 96 tokens

gocciascript-issue-validation

Validate GocciaScript engine issues against the project-specific test262 harness. Use alongside implement-issue for GocciaScript issues that mention test262, ECMA-262/ECMA-402 conformance, Intl, or parser compatibility flags.

frostney/GocciaScript · 58 tokens

implement-idea

Turns an unfiled idea into a confirmed mini-spec, implements and validates the selected approach, reviews it, and opens a draft pull request. Use when the user runs /implement-idea or asks to build something without an existing issue.

frostney/GocciaScript · 52 tokens

implement-issue

Validates and implements a GitHub issue against current repository evidence, runs the project's completion gate, reviews the change, and opens a draft pull request. Use when the user runs /implement-issue with an issue number.

frostney/GocciaScript · 48 tokens

review-pr

Resolves current pull-request review findings in place, validates and pushes fixes, and can autonomously converge and merge an opted-in pull request. Use when the user runs /review-pr or /review-pr automatic-merge.

frostney/GocciaScript · 47 tokens