From chrome-devtools-mcp
Diagnoses and resolves memory leaks in JavaScript/Node.js applications using Chrome DevTools MCP heap snapshot tools. Use for high memory usage or OOM errors.
How this skill is triggered — by the user, by Claude, or both
Slash command
/chrome-devtools-mcp:memory-leak-debuggingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill provides expert guidance and workflows for finding, diagnosing, and fixing memory leaks in JavaScript and Node.js applications using Chrome DevTools MCP.
This skill provides expert guidance and workflows for finding, diagnosing, and fixing memory leaks in JavaScript and Node.js applications using Chrome DevTools MCP.
.heapsnapshot files directly, as they are extremely large and will consume too many tokens. Use the Chrome DevTools MCP heap snapshot tools to summarize, compare, and inspect snapshots.close_heapsnapshot for each loaded snapshot to release memory held by the MCP server.When investigating a frontend web application memory leak, utilize the chrome-devtools-mcp tools to interact with the application and take snapshots.
click, navigate_page, fill, etc., to manipulate the page into the desired state.take_heapsnapshot to save .heapsnapshot files to disk at baseline, target (after actions), and final (after reverting actions) states.Once you have generated .heapsnapshot files using take_heapsnapshot, compare them with Chrome DevTools MCP memory tools.
get_heapsnapshot_summary for each snapshot to confirm that the files load and to compare high-level totals.compare_heapsnapshots to compare baseline and target snapshots. Start without classIndex for the summary diff, then request detailed class diffs only for suspicious growth.compare_heapsnapshots before drilling into specific node IDs.When a class or object type grows unexpectedly, inspect the retaining chain with the MCP tools before changing code.
get_heapsnapshot_class_nodes to list instances of the suspicious class.get_heapsnapshot_retainers, get_heapsnapshot_retaining_paths, get_heapsnapshot_dominators, and get_heapsnapshot_edges to understand why representative nodes are still reachable.get_heapsnapshot_duplicate_strings when string growth dominates the diff.If the built-in MCP memory tools are not enough, use external tools as a fallback rather than reading raw snapshots directly.
memlab to analyze generated heap snapshots.memlab is not available, use the fallback script in the references directory to compare two .heapsnapshot files and identify the top growing objects and common leak types.Run the fallback script using Node.js:
node skills/memory-leak-debugging/references/compare_snapshots.js <baseline.heapsnapshot> <target.heapsnapshot>
The script will analyze and output the top growing objects by size and highlight the 3 most common types of memory leaks (for example, detached DOM nodes, closures, and contexts) if they are present.
npx claudepluginhub nuo-ai/chrome-devtools-mcp --plugin chrome-devtools-mcp8plugins reuse this skill
First indexed Jul 13, 2026
Showing the 6 earliest of 8 plugins
Diagnoses and resolves memory leaks in JavaScript/Node.js applications using Chrome DevTools MCP heap snapshot tools. Use for high memory usage or OOM errors.
Diagnoses memory leaks in JavaScript/Node.js applications using heap snapshots and memlab. Guides through capturing snapshots, running memlab, and identifying common leak causes.
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.