Skip to content
Agentmart
Submit a tool

audit-performance

Sweep a codebase for performance hazards on hot paths — N+1 data access, per-iteration allocation or IO in loops, unbounded reads, missing caching or…

Skill by krixon

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/krixon-audit-performance

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Sweep a codebase for performance hazards on hot paths — N+1 data access, per-iteration allocation or IO in loops, unbounded reads, missing caching or indexing, blocking calls in async contexts — and surface each as a finding. Static-first, no profiler or benchmark required. Use when the user wants to audit performance, find slow paths, hunt N+1 queries or unbounded reads, or asks "what's slow?" / "what won't scale?".

Use cases: data, security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/audit-performance

What's inside

Skill name
audit-performance
Description
Sweep a codebase for performance hazards on hot paths — N+1 data access, per-iteration allocation or IO in loops, unbounded reads, missing caching or indexing, blocking calls in async contexts — and surface each as a finding. Static-first, no profiler or benchmark required. Use when the user wants to audit performance, find slow paths, hunt N+1 queries or unbounded reads, or asks "what's slow?" / "what won't scale?".
License
MIT
Instructions
51 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Performance Audit

Find where a **path plausibly hot carries a performance hazard** — work that scales badly with input or load — and surface each as a finding. Run the shared audit method in [../AUDIT-METHOD.md](../AUDIT-METHOD.md) with the lens, sub-dimensions, and dimension below.

The aim is *risk-weighted* hazards on hot paths, not micro-optimisations on cold code. A redundant allocation in a once-at-startup path is noise; the same allocation per request, per row, or per event is the concern. Findings name the hazard and the hot-path evidence — why this path matters — never a style preference.

## Risk lens (step 1)

Map the codebase's hot paths from its entry points and loop structure, then rank by how often the work runs and how it scales:

- **Per-request / per-event** — request handlers, message consumers, render loops, anything that runs once per unit of incoming work and multiplies a single hazard across traffic.
- **Loops and recursion** — per-iteration work inside a loop, especially one whose bound grows with input or a collection size.
- **Data-volume paths** — code that fetches, scans, or transforms collections whose size is caller- or data-driven, where cost grows with the row count.

Rank by exposure — a hazard on a per-request path scaling with input outranks one on a cold or fixed-size path.

## Current state: confirm the path is hot and unmitigated (step 2)

For each candidate, confirm two things before it counts: the path is genuinely hot, and nothing already absorbs the cost. A mitigation existing *somewhere* is not the same as guarding *this* path — trace whether it applies:

- A cache, memoisation, or batch/eager-load that already collapses the repeated work.
- An index or query plan that already makes the access cheap.
- A bound, limit, or pagination that already caps the result set.
- A path that runs once or over a fixed small size — cost that never scales is not a hazard.

## Sub-dimensions to sweep (step 3)

- **N+1 data access** — a query, fetch, or remote call issued per row of a prior result instead of once in a batch.
- **Per-iteration allocation or IO** — allocation, IO, or expensive computation inside a loop that could be hoisted, batched, or amortised.
- **Unbounded reads** — collection fetches with no pagination or limit, loading data whose size grows with the dataset.
- **Missing caching or indexing** — repeated identical computation or a lookup whose access pattern demands an index but has none.
- **Blocking in async contexts** — a synchronous or blocking call inside an async path, stalling the event loop or starving the pool.

Drop low-confidence noise — a hazard on cold code, or one a mitigation already covers, is not a finding.

## Dimension (step 4)

- **Dimension** — `performance` (the sub-dimension goes in the title/evidence, e.g. "N+1 query loading order line items per order in …", "unbounded fetch of all users in …" — never as a new top-level dimension)
- **Suggested category** — `enhancement` (hardening a hot path against a hazard); a hazard already degrading production latency or exhausting a resource is a `bug`
- **Where** — the hot path's module / type / function
- **Evidence** — the hazard, why the path is hot (the hotness justification, not a style claim), that no mitigation covers it, and how the cost scales

## Handover

Per [../AUDIT-METHOD.md](../AUDIT-METHOD.md) → *Handover*.

- **artifact:** findings (in [../contracts/finding.md](../contracts/finding.md) shape)
- **default:** `capture` — dedups against open issues, culls, files survivors as `needs-triage`
- **alternatives:** stop (review the findings yourself first)

From krixon/skills, MIT.

More from krixon/skills

Signals

Stars
1
Forks
0
Open issues
11
Last commit (this folder)
Jun 9, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from krixon

Cite this page

audit-performance skill. Agent Mart. https://agentmart.dev/skills/krixon-audit-performance (last updated 2026-10-24)