Community程式設計與開發github.com

mcollina/nodejs-core

用於偵錯原生模組崩潰、最佳化 V8 效能、設定 node-gyp 建置、撰寫 N-API/node-addon-api 繫結,以及診斷 libuv 事件循環問題。適用於處理 C++ 擴充功能、原生模組、binding.gyp、node-gyp 錯誤、段錯誤、原生程式碼記憶體洩漏、V8 最佳化/解除最佳化、libuv 執行緒池調整、N-API 或 NAN 繫結、建置系統失敗,或任何 JavaScript 層以下的 Node.js 內部機制。

nodejs-core 是什麼?

此技能專注於 Node.js 內部機制,特別是 JavaScript 層以下的 C++ 原生模組與擴充功能。它能協助開發者偵錯原生模組當機(如段錯誤)、記憶體洩漏,並最佳化 V8 引擎的效能(包括最佳化與解除最佳化)。此外,此技能還提供 node-gyp 建置系統的設定與錯誤排除,以及 libuv 事件循環與執行緒池的調整建議。支援 N-API、node-addon-api 與 NAN 等繫結的撰寫與最佳化,並能處理 binding.gyp 等建置檔案。此技能適用於所有 Node.js 平台,包括 macOS、Linux 與 Windows,對於需要開發或維護高效能原生模組的開發者尤其有用。

相容平台~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 繫結,以及診斷 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`.

相關技能