Detect and fix memory leaks using heap snapshots, memory profiling, and leak detection tools. Use when investigating memory growth, OOM errors, or optimizing memory usage.
Install
npx skills add aj-geddes/useful-ai-prompts --skill memory-leak-detectionnpx skills add aj-geddes/useful-ai-prompts --skill memory-leak-detection -a claude-code -gnpx skills add aj-geddes/useful-ai-prompts --skill memory-leak-detection -a codex -ggemini skills install https://github.com/aj-geddes/useful-ai-prompts.git --path skills/memory-leak-detectiongh skill install aj-geddes/useful-ai-prompts memory-leak-detectiongit clone --depth 1 https://github.com/aj-geddes/useful-ai-prompts /tmp/aj-geddes__useful-ai-prompts
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/aj-geddes__useful-ai-prompts/skills/memory-leak-detection ~/.claude/skills/memory-leak-detection # Claude Code
cp -R /tmp/aj-geddes__useful-ai-prompts/skills/memory-leak-detection ~/.agents/skills/memory-leak-detection # Codex, Cursor, Gemini CLI, Copilot, OpenCode