Back to Skills

suggest-performance-fix

verified

Identify performance issues and bottlenecks suggesting optimizations a senior developer would recommend. Use when user mentions performance/optimization/speed issues, asks "why is this slow?" or similar questions, code contains obvious performance anti-patterns (N+1 queries, unnecessary loops, etc.), user works on performance-critical code paths, performance profiling shows bottlenecks, or large data processing or database operations detected.

View on GitHub

Marketplace

marketplace-claude

kjgarza/marketplace-claude

Plugin

senior-software-developer

development

Repository

kjgarza/marketplace-claude
2stars

plugins/senior-software-developer/skills/suggest-performance-fix/SKILL.md

Last Verified

January 20, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/kjgarza/marketplace-claude/blob/main/plugins/senior-software-developer/skills/suggest-performance-fix/SKILL.md -a claude-code --skill suggest-performance-fix

Installation paths:

Claude
.claude/skills/suggest-performance-fix/
Powered by add-skill CLI

Instructions

# Suggest Performance Fix

Identify performance issues and bottlenecks in code, suggesting specific optimizations.

## Performance Issue Categories

### 1. Algorithmic Complexity
- **Nested Loops**: O(n²) or worse time complexity
- **Inefficient Search**: Linear search when hash lookup possible
- **Redundant Calculations**: Computing same value multiple times
- **Inefficient Sorting**: Using bubble sort instead of quicksort/mergesort
- **String Concatenation**: Building strings in loops

### 2. Database Performance
- **N+1 Query Problem**: Loading related data in a loop
- **Missing Indexes**: Queries on unindexed columns
- **SELECT ***: Fetching unnecessary columns
- **No Query Pagination**: Loading all records at once
- **Missing Connection Pooling**: Creating new connection per query
- **Lack of Prepared Statements**: Re-parsing queries

### 3. Memory Issues
- **Memory Leaks**: Objects not released/garbage collected
- **Excessive Allocations**: Creating unnecessary objects
- **Large In-Memory Data**: Loading entire datasets into RAM
- **Caching Issues**: Not caching expensive operations
- **Deep Cloning**: Expensive deep copies when shallow would work

### 4. I/O Performance
- **Synchronous I/O**: Blocking operations in async context
- **No Batching**: Multiple small I/O operations instead of batch
- **Missing Compression**: Large payloads without compression
- **No Streaming**: Loading entire files into memory
- **Excessive File I/O**: Reading/writing files repeatedly

### 5. Frontend/API Performance
- **No Lazy Loading**: Loading all data upfront
- **Missing CDN**: Serving static assets from origin
- **Large Bundle Size**: Shipping unnecessary code
- **Render Blocking**: Blocking page render with scripts
- **Missing Caching Headers**: Not utilizing browser cache
- **Excessive API Calls**: Multiple calls when one would suffice

### 6. Concurrency Issues
- **Missing Parallelization**: Sequential when parallel possible
- **Race Conditions**: Unprotected shared stat

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
9521 chars