
memory-leak-debugging
Diagnoses and resolves memory leaks in JavaScript/Node.js applications
by chromedevtoolsFree
Description
memory-leak-debugging is an agent skill for finding, diagnosing and fixing memory leaks in JavaScript and Node.js applications. It is for cases where a user reports high memory use or out-of-memory errors, or wants to capture and compare heap snapshots. It uses the Chrome DevTools MCP heap snapshot tools, which summarize, compare and inspect snapshots, so the agent does not have to read the very large raw snapshot files. The advanced memory tools, such as comparing snapshots and reading their details, are only available when the server is started with the memory debugging flag, and the skill checks for that before it begins. The skill first decides whether the leak is in the browser or in the Node.js server. It looks for common culprits such as detached DOM nodes, unhandled closures, global variables, event listeners that are never removed, and caches that grow without limit. It asks before clearing detached DOM nodes, because some are kept on purpose as caches. After an investigation, it closes each loaded snapshot to free memory in the server. It is published in the chromedevtools/chrome-devtools-mcp repository, which has about 53,600 stars on GitHub.…
Highlights
- Finds leaks in JavaScript and Node.js
- Captures and compares heap snapshots
- Uses MCP heap tools instead of raw files
- Isolates browser from server leaks
- Asks before clearing possible intentional caches
Ratings & Reviews
No ratings yet
Be the first to rate memory-leak-debugging.
People also visit
memory-leak-debugging FAQ
What problems does it solve?
High memory use, out-of-memory errors, and memory leaks in JavaScript or Node.js applications.
Which tools does it need?
The Chrome DevTools MCP heap snapshot tools. Some advanced tools only work when the server runs with the memory debugging flag.
Does it read heap snapshot files directly?
No. The skill says raw heap snapshot files are too large, so it uses the MCP tools to summarize and compare them.
What does it look for?
Detached DOM nodes, unhandled closures, global variables, event listeners that are not removed, and caches that grow without limit.
How do I install it?
Run npx skills add https://github.com/chromedevtools/chrome-devtools-mcp --skill memory-leak-debugging.
Is it free and checked for security?
The listing shows it as free. Its security audits show passes from Gen Agent Trust Hub, Socket and Snyk.
What are the best memory-leak-debugging alternatives?
Popular alternatives to memory-leak-debugging include diagnosing-bugs, chrome-devtools and gsap-performance. See all memory-leak-debugging alternatives







