Skill

Performance Audit

performanceauditagentic

Save the file as ~/.claude/skills/performance-audit/SKILL.md (user-level, available everywhere) or .claude/skills/performance-audit/SKILL.md (project-level). Claude Code loads it automatically when its trigger condition matches.

Performance Audit Skill: Hot-Path Review of Your Current Change

Surfaces N+1 queries, sync I/O, and unbounded loops in your diff. Most performance issues are the same six patterns repeated.

Full Prompt
An installable performance-audit skill. Walks the changed code for common slow patterns and surfaces each with the one fix that resolves it.

What It Does

  • N+1 detector — queries inside loops in request handlers
  • Sync I/O sweep — blocking calls on hot paths
  • Unbounded work flag — loops over user input with no cap
  • One fix per finding — not five debate points

Install in 30 Seconds

Pick your tool above and download:

  • Claude Code: ~/.claude/skills/performance-audit/SKILL.md
  • OpenAI Codex CLI: append to AGENTS.md
  • Cursor: append to .cursorrules

Same content, three install paths. Reload and ask for the audit on your next change.

Why This Skill Earns Its Keep

Most performance issues are the same six patterns repeated. This skill encodes that list and runs it against the diff. It doesn't fabricate latency numbers — it tells you where the cost lives and what one change fixes it.

Install once, run before every push.