Skip to content
Back to skills

Performance Review

ASecurity

Find real performance problems — hot loops, N+1 calls, needless I/O, memory bloat.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentspythongoapiperformance

Works with

  • api

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add Ashutosh0428/pi-agent --skill performance-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Performance Review?

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

Security grade badge for Performance Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashutosh0428-performance-review/badge)](https://www.skillsdirectory.com/skills/ashutosh0428-performance-review)

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: performance-review
description: Find real performance problems — hot loops, N+1 calls, needless I/O, memory bloat.
trigger: when the user says slow, optimize, performance, or profiling
---
## When to use
The user reports slowness or asks to optimize/profile code.

## How
1. `read_file` the code; find the hot path before judging anything.
2. Look for, in impact order:
   - **N+1 patterns** — a query/API/file call inside a loop that could batch.
   - **Wrong complexity** — nested scans where a set/dict lookup works;
     repeated `list.index`/`in list` on large lists.
   - **Needless I/O** — re-reading files, re-opening connections, no caching
     for repeated pure calls.
   - **Memory** — loading whole files/datasets when streaming works; holding
     references that prevent cleanup.
   - **Sync blocking in async code.**
3. Estimate the win in plain words ("this turns 10k queries into 1").
4. Suggest measuring first when the hot path is unclear: `time.perf_counter`
   around suspects or `python -m cProfile -s cumtime`.

## Avoid
- Micro-optimizations (f-string vs concat) while an N+1 sits in the loop.
- "Rewrite it in X" — fix the algorithm first.
- Claiming speedups you can't justify.

## Done well
The few changes that matter, ranked by expected win, each with location and
a concrete replacement — plus how to verify the improvement.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.