DebuggingClaude Code
Performance Investigation
Diagnose why something is slow
Prompt
This [endpoint/function/page] is slow. It takes [X seconds/ms] when it should take [Y].
Relevant code: [file paths]
Analyze for:
1. N+1 queries or unnecessary database calls
2. Missing indexes
3. Expensive computations that could be cached
4. Blocking I/O that could be async
Rank findings by likely impact. Show me the fix for the top one.