agentleFS
oivanfelipeoivanfelipe/claude-skills/memory-leak-debugging/SKILL.md

memory-leak-debugging

Skill0 starsChanged 22 days agoNo licenceView on GitHub

Diagnoses and resolves memory leaks in JavaScript/Node.js applications. Use when a user reports high memory usage, OOM errors, or wants to capture, compare, or inspect heap snapshots with Chrome DevTools MCP memory tools.

7 other projects use a version of this, 5 of them edited; 4 of 5 edited versions we compared changed its rules; 1 new project in the last 4 weeks, against 0 the 4 before.

How people change it

4 of 5 edited versions changed its rules, and some changes recur.

Of the 5 edited versions we compared: 1 keep every rule, 4 made changes of their own.

Rules people drop

  1. Prefer MCP memory tools: Do NOT attempt to read raw .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.dropped by 4 of 4
  2. Start with get_heapsnapshot_summary for each snapshot to confirm that the files load and to compare high-level totals.dropped by 4 of 4
  3. Use compare_heapsnapshots to compare baseline and target snapshots. Start without classIndex for the summary diff, then request detailed class diffs only for suspicious growth by specifying classIndex.dropped by 4 of 4
  4. Use the summary output from compare_heapsnapshots before drilling into specific node IDs.dropped by 4 of 4
  5. When a class or object type grows unexpectedly, inspect the retaining chain and dominators with the MCP tools before changing code.dropped by 4 of 4
  6. Use get_heapsnapshot_class_nodes to list instances of the suspicious class.dropped by 4 of 4
  7. Use get_heapsnapshot_retainers, get_heapsnapshot_retaining_paths, get_heapsnapshot_dominators, and get_heapsnapshot_edges to understand why representative nodes are still reachable.dropped by 4 of 4
  8. Use get_heapsnapshot_object_details with a specific nodeId to retrieve detailed object metadata (size, type, distance, and DOM detachedness).dropped by 4 of 4

Rules people add

  1. A rule we can't quote: its licence doesn't allow itadded by 4 of 4
  2. A rule we can't quote: its licence doesn't allow itadded by 4 of 4
  3. A rule we can't quote: its licence doesn't allow itadded by 4 of 4
  4. A rule we can't quote: its licence doesn't allow itadded by 4 of 4
  5. A rule we can't quote: its licence doesn't allow itadded by 4 of 4
  6. A rule we can't quote: its licence doesn't allow itadded by 4 of 4
  7. A rule we can't quote: its licence doesn't allow itadded by 4 of 4

We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.

Adopted by

Surging: 1 new project took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 1 new projectWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 1 in all, so this is a hint, not a trend.

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 1 is common, 3 are distinctive, and 12 are very specific to this project.

  • 1

    Common

    Most of the 5 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

No licence file, so all rights are reserved — read it at the source. We count its rules but don't quote them. Read them on GitHub.

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.