← All skills
Prompt · Slash command

Performance Review

Identify performance bottlenecks and suggest optimizations.

What happens when you install it

1

You run the install command

mcp install-skill performance-review

MCPHub CLI downloads this prompt from the registry.

2

Saved as a file in Claude Code

~/.claude/commands/performance-review.md

Claude Code reads all .md files in this folder as slash commands.

3

Use it in any conversation

/performance-reviewin Claude Code (after restart)

Claude runs the prompt against your current file or selection — no copy-paste needed.

Content

Performance Review

Identify performance bottlenecks in the selected code and suggest concrete optimizations.

What to look for

Algorithmic complexity

  • O(n²) or worse where a better algorithm exists
  • Linear scans on data that should be indexed or hashed
  • Repeated work that could be computed once

Memory

  • Memory leaks (event listeners, timers, closures holding references)
  • Excessive allocations in hot paths
  • Large objects held longer than needed

I/O and concurrency

  • Sequential awaits that could run in parallel
  • Blocking operations on the main thread / event loop
  • Missing connection pooling or reuse

Database

  • N+1 queries — fetching related data in a loop
  • Missing indexes on filtered/sorted columns
  • SELECT * when only a few columns are needed
  • Missing query result caching for expensive, stable queries

Frontend (if applicable)

  • Unnecessary re-renders (missing memoization, unstable references)
  • Large bundle chunks loaded eagerly
  • Unoptimized images or missing lazy loading

Output format

For each issue:

  • Where: file and line
  • What: the bottleneck
  • Impact: rough estimate (if measurable)
  • Fix: corrected code or approach

Install

mcp install-skill performance-review

After install, restart Claude Code and type:

/performance-review

Requires MCPHub CLI

Author

Looking for Agents?

Agents run with a full system prompt and persistent behavior — not just a one-off command.

Browse agents →