chromedevtools avatar

Memory Leak Debugging

This one walks you through finding and fixing memory leaks in JavaScript and Node.js apps. It's opinionated about not reading raw heapsnapshot files directly because they'll blow up your token budget, instead pushing you toward memlab for analysis. The workflow is solid: use chrome-devtools-mcp to capture snapshots at baseline, after triggering the leak, and after cleanup, then let memlab find the leak traces automatically. It includes fallback scripts if memlab isn't available and references for common culprits like detached DOM nodes, uncleaned event listeners, and unbounded caches. Helpful that it reminds you detached DOM nodes aren't always bugs since they're sometimes intentional caches.

skills.sh installs
3.5K
GitHub stars
55K
last updated
Aug 21, 2026

Install

$ npx -y skills add chromedevtools/chrome-devtools-mcp --skill memory-leak-debugging --agent claude-code

Installs into .claude/skills of the current project.

Files

Memory Leak Debugging

This skill provides expert guidance and workflows for finding, diagnosing, and fixing memory leaks in JavaScript and Node.js applications using Chrome DevTools MCP tools.

Prerequisites

Advanced memory debugging tools (compare_heapsnapshots, get_heapsnapshot_details, etc.) are only available when the server is started with the --memoryDebugging flag. First check if these tools are available; if not, try to read the MCP configuration file to check if --memoryDebugging is enabled.

Core Principles

Sponsors

Details

Repository
github.com/chromedevtools/chrome-devtools-mcp
Categories
AI & Agent Building, Debugging
First seen
Jun 3, 2026

More from chromedevtools/chrome-devtools-mcp

All 6
1openai avatarvercel-deployopenai/skillsDeploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live",3.5Kskills.sh installs
2avdlee avatarxcode-compilation-analyzeravdlee/xcode-build-optimization-agent-skillAnalyze Swift and mixed-language compile hotspots using build timing summaries and Swift frontend diagnostics, then produce a recommend-first source-level optim3.5Kskills.sh installs
3openai avatarhatch-petopenai/skillsCreate, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect3.5Kskills.sh installs
4chromedevtools avatartroubleshootingchromedevtools/chrome-devtools-mcpUses Chrome DevTools MCP and documentation to troubleshoot connection and target issues. Trigger this skill when list_pages, new_page, or navigate_page fail, or3.5Kskills.sh installs
5avdlee avatarspm-build-analysisavdlee/xcode-build-optimization-agent-skillAnalyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented build overhead that slow Xcode builds. Use when a developer suspec3.5Kskills.sh installs
6avdlee avatarxcode-build-benchmarkavdlee/xcode-build-optimization-agent-skillBenchmark Xcode clean and incremental builds with repeatable inputs, timing summaries, and timestamped `.build-benchmark/` artifacts. Use when a developer wants3.5Kskills.sh installs