Memory Leak Detector
Installation
SKILL.md
Memory Leak Detector
Your Node.js process uses 200MB on startup. After 4 hours, it's at 2GB. You restart it at 3am. The next day it happens again.
This skill scans your codebase for the 12 static patterns that cause 95% of memory leaks in production services — event listener accumulation, unbounded caches, closure-captured large objects, setInterval without clear. It also guides you through a heap snapshot diff to confirm the leak at runtime.
Supports Node.js, Python, Go, Java. Zero external API.
Trigger Phrases
- "memory leak", "heap growing", "process memory keeps growing"
- "OOM in production", "out of memory"
- "event listener leak", "addEventListener without remove"
- "setInterval not cleared", "timer leak"
- "unbounded cache", "Map growing"
- "heap snapshot", "memory profiling"
- "/mem-leak"