audit

A deliberate whole-codebase review that examines architecture, dependencies, code changes over time, and missing tests. It creates a multi-part report instead of checking one small edit.

In plain words
What is it for?
Use it for architecture reviews, dead-code reports, test-gap analysis, or finding parts of the codebase that are becoming harder to maintain. It can also create a self-contained HTML dashboard when a browsable report is requested.
Why use it?
It helps reveal broad structural problems that are easy to miss during routine coding, such as tangled modules, risky files, and untested areas.

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/rayforcedb/raysense/audit
Any agent
npx skills add RayforceDB/raysense --skill audit
Clone the repo
git clone --depth 1 https://github.com/RayforceDB/raysense

Made for: Claude Code, Codex.

Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 610 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.00055 $0.00610
Opus 5 $0.00028 $0.00305
Sonnet 5 $0.00011 $0.00122
Haiku 4.5 $0.00006 $0.00061

Measured 2d ago against content hash 8eac111224eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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.

claude-plugin/skills/audit/SKILL.md · 61 lines

How it starts

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

Audit

This skill is for deliberate "look at the whole codebase" requests. It calls multiple raysense MCP tools and produces a multi-section report. Do not run it as part of routine edits — it is loud by design and will pollute the working context.

All tools take a path argument; pass the current repo root.

Steps

  1. Architecture — call raysense_architecture. Reports root causes, cycles by SCC, layer levels, and unstable modules. Lead the report with the worst root cause.
  2. DSM — call raysense_dsm for the module dependency matrix and level assignments. Useful for showing the user the shape of the project, not just the metrics.
  3. Evolution — call raysense_evolution. Surfaces bus factor, change-coupling pairs (files that change together), and temporal hotspots (commits × max complexity).
  4. Test gaps — call raysense_test_gaps. Files without nearby tests, ranked by risk.
  5. Optional dashboard — call raysense_visualize if the user asked for something they can browse. Writes a self-contained HTML file the user can open.

Report structure

When summarising back to the user, lead with the one finding that matters most — usually the worst architectural root cause or the highest-risk untested file. Long lists overwhelm; a single prioritized headline plus a short table of next-three-things tends to land better.

When to skip

  • The user asked a narrow question. Use impact or a single targeted MCP call instead.
  • The repo is tiny (under ~50 files). The audit will produce mostly noise -- just call raysense_health and read out the grade.

See also

The audit's typed tools surface what raysense already knows. When the user asks an audit-shaped question that doesn't fit a typed tool, the query skill exposes Rayfall directly via raysense_baseline_query:

  • Custom architectural breakdowns -- group calls by caller module, count cross-layer imports, find ownership-by-language splits.
  • .graph.pagerank / .graph.louvain / .graph.betweenness over call_edges or module_edges for centrality-based audits.
  • raysense_baseline_import_csv to bring external audit data (coverage, lint counts, test runtime) into the same query substrate as the structural baseline.

Read the full file on GitHub · 61 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. 2d ago First seen · 61 lines · 55 tokens per session scan A 8eac111224eb

Subscribe to this mod's changes

audit is a skill published in the GitHub repository RayforceDB/raysense (11 stars, last pushed 4mo ago), licensed MIT. It adds 55 tokens to every session and 610 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-30.

Related

Other skills, from other repositories

ci-formats-review

Review SARIF, CodeClimate, compact, markdown, badge, and other CI-facing output formats for correctness and integrator expectations. Use when changes affect machine-consumed report formats or CI presentation layers.

fallow-rs/fallow · 45 tokens

coverage-loop

Iteratively improve Fallow Rust test coverage with cargo-llvm-cov, prioritizing meaningful untested behavior and preserving runtime correctness.

fallow-rs/fallow · 29 tokens

brooks-sweep

Full-sweep mode: runs a unified analysis across all quality dimensions — code decay, architecture, tech debt, and test quality — then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic engineering books. Triggers when: user…

hyhmrright/brooks-lint · 178 tokens

llm-friendly-context

Clarifies inputs, outputs, success criteria, decisions, and unresolved conditions so downstream consumers can execute without guessing. Use when writing or revising LLM-facing prompts, handoffs, planning artifacts, reviews, reports, or generated instructions.

shinpr/claude-code-workflows · 52 tokens

ring:exploring-codebases

Exploring a codebase across phases: scopes the target, detects architecture, components, and layers, deep-dives each discovered perspective, then synthesizes findings into actionable guidance with file:line evidence. Use to understand how a feature or system works before planning changes, or to orient on an unfamiliar…

LerianStudio/ring · 91 tokens

deps-audit

Audit dependencies for vulnerabilities, staleness, unused packages, and license risks — produce a health report with actionable fixes.

optave/ops-codegraph-tool · 27 tokens