/nsolid-skills-plugin:ns-cpu-spike-analysisfrom N|Solid Skills
Diagnoses high CPU or slow execution in Node.js apps using N|Solid CPU metrics, profiles, and flamegraphs. Handles telemetry alerts, local .cpuprofile files, and asset IDs.
Ships in N|Solid Skills. 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.
.cpuprofile path, or structured CPU summary, analyze that evidence first instead of starting with information-dashboard or metrics-historic.information-dashboard (no parameters) to list all connected agents.id, app name, and hostname.metrics-historic with field: ["cpuUserPercent", "cpuSystemPercent"], q: "app=<appName>", and start: "5m"; choose the hottest connected agent inside that app only.metrics-historic with those fields and start: "5m" to identify the highest-CPU agent id.id, hostname, and the CPU evidence that justified the choice.asset-summary first..cpuprofile path, resolve it to its asset ID (via assets or the download index) and analyze via asset-summary. Never read the raw .cpuprofile into context — it is large and token-wasteful.profile on that id with duration: 30 and threadId: 0.id (Asset ID)..cpuprofile, or when the user explicitly requested read-only/offline analysis.node "<skill-dir>/wait.cjs" 35
(use the absolute path of the directory where you read this SKILL.md).setTimeout, sleep, or estimate the wait yourself — always run wait.cjs.asset-summary using the exact Asset ID returned by profile.asset-summary says the asset is not ready yet, run node "<skill-dir>/wait.cjs" 5 and retry asset-summary on that same Asset ID.assets-in-progress as the normal readiness check for CPU profiles. It is a global queue and may report unrelated assets.asset-summary succeeds, use its token-optimized JSON view as the grounded source for the rest of the workflow.asset-summary; continue the workflow with full profile download and runtime code extraction.asset-summary does not include app metadata.node "<skill-dir>/fetch-asset.cjs" <assetId> cpuprofile <appName>
.nsolid/assets/index.json, it reuses the existing file without re-downloading.curl. The bundled fetch-asset.cjs is the only supported download path inside this skill..nsolid/assets/cpuprofile-<appName>-<assetIdPrefix>.cpuprofile and updates the index automatically.functionName), scriptId, and file path (url) consuming the highest totalTime or selfTime. Explain this to the user.runtime-code only when you have agent id, threadId, scriptId, and url/path.node_modules, node:, or internal runtime paths, explain the dependency/internal cost and move to the nearest relevant user-owned caller instead of extracting dependency source.runtime-code response is raw source material. Before presenting it in the report, keep only the most relevant parts needed to explain the CPU problem in the app and to ground the optimization proposal./app or /usr/src/app Docker prefix.scriptId is 0, skip this step entirely — extraction will fail.path may be misaligned; apply the path tweaks above before giving up.workspace_delta tool when it is available. Pass the profiled app name, runtime path, runtime code, and the best line range or line hint you have for the hot function.workspace_delta reports that the workspace does not match the profiled app, skip comparison and state that clearly in the report.workspace_delta is unavailable but shell execution is allowed, use the bundled same-directory helper:
node "<skill-dir>/workspace-delta.cjs" <json-file-or-stdin>
It accepts JSON via stdin or a file path and prints the comparison result as JSON.functionName, file:line, selfTime, totalTime.<!-- nsolid-ide-runtime-code-start -->
```language
<relevant source here>
.cpuprofile path from step 9.<!-- nsolid-ide-hotfn: {"file":"src/foo.ts","startLine":42,"endLine":80,"name":"parseToken"} -->
If the hot function could not be mapped to a workspace file (Workspace Delta reported "file exists in runtime but not in workspace"), omit the marker entirely rather than emit a placeholder..md) under .nsolid/assets/ — for example .nsolid/assets/cpu-analysis-<appName>-<YYYY-MM-DD>.md.ns-validate-optimization skill with this report in scope. Those followups are for actionable user-owned code only. Do not ask a human-in-the-loop question in this response — the buttons replace it.global-filter as a discovery step — it returns ~18,000 tokens and fills the context window.wait.cjs script, never setTimeout/sleep or an estimate. Download assets via the bundled fetch-asset.cjs (do not use direct HTTP calls or curl). The only other shell helper allowed by this skill is the bundled same-directory workspace-delta.cjs.asset tool to download raw assets (still exposed by older console versions); always use the bundled fetch-asset.cjs.runtime-code response when only part of it is relevant. Keep the report focused on the code that explains the problem and proposed fix.wait.cjs, asset-summary may still report that the profile asset is not ready.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nodesource/nsolid-skills-plugin --plugin nsolid-skills-plugin2 plugins ship this exact skill · first indexed Aug 28, 2026
18 skills in this plugin
/ns-advanced-memory-leak-hunterPerforms 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./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-tracingAnalyzes N|Solid/OpenTelemetry tracing evidence for request latency, HTTP errors, and service dependencies. Use when the user asks about slow endpoints, API timeouts, distributed traces/spans, N+1 queries, await chains, microservice latency, cascading failures, or trace IDs. Query N|Solid only when no trace data was provided. Do not assume full waterfall details unless supplied./ns-analyze-vulnerabilitiesAnalyzes live runtime vulnerabilities loaded by connected N|Solid Node.js processes. Use when the user wants to know which CVEs are actually present in running apps, active exploitable/live vulnerabilities, zero-day exposure, supply-chain risk in production, or production package risk. For static npm-audit-style project dependency scans, use ns-audit-dependencies instead./ns-audit-dependenciesAudits a local Node.js project dependency tree with NCM vulnerability data. Use when the user asks for an npm audit-style security review, package CVEs, direct/transitive vulnerability report, dependency risk assessment, or remediation plan before upgrading. For vulnerabilities actually loaded in running N|Solid processes, use ns-analyze-vulnerabilities instead.Other plugins' skills for the same job