Memory Leak Detection
Detecting memory leaks through heap dumps, retention analysis, and reference tracing.
Install
/plugin marketplace add sethdford/claude-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add sethdford/claude-skills --skill memory-leak-detectiongit clone --depth 1 https://github.com/sethdford/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/engineer/debugging/skills/memory-leak-detection ~/.claude/skills/memory-leak-detectionPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Memory Leak Detection Identifying and fixing memory leaks through systematic analysis. ## Context You are hunting memory leaks. Use heap dumps and retention analysis. ## Domain Context - **Heap Dump**: Snapshot of all objects in memory at a point in time - **Retained Size**: How much memory would be freed if object was collected? - **GC Roots**: Objects not reachable from roots can be collected - **Retention Path**: Chain of references keeping object alive ## Instructions 1. **Establish Baseline**: Heap size under normal operation 2. **Create Heap Dump**: At peak memory; tools: jmap (Java), Chrome DevTools (JS) 3. **Analyze Dump**: Look for unexpectedly large objects 4. **Find Retention Path**: Which references keep the large object alive? 5. **Trace to Root**: Follow references back to GC root 6. **Identify Culprit**: What code maintains that reference? 7. **Fix**: Remove reference or ensure cleanup ## Anti-Patterns - Blaming garbage collector without evidence; GC doesn't leak - Not creating multiple heap dumps; one dump doesn't show trend - Ignoring cache objects; caches are common leak sources - Global state holding references; singletons often leak - Listener subscriptions not unsubscribed; subscription leaks are common ## Further Reading - Java Heapdump analysis guide (YourKit, JProfiler) - Chrome DevTools memory profiling - Node.js memory leak guide (clinic.js)
Details
- Skill name
memory-leak-detection- Repository
- sethdford/claude-skills
- Path
engineer/debugging/skills/memory-leak-detection/SKILL.md- License
- MIT
- Repo updated
- 11 March 2026
FAQ
What does the Memory Leak Detection skill do?
Detecting memory leaks through heap dumps, retention analysis, and reference tracing.
How do I install the Memory Leak Detection skill?
Claude Code plugin: /plugin marketplace add sethdford/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Memory Leak Detection popular?
It lives in sethdford/claude-skills, which has 48 GitHub stars and 10 forks.
Related skills
A B Test Design
48sethdford/claude-skills
Design rigorous A/B tests with hypotheses, variants, metrics, and sample size calculations.
A B Test Design Pm
48sethdford/claude-skills
Analytics and experimentation skill for product managers.
Abuse Case Design
48sethdford/claude-skills
Design abuse cases (negative use cases) showing how attackers misuse system features. Use when identifying attacks that exploit intended functionality or business logic flaws.
Performance Profiling
48sethdford/claude-skills
CPU/memory profiling, identifying bottlenecks, flame graphs, hotspot analysis.
Incident Response Plan
48sethdford/claude-skills
Develop comprehensive incident response plans with clear roles, procedures, communication protocols, and recovery workflows. Use when establishing IR processes, conducting tabletops, or updating response procedures after incidents.
Release Notes
48sethdford/claude-skills
Launch and go-to-market skill for product managers.
Browse the most popular Claude skills, all productivity & notes skills, or write your own with the skills generator.