nodejs-core
Debugs native module crashes, optimizes V8 performance, configures node-gyp builds, writes N-API/node-addon-api bindings, and diagnoses libuv event loop issues in Node.js. Use when working with C++ addons, native modules, binding.gyp, node-gyp errors, segfaults, memory leaks in native code, V8 optimization/deoptimization, libuv thread pool tuning, N-API or NAN bindings, build system failures, or any Node.js internals below the JavaScript layer.
Best use case
nodejs-core is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Debugs native module crashes, optimizes V8 performance, configures node-gyp builds, writes N-API/node-addon-api bindings, and diagnoses libuv event loop issues in Node.js. Use when working with C++ addons, native modules, binding.gyp, node-gyp errors, segfaults, memory leaks in native code, V8 optimization/deoptimization, libuv thread pool tuning, N-API or NAN bindings, build system failures, or any Node.js internals below the JavaScript layer.
Teams using nodejs-core should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/nodejs-core/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How nodejs-core Compares
| Feature / Agent | nodejs-core | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Debugs native module crashes, optimizes V8 performance, configures node-gyp builds, writes N-API/node-addon-api bindings, and diagnoses libuv event loop issues in Node.js. Use when working with C++ addons, native modules, binding.gyp, node-gyp errors, segfaults, memory leaks in native code, V8 optimization/deoptimization, libuv thread pool tuning, N-API or NAN bindings, build system failures, or any Node.js internals below the JavaScript layer.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
## When to use Use this skill when you need deep Node.js internals expertise, including: - C++ addon development - V8 engine debugging - libuv event loop issues - Build system problems - Compilation failures - Performance optimization at the engine level - Understanding Node.js core architecture ## How to use Read individual rule files for detailed explanations and code examples: ### V8 Engine - [rules/v8-garbage-collection.md](rules/v8-garbage-collection.md) - Scavenger, Mark-Sweep, Mark-Compact, generational GC - [rules/v8-hidden-classes.md](rules/v8-hidden-classes.md) - Hidden classes, inline caching, optimization - [rules/v8-jit-compilation.md](rules/v8-jit-compilation.md) - TurboFan, optimization/deoptimization patterns ### libuv - [rules/libuv-event-loop.md](rules/libuv-event-loop.md) - Event loop phases, timers, I/O, idle, check, close - [rules/libuv-thread-pool.md](rules/libuv-thread-pool.md) - Thread pool size, blocking operations, UV_THREADPOOL_SIZE - [rules/libuv-async-io.md](rules/libuv-async-io.md) - Async I/O patterns, handles, requests ### Native Addons - [rules/napi.md](rules/napi.md) - N-API development, ABI stability, async workers - [rules/node-addon-api.md](rules/node-addon-api.md) - C++ wrapper patterns, best practices - [rules/native-memory.md](rules/native-memory.md) - Buffer handling, external memory, prevent leaks ### Core Modules Internals - [rules/streams-internals.md](rules/streams-internals.md) - How Node.js streams work at C++ level - [rules/net-internals.md](rules/net-internals.md) - TCP/UDP implementation, socket handling - [rules/fs-internals.md](rules/fs-internals.md) - libuv fs operations, sync vs async - [rules/crypto-internals.md](rules/crypto-internals.md) - OpenSSL integration, performance considerations - [rules/child-process-internals.md](rules/child-process-internals.md) - IPC, spawn, fork implementation - [rules/worker-threads-internals.md](rules/worker-threads-internals.md) - SharedArrayBuffer, Atomics, MessageChannel ### Build & Contributing - [rules/build-system.md](rules/build-system.md) - gyp, ninja, make, cross-platform compilation - [rules/contributing.md](rules/contributing.md) - How to contribute to Node.js core, the process - [rules/commit-messages.md](rules/commit-messages.md) - Node.js-style commit message formatting and validation ### Debugging & Profiling - [rules/debugging-native.md](rules/debugging-native.md) - gdb, lldb, debugging C++ addons - [rules/profiling-v8.md](rules/profiling-v8.md) - --prof, --trace-opt, --trace-deopt, flame graphs - [rules/memory-debugging.md](rules/memory-debugging.md) - Heap snapshots, memory leak detection ## Instructions Apply deep knowledge of Node.js internals across these domains: - **Core architecture**: Node.js core modules and their C++ implementations, V8 GC and JIT, libuv event loop mechanics, thread pool behavior, startup/module-loading lifecycle - **Native development**: N-API, node-addon-api, and NAN addon development; V8 C++ API handle management; memory safety; native debugging with gdb/lldb - **Build systems**: node-gyp, gyp, ninja, make; cross-platform compilation; linker errors; dependency issues; platform-specific considerations (Windows, macOS, Linux, embedded) - **Performance & debugging**: Event loop profiling, memory leak detection in JS and native code, CPU flame graphs, V8 optimization/deoptimization tracing ### Quick-reference debugging commands **V8 optimization tracing:** ```bash node --trace-opt --trace-deopt script.js # Checkpoint: confirm no unexpected deoptimization warnings before proceeding to profiling node --prof script.js && node --prof-process isolate-*.log > processed.txt ``` **Event loop lag detection:** ```bash node --trace-event-categories v8,node,node.async_hooks script.js ``` **Native addon debugging (gdb):** ```bash gdb --args node --napi-modules ./build/Release/addon.node # Inside gdb: run bt # backtrace on crash # Checkpoint: verify backtrace shows the expected call site before applying a fix ``` **Heap snapshot for memory leaks:** ```bash node --inspect script.js # then open chrome://inspect, take heap snapshot # Checkpoint: compare two consecutive heap snapshots to confirm leak growth before and after the fix; run valgrind --leak-check=full node addon_test.js to confirm no native leaks remain ``` ### Node.js-specific diagnostic decision trees **Segfault / crash in native addon:** 1. Is the crash reproducible with `node --napi-modules`? → Run `gdb`, capture `bt` 2. Does `bt` point to a V8 handle scope issue? → Check `HandleScope` / `EscapableHandleScope` usage in the addon 3. Does it point to a libuv callback? → Inspect async handle lifetime and `uv_close()` sequencing 4. No clear C++ frame? → Check for JS-side type mismatches passed into the native binding **V8 deoptimization / performance regression:** 1. Run `--trace-opt --trace-deopt` → identify the deoptimized function and reason (e.g., "not a Smi", "wrong map") 2. Checkpoint: confirm the same function deoptimizes consistently across runs 3. Inspect hidden class transitions (`--trace-ic`) and fix property addition order or type inconsistencies 4. Re-run `--trace-opt` to confirm the function is now optimized **Build failure (node-gyp / binding.gyp):** 1. Is it a missing header? → Verify `include_dirs` in `binding.gyp` and Node.js header installation 2. Is it a linker error? → Check `libraries` and `link_settings` entries; confirm ABI compatibility 3. Is it platform-specific? → Consult `rules/build-system.md` for Windows/macOS/Linux differences Always consider both JavaScript-level and native-level causes, explain performance implications and trade-offs, and indicate the stability status of any experimental features discussed. Code examples should demonstrate Node.js internals patterns and be production-ready, accounting for edge cases typical developers might miss.
Related Skills
deep-agents-core
INVOKE THIS SKILL when building ANY Deep Agents application. Covers create_deep_agent(), harness architecture, SKILL.md format, and configuration options.
Goal: Build an LLM-based RAG App
Here is the MVP Implementation Plan.
You are a professional Landing page designer who is very friendly and supportive.
Your task is to guide a beginner through planning and designing a landing page or personal portfolio.
You are a professional Chief Marketing Officer. Your task is to help a user start and grow their social media presence organically through a series of questions and generate a growthplan.md blueprint.
Follow these instructions:
Convert this into a web based slide deck using reveal.js.
Use the following brand colour and logo.
technical-article-writer
Write compelling technical articles and blog posts for developer audiences. Use this skill whenever the user asks to write a blog post, technical article, or any long-form technical content. Also trigger when the user says 'write about [technical topic]', 'help me draft an article', 'turn this into a blog post', 'write a post about', 'I want to publish something about', or mentions writing for a developer audience. Covers the full pipeline: idea sharpening, hook/title generation, article structure, body drafting, and editing. Even if the user just says 'I want to write about X' without specifying format, use this skill. Do NOT use for platform-specific optimization, newsletter strategy, or ghostwriting voice matching.
substack-ghostwriting
Write, optimize, and grow Substack content — both newsletter issues (email-first) and web posts (web-first articles/essays). Covers ghostwriting with voice matching, Substack algorithm optimization, Notes strategy, email formatting, SEO, growth tactics, and monetization planning. Use when the user mentions Substack, newsletters, write a newsletter issue, Substack post, Substack article, web post on Substack, evergreen content, SEO for Substack, newsletter growth, Notes strategy, ghostwrite for, match someone's voice, write in the style of, newsletter monetization, paid subscribers, or any task involving Substack as a platform. Also trigger for general article/newsletter writing even if Substack isn't named explicitly, or when the user wants to adapt existing content (blog post, talk, thread) into newsletter or web post format. Do NOT use for generic blog post writing without a newsletter/Substack context (-> See samber/cc-skills@technical-article-writer skill).
press-release-writer
Write professional press releases for any occasion, media type, and country. Use when the user wants to write, draft, or improve a press release, communiqué de presse, media announcement, news release, or PR statement — including product launches, funding rounds, partnerships, crisis communications, earnings, executive hires, events, M&A, open source milestones, and media advisories. Covers all release types, media targets (print, digital/wire, broadcast, social/SMPR, trade press), and region-specific conventions (Western/Eastern Europe, Americas, Middle East, Africa, Asia, Oceania). Also trigger when the user says 'I need to announce something' or 'how do I tell the press about X.'
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.
linkedin-ghostwriting
B2B LinkedIn ghostwriting — strategic interview, hook engineering, and post body. Use when the user wants to write LinkedIn content, create ghostwritten posts, ghostwrite for a founder or executive, develop a B2B social strategy, or needs hooks, post structures, or copywriting frameworks for LinkedIn. Apply when the user shares a story, result, or insight and wants it turned into a post.
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
documentation
Creates, structures, and reviews technical documentation following the Diátaxis framework (tutorials, how-to guides, reference, and explanation pages). Use when a user needs to write or reorganize docs, structure a tutorial vs. a how-to guide, build reference docs or API documentation, create explanation pages, choose between Diátaxis documentation types, or improve existing documentation structure. Trigger terms include: documentation structure, Diátaxis, tutorials vs how-to guides, organize docs, user guide, reference docs, technical writing.