Community编程与开发github.com

mcollina/nodejs-core

调试原生模块崩溃、优化 V8 性能、配置 node-gyp 构建、编写 N-API/node-addon-api 绑定,并诊断 Node.js 中 libuv 事件循环问题。适用于处理 C++ 附加组件、原生模块、binding.gyp、node-gyp 错误、段错误、原生代码内存泄漏、V8 优化/去优化、libuv 线程池调优、N-API 或 NAN 绑定、构建系统失败,或任何 JavaScript 层以下的 Node.js 内部问题。

nodejs-core 是什么?

此技能专用于深入 Node.js 内部机制(C++ 层),提供对原生模块崩溃、V8 性能、node-gyp 构建配置、N-API/node-addon-api 绑定编写以及 libuv 事件循环问题的诊断和修复支持。它适用于处理 C++ 附加组件、binding.gyp 文件错误、段错误、原生代码中的内存泄漏、V8 优化/去优化诊断、libuv 线程池调优及构建系统失败等场景。该技能基于 SKILL.md 文档,描述了如何通过系统化的步骤(如启用调试符号运行、使用 lldb/gdb 分析核心转储、检查 node-report 日志、监控 V8 标志等)来定位和解决问题。支持平台包括 Node.js(所有版本),并强调在 JavaScript 层以下,即 C++ 和系统级交互中的排查方法。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mcollina/skills/tree/main/skills/nodejs-core

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

nodejs-core 是做什么的?

调试原生模块崩溃、优化 V8 性能、配置 node-gyp 构建、编写 N-API/node-addon-api 绑定,并诊断 Node.js 中 libuv 事件循环问题。适用于处理 C++ 附加组件、原生模块、binding.gyp、node-gyp 错误、段错误、原生代码内存泄漏、V8 优化/去优化、libuv 线程池调优、N-API 或 NAN 绑定、构建系统失败,或任何 JavaScript 层以下的 Node.js 内部问题。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

mcollina/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.

mcollina/fastify-best-practices

Guides development of Fastify Node.js backend servers and REST APIs using TypeScript or JavaScript. Use when building, configuring, or debugging a Fastify application — including defining routes, implementing plugins, setting up JSON Schema validation, handling errors, optimising performance, managing authentication, configuring CORS and security headers, integrating databases, working with WebSockets, and deploying to production. Covers the full Fastify request lifecycle (hooks, serialization, logging with Pino) and TypeScript integration via strip types. Trigger terms: Fastify, Node.js server, REST API, API routes, backend framework, fastify.config, server.ts, app.ts.

mcollina/node

Provides domain-specific best practices for Node.js development with TypeScript, covering type stripping, async patterns, error handling, streams, modules, testing, performance, caching, logging, and more. Use when setting up Node.js projects with native TypeScript support, configuring type stripping (--experimental-strip-types), writing Node 22+ TypeScript without a build step, or when the user mentions 'native TypeScript in Node', 'strip types', 'Node 22 TypeScript', '.ts files without compilation', 'ts-node alternative', or needs guidance on error handling, graceful shutdown, flaky tests, profiling, or environment configuration in Node.js. Helps configure tsconfig.json for type stripping, set up package.json scripts, handle module resolution and import extensions, and apply robust patterns across the full Node.js stack.

mcollina/typescript-magician

Designs complex generic types, refactors `any` types to strict alternatives, creates type guards and utility types, and resolves TypeScript compiler errors. Use when the user asks about TypeScript (TS) types, generics, type inference, type guards, removing `any` types, strict typing, type errors, `infer`, `extends`, conditional types, mapped types, template literal types, branded/opaque types, or utility types like `Partial`, `Record`, `ReturnType`, and `Awaited`.

相关技能