CommunityCodierung & Entwicklunggithub.com

mcollina/node

Stellt domänenspezifische Best Practices für die Node.js-Entwicklung mit TypeScript bereit, einschließlich Type Stripping, asynchrone Muster, Fehlerbehandlung, Streams, Module, Tests, Leistung, Caching, Logging und mehr.

Was ist node?

Diese Skill-Anleitung bietet umfassende und spezifische Best Practices für die Node.js-Entwicklung mit TypeScript, mit besonderem Fokus auf die native TypeScript-Unterstützung ab Node.js 22+. Sie deckt kritische Bereiche wie Type Stripping (mit `--experimental-strip-types`), asynchrone Programmiermuster, Fehlerbehandlung, Graceful Shutdown, effiziente Streams, Modulauflösung, Teststrategien für flaky Tests, Leistungsoptimierung, Profiling, Logging und Umgebungskonfiguration ab. Die Anleitung eignet sich ideal, wenn Sie neue Node.js-Projekte mit nativem TypeScript einrichten, `tsconfig.json` für Type Stripping konfigurieren, `package.json`-Skripte definieren oder robuste Muster für den gesamten Node.js-Stack anwenden möchten. Sie unterstützt Entwickler bei der Vermeidung von Build-Schritten, der Handhabung von Import-Erweiterungen und der Anwendung bewährter Verfahren für Fehlerbehandlung und Leistung, wie sie in modernen Node.js-Umgebungen benötigt werden.

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

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht node?

Stellt domänenspezifische Best Practices für die Node.js-Entwicklung mit TypeScript bereit, einschließlich Type Stripping, asynchrone Muster, Fehlerbehandlung, Streams, Module, Tests, Leistung, Caching, Logging und mehr. Verwenden Sie diese Anleitung, wenn Sie Node.js-Projekte mit nativer TypeScript-Unterstützung einrichten, Type Stripping konfigurieren (--experimental-strip-types), TypeScript ab Node.js 22 ohne Build-Schritt schreiben, oder wenn der Benutzer Begriffe wie 'natives TypeScript in Node', 'strip types', 'Node 22 TypeScript', '.ts-Dateien ohne Kompilierung', 'ts-node-Alternative' erwähnt oder Hilfe bei Fehlerbehandlung, Graceful Shutdown, flaky Tests, Profiling oder Umgebungskonfiguration in Node.js benötigt. Hilft bei der Konfiguration von tsconfig.json für Type Stripping, dem Einrichten von package.json-Skripten, der Handhabung von Modulauflösung und Import-Erweiterungen sowie der Anwendung robuster Muster über den gesamten Node.js-Stack.

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

Verwandte Skills