mcpField
T
typescript-advanced

typescript-advanced

github.com/pedronauckDevelopment644554 installsUpdated 1w ago
Repository

About typescript-advanced

typescript-advanced is a development skill for TypeScript work involving generics, conditional and mapped types, inference, or reusable type utilities. It provides focused references and guidance on maintainable type design and validation.

Key features

  1. 01Guidance on advanced TypeScript types
  2. 02Patterns for reusable type utilities
  3. 03Advice on inference and narrowing
  4. 04Type-contract test guidance
  5. 05Compiler configuration and complexity guidance

Use cases

  1. 01Design a generic reusable client
  2. 02Investigate conditional or mapped type behavior
  3. 03Improve inference at untrusted boundaries
  4. 04Check a library's public type contract

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pedronauck/skills --skill typescript-advanced

After installing, type/typescript-advancedin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
advanced-patterns.md
best-practices.md
core-concepts.md
type-inference.md

Details

From the project README

TypeScript Advanced Types

Use this skill when generic inference, conditional/mapped types, template literals, or a reusable type utility is the actual problem. Ordinary typed API, form, and state work uses its domain guidance unless advanced type behavior needs attention.

Concern being changedReference
Generics, conditional/mapped/template-literal and utility typesreferences/core-concepts.md
Reusable emitters, builders, clients, deep utilities, or discriminated modelsreferences/advanced-patterns.md
infer, narrowing, assertion functions, and type-contract testsreferences/type-inference.md
Compiler configuration, type complexity, and maintainabilityreferences/best-practices.md

Prefer the simplest type that expresses the contract. Use unknown and real narrowing at untrusted boundaries; preserve discriminants and readonly intent. Let inference handle local values and follow repository conventions for public annotations, interface, and type.

Use the existing tsconfig; reference configurations are examples, not instructions to change it. Add compile-time tests only when type behavior is a product/library contract, using its owning suite. Avoid a new type framework or elaborate generic abstraction for a single ordinary call site. Run the repository's affected typecheck gate.

Comments

Markdown supported