/nsolid-plugin:ns-advanced-memory-leak-hunterfrom N|Solid Plugin
Compares baseline vs peak N|Solid heap samples to identify retained constructors, closures, and retainer paths causing memory leaks. Use when standard heap analysis is inconclusive.
Ships in N|Solid Plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
id is supplied, call information-dashboard (q: "app=<appName>", 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.heap-sampling (id: <agentId>, duration: 30).node "<skill-dir>/wait.cjs" 30
asset-summary on the returned baseline asset ID. If not ready, run node "<skill-dir>/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.Object, Array, system / Map)..nsolid/assets/index.json and .nsolid/assets/ for the same baseline asset ID. If it is already present locally, skip the download.node "<skill-dir>/fetch-asset.cjs" <baselineAssetId> heapprofile <appName>
metrics-historic with field: ["rss", "heapUsed", "heapTotal", "loopEstimatedLag"], q: "app=<appName>" or q: "id=<id>", and start: "1h".heapUsed stops dropping to its original baseline.heap-sampling for 60 seconds. Requires the resolved agent id. Do not use track-heap-objects: the resulting heap-profile asset is not supported by asset-summary. When closure/retainer suspicion exists, correlate the peak sample's allocator call stacks with the source using runtime-code (Phase 5) instead.node "<skill-dir>/wait.cjs" 60
Then call asset-summary on the peak asset ID. If not ready, run node "<skill-dir>/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 peak asset ID and its pending state instead of continuing indefinitely.asset-summary..nsolid/assets/index.json and .nsolid/assets/ for the same peak asset ID. If it is already present locally, skip the download.node "<skill-dir>/fetch-asset.cjs" <peakAssetId> heapprofile <appName>
location (containing scriptId, line, column) and a known url (file path) for the leaking function, extract its source.runtime-code passing the agent id, threadId, scriptId, and path.
scriptId is 0.ns-validate-optimization skill to verify the fix.# Memory Leak Hunt Report — <appName>
**Date**: <ISO date>
**Agent ID**: <id>
## Summary
<Brief description of the leak — leaking constructor, growth rate, root cause>
## Baseline (Phase 1)
**Asset ID**: <baselineAssetId>
| Constructor | Self Size | Count |
|-------------|-----------|-------|
| <name> | <size> | <count> |
## Peak (Phase 3)
**Asset ID**: <peakAssetId>
| Constructor | Self Size | Count |
|-------------|-----------|-------|
| <name> | <size> | <count> |
## Delta Analysis
| Constructor | Baseline Size | Peak Size | Growth |
|-------------|--------------|-----------|--------|
| <name> | <size> | <size> | +<delta> |
## Root Cause
<Explanation of the leaking constructor/closure>
## Recommendation
<Proposed fix>
## Assets
- Baseline heap profile: `.nsolid/assets/heapprofile-<appName>-<baselineAssetIdPrefix>.heapprofile`
- Peak heap profile: `.nsolid/assets/heapprofile-<appName>-<peakAssetIdPrefix>.heapprofile`
.md) under .nsolid/assets/ — for example .nsolid/assets/memory-analysis-<appName>.md.asset tool to download raw assets (still exposed by older console versions); always use the bundled fetch-asset.cjs.asset-summary does not support heap-profile assets (track-heap-objects). Never capture them in this workflow — baseline and peak must always be heap samples.What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/ns-analyze-assetAnalyzes an existing N|Solid diagnostic asset by asset ID or local asset path using asset-summary. Use when the user asks to inspect, review, summarize, or interpret an already-captured CPU profile, heap profile, heap sample, or heap snapshot, including assets just produced by ns-generate-asset. Do not use to capture new profiles/snapshots./ns-analyze-eventInvestigates an existing N|Solid event payload and correlates relevant MCP evidence. Use when the user provides or references an event such as process-blocked, new-vulnerability-found, agent-exit, uncaught exception, stack trace, span data. Routes follow-up to CPU, memory, vulnerability, or tracing workflows when needed./ns-analyze-tracingnpx claudepluginhub nodesource/nsolid-plugin --plugin nsolid-plugin2 plugins ship this exact skill · first indexed Aug 28, 2026
Other plugins' skills for the same job