/odin-typescript:node-internals-diagnosisfrom ODIN TypeScript
Diagnoses Node.js internals issues: segfaults, addon crashes, native/heap memory leaks, event-loop anomalies, thread-pool saturation, V8 deoptimizations, and binding.gyp failures. Produces a root-cause report with tool evidence.
Ships in ODIN TypeScript. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | Diagnosing native segfaults, addon crashes, native or heap memory leaks, event-loop anomalies, thread-pool saturation, unexplained V8 deoptimizations, or binding.gyp failures in Node.js. |
| Authority | Reversible local: runs diagnostic binaries and writes only the diagnosis report and any diagnostic artifacts; rollback is deleting them. Does not modify code or restart services. No remote mutation. |
| Side effect | Runs diagnostic binaries and produces local diagnostic artifacts; no file, VCS, credential, paid, published, deployed, or remote mutation. |
| Done | A diagnosis report names one root cause per accepted failure class with supporting tool evidence, or returns blocked with the named blocker. |
Required:
Optional:
--heap-snapshot-signal or v8.writeHeapSnapshot() output)--trace-deopt output)LIBUV_TRACE with level 1-4)Classify the failure. Match the symptom to one of: segfault or addon crash, native memory leak, heap memory leak (V8), event-loop anomaly, thread-pool saturation, V8 deoptimization, or binding.gyp failure. If the symptom does not match any class, stop and return blocked: unsupported-failure-class. Done when: the failure is classified or returned as unsupported.
Collect class-specific evidence.
thread apply all bt full. Record the crashing instruction address and shared object name.--heap-snapshot-signal=SIGUSR2 or v8.writeHeapSnapshot(). Compare two snapshots delta. Identify objects retaining the most paths.LIBUV_TRACE=4 and reproduce. Identify handles active beyond their expected lifetime. Check libuv refs on the relevant handles.UV_THREADPOOL_SIZE probes. Capture the queue depth and average wait time. Correlate with async operations outstanding.--trace-deopt output. For each deopt site, reconstruct the hidden class and property access order. If a deopt fires at the same site repeatedly, identify whether a polymorphic inline cache transitioned to megamorphic state.include_dirs, libraries, and cflags_c in the generated build/config.gypi. Verify the target Node.js abi_{NODE_MODULE_VERSION} matches the runtime. Check that platform (win, darwin, linux) is correctly detected.Done when: the minimum evidence for the matched class is collected.
Follow the decision tree for the class to derive the root cause.
Persistent handle management.Persistent handle holds a reference that prevents V8 garbage collection of a native buffer. Cross-reference the addon's cleanup path.setInterval callback retains objects. Name the retaining path and the code that creates it.uv_poll_t). Determine whether the handle was not closed, was closed but a reference was retained, or a callback registered a new handle on each iteration. Check for missing uv_close() calls or unref'd handles that should have been ref'd.UV_THREADPOOL_SIZE (default 4), whether a single slow operation blocks the pool, or whether unnecessary work is dispatched to the thread pool that could run on the event loop. Name the blocking operation and the pool size mismatch.Done when: the decision tree is applied and a root-cause hypothesis is formed.
Write the diagnosis report. Name the root cause as one of: C++ object lifetime violation, megamorphic IC, hidden-class layout mismatch, thread-pool starvation, libuv handle leak, native allocation leak, V8 retaining-path leak, event-loop handle leak, ABI mismatch, or other. Include the supporting tool evidence (backtrace, leak report, snapshot delta, trace output, queue metrics). Done when: the report names one root cause with supporting evidence.
Verify the root cause is named and evidence-backed. Confirm the report states the failure class, the root cause, the evidence that supports it, and any missing evidence. If the root cause is ambiguous or the evidence is contradictory, return blocked: ambiguous-root-cause. Done when: the root cause is named, evidence-backed, and unambiguous, or the blocker is reported.
blocked: missing-evidence with the error message. Do not fabricate a root cause.blocked: unsupported-failure-class.blocked: ambiguous-root-cause and list both findings. Do not pick one without resolving the contradiction.One diagnosis report: failure class, root cause, supporting evidence, and missing evidence, or blocked with the named blocker and detail.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-typescript15 skills in this plugin
/eslint-to-biome-migrationUse when migrating a JavaScript or TypeScript project from ESLint, Prettier, Standard, or mixed legacy lint configuration to Biome 2.5./fastify-inject-testingUse when asked to test Fastify applications without network sockets. Not for building the app: use fastify-schema-first-service./fastify-production-hardeningUse when asked to prepare a Fastify service for production load and exposure. Not for building the app: use fastify-schema-first-service.Other plugins' skills for the same job