Communityコーディング&開発github.com

mcollina/node

Node.js開発におけるTypeScriptのベストプラクティスを提供します。型除去、非同期パターン、エラーハンドリング、ストリーム、モジュール、テスト、パフォーマンス、キャッシュ、ロギングなどをカバーします。

node とは?

このスキルは、Node.js(特にNode 22以降)でのTypeScript開発に特化したベストプラクティスを提供します。`--experimental-strip-types`による型除去の設定、ビルドステップ不要のTypeScript実行、tsconfig.jsonやpackage.jsonの構成、モジュール解決とインポート拡張子の扱い方など、ネイティブTypeScriptサポートを最大限活用するための具体的なガイダンスを提供します。また、エラーハンドリング、グレースフルシャットダウン、flakyテストの対処、プロファイリング、環境設定など、Node.jsアプリケーション開発の実践的なパターンも網羅しています。Claude CodeやCursorなどのAIエージェントと連携し、ユーザーが「native TypeScript in Node」「strip types」「ts-node alternative」などと質問した際に自動的に適用されます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mcollina/skills/tree/main/skills/node

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

node は何をしますか?

Node.jsとTypeScriptを使用した開発におけるドメイン固有のベストプラクティスを提供します。型除去、非同期パターン、エラーハンドリング、ストリーム、モジュール、テスト、パフォーマンス、キャッシュ、ロギングなどをカバーします。Node.jsプロジェクトをネイティブTypeScriptサポートでセットアップする場合、型除去(--experimental-strip-types)を設定する場合、Node 22以降でビルドステップなしのTypeScriptを作成する場合、またはユーザーが「ネイティブTypeScript in Node」「strip types」「Node 22 TypeScript」「コンパイルなしの.tsファイル」「ts-nodeの代替」に言及した場合、あるいはNode.jsでのエラーハンドリング、グレースフルシャットダウン、flakyテスト、プロファイリング、環境設定に関するガイダンスが必要な場合に使用します。tsconfig.jsonの型除去設定、package.jsonスクリプトの設定、モジュール解決とインポート拡張子の処理、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/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.

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`.

関連スキル