Audit and prioritize performance work through bounded-work and forward-progress checks. Use when asked to find performance issues, investigate freezes/500s/OOMs, review retries or polling for no-progress loops, rank a performance backlog, or implement the next simple performance fixes.
npx skills add https://github.com/dzhng/skills --skill audit-performance
Find work that grows without a useful bound or repeats without progress. Produce an evidence-backed
ledger or report, then prefer the smallest fix that preserves recovery.
filesystem walks, and request-time reads. Follow each through its production caller; ignore
test-only paths.
queries, pages, entries, bytes, jobs, retries, or full-file rewrites. Distinguish a bounded large
constant from work that grows with history, tenants, paths, or outage duration.
identify what changes before the next attempt. If nothing must change, it can loop or starve
forever. Check that partial fixes do not merely delay the same work.
caller frequency. Dismiss findings already bounded cheaply enough or continuously healing.
finding and important dismissal using its existing convention. Otherwise return a compact report.
Include priority, trigger, impact, current owner, acceptance seam, and evidence.
test-writing workflow and prove the old behavior red at the outermost practical seam. Fix, review,
and update the ledger or report with verification evidence.
Rank highest when the issue can cause a user-visible freeze or error, memory/disk growth, blocked
request processing, data loss, fleet-wide amplification, or a poison item that prevents later work.
Prefer low-risk fixes that bound existing work: stream pagewise, honor backpressure, coalesce
schedules, move poison rows aside, skip proven no-ops, or make one exhaustive search end in a
terminal verdict. A safety cap is a pathology guard, not a normal product limit: set it above
legitimate large workloads, emit actionable telemetry when reached, and define what happens next.
Do not prioritize by scary-looking counts alone:
change. Fix states that can never heal, not timers that are merely long-lived.
cache, cursor state machine, or alternate read model just to reduce a modest fixed query count.
ordinary reconciliation on drift, uncertainty, restart, or prior failure.
prefer one complete pass with a ceiling high enough to indicate pathology rather than an ordinary
large project. For a legitimately huge namespace, persist a cursor and resume after it. Finding the
target updates identity; an exhaustive miss or abnormal ceiling produces the domain's terminal
verdict. Never restart the same partial prefix forever.
or fixed prefix forever.
never silently drop accepted durable data.
add no legacy branches or migrations unless real persisted data requires them.
configured bound, affected owner, and overload outcome.
The audit is complete only when every finding has a production trigger, quantified amplification,
priority rationale, acceptance seam, and recorded disposition; every dismissed candidate says which
bound or healing mechanism makes it acceptable. An implementation is complete only when its
red/green proof shows bounded work and continued recovery.
Take dzhng/audit-performance from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.