Skip to content
Kitbay
Submit

memory-leak-debugging

Apache-2.0

An official Chrome DevTools for agents skill for tracking down memory leaks in JavaScript running in the browser or in Node.js.

What the skill teaches

An official Chrome DevTools for agents skill for tracking down memory leaks in JavaScript running in the browser or in Node.js. It tells the agent to use the Chrome DevTools MCP heap snapshot tools to capture, summarise and compare snapshots rather than reading the very large snapshot files directly. Those tools are only present when the server is started with its memory debugging flag, so the skill first checks the configuration. It lists usual causes such as detached DOM nodes, closures, globals, listeners that are never removed and growing caches, with a reference file of common leak patterns.

Capabilities

  • Capture and compare heap snapshots
  • Find objects retained after they should be freed
  • Check whether memory tools are enabled in the server config