# Performance Debug

> Diagnosing and resolving performance bottlenecks and latency issues

- Skill: `dongduong2001/performance-debug` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dongduong2001/performance-debug`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dongduong2001/performance-debug/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: DongDuong2001 (https://skillmd.com/u/dongduong2001)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dongduong2001/performance-debug

---


# Performance Debugging Skill

This skill focuses on identifying, analyzing, and resolving performance-related issues such as slow response times, CPU spikes, and UI lag.

## When to use this skill
- When the application is responding slower than SLAs allow.
- When CPU usage is unexpectedly high.
- When identifying database query bottlenecks (N+1 queries, missing indexes).

## Guidelines
- **Measure First:** Do not guess. Use profilers, APMs (Datadog, New Relic), and logging to find the bottleneck.
- **Isolate the Scope:** Determine if the issue is in the frontend, network, backend, or database layer.
- **Algorithmic Complexity:** Check for accidental O(n^2) or worse loops.
- **Caching:** Consider if a caching layer (Redis, Memcached) can bypass the heavy computation.

