ns-advanced-memory-leak-hunter
Performs an advanced N|Solid memory leak hunt comparing baseline vs peak heap evidence to isolate retained constructors, closures, and retainer paths. Use when the user reports recurring/staircase memory growth, elusive leaks, retained objects, closures holding references, or a standard heap sample/snapshot analysis was inconclusive. Prefer supplied baseline/peak assets; capture new samples only when needed.
Install
With your agent
Install OMGSkills skill "nodesource/nsolid-skills-plugin:skills/ns-advanced-memory-leak-hunter" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.
Manual command
git clone https://github.com/nodesource/nsolid-skills-plugin /tmp/nsolid-skills-plugin && ln -s /tmp/nsolid-skills-plugin/skills/ns-advanced-memory-leak-hunter ~/.claude/skills/ns-advanced-memory-leak-hunter
From README
Phase 0: Reuse Evidence and Resolve Target If the user already supplied both baseline and peak evidence, skip straight to Phase 4. If no agent id is supplied, call information-dashboard (q: "app= ", start: "5m" when app is known) to resolve the required agent id; preserve the exact appName for downloads. Stop if no matching agent is connected. Phase 1: Establish the Baseline Take an initial low-overhead heap sample using heap-sampling (id: , duration: 30). Run the wait script using the absolute path of the directory where you read this SKILL.md: Call asset-summary on the returned baseline asset ID. If not ready, run node " /wait.cjs" 10 and retry; use assets-in-progress only as a secondary queue clue. Cap retries at 12; if still not ready, report the baseline asset ID and its pending state instead of continuing indefinitely. From the baseline summary, note the top allocating constructors (e.g., Object, Array, system / Map).
More from this repo
ns-analyze-asset
Analyzes an existing N|Solid diagnostic asset by asset ID or local asset path using asset-summary.
ns-analyze-event
Investigates an existing N|Solid event payload and correlates relevant MCP evidence.
ns-analyze-tracing
Analyzes N|Solid/OpenTelemetry tracing evidence for request latency, HTTP errors, and service dependencies.
