Skip to content
Back to skills

Perf Audit

ASecurity

Finds performance bottlenecks in code - N+1 queries, unnecessary re-renders, blocking operations

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added June 1, 2026
ai-agentsapidatabasefrontendperformance

Works with

  • api

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill perf-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Perf Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Perf Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-perf-audit/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-perf-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: perf-audit
description: Finds performance bottlenecks in code - N+1 queries, unnecessary re-renders, blocking operations
argument-hint: [file-or-directory]
user-invocable: true
allowed-tools: Read Grep Glob
effort: medium
---

## Performance Audit

Target: **$1** (or `src/` if not specified)

### Database / API
- N+1 query patterns (loop with query inside)
- Missing indexes (queries on non-indexed columns)
- Fetching all fields when only a few are needed (`SELECT *`)
- Sequential async calls that could be parallel (`Promise.all`)

### Frontend
- Expensive computations on every render (should use `useMemo`)
- Event listeners added without cleanup
- Large imports not code-split (`import * from`)
- Images without lazy loading or size hints

### General
- Synchronous operations that block the event loop
- Memory leaks (closures holding references)
- Redundant data transformation loops (can be combined)
- Missing caching for expensive operations

---

For each finding:
1. Show the problematic code
2. Explain the performance impact
3. Show the fix
4. Estimate improvement (rough order of magnitude)

Prioritize by impact: fix things that run in hot paths (request handlers, render functions, loops) first.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…