Communitygithub.com

mcollina/typescript-magician

Entwirft komplexe generische Typen, refaktoriert `any`-Typen zu strengen Alternativen, erstellt Typwächter und Hilfstypen und löst TypeScript-Compilerfehler.

Was ist typescript-magician?

Dieses Skill für KI-Agenten hilft Entwicklern, die Typensicherheit von TypeScript-Code zu verbessern. Es kann komplexe generische Typen wie `Conditional Types`, `Mapped Types` und `Template Literal Types` entwerfen, `any`-Typen systematisch durch strengere Alternativen ersetzen und maßgeschneiderte Typwächter für Laufzeitprüfungen sowie Utility-Typen (z.B. `Partial`, `Record`, `ReturnType`) erstellen. Zudem analysiert und behebt es Compilerfehler, die aus falscher Typverwendung resultieren. Das Skill unterstützt gängige KI-Coding-Assistenten und ist besonders nützlich, wenn Benutzer Fragen zu TypeScript-Typinferenz, `infer`-Schlüsselwort, `extends`-Constraints, branded/opaque Types oder strenger Typisierung haben. Durch die Einbindung in den Agenten-Workflow können Entwickler die Codequalität steigern und TypeScript-spezifische Probleme schneller lösen.

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

In Ihrer bevorzugten KI fragen

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

Dokumentation

Was macht typescript-magician?

Entwirft komplexe generische Typen, refaktoriert any-Typen zu strengen Alternativen, erstellt Typwächter und Hilfstypen und löst TypeScript-Compilerfehler. Verwenden, wenn der Benutzer nach TypeScript (TS)-Typen, Generics, Typinferenz, Typwächtern, Entfernen von any-Typen, strenger Typisierung, Typfehlern, infer, extends, bedingten Typen, gemappten Typen, Template-Literal-Typen, branded/opaque Typen oder Hilfstypen wie Partial, Record, ReturnType und Awaited fragt.

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

Verwandte Skills