mcpField
T
typescript-advanced-types

typescript-advanced-types

github.com/sickn33Development48.8k1.3k installsUpdated today
Repository

About typescript-advanced-types

typescript-advanced-types is a guidance skill for applying TypeScript’s advanced type system. It supports developers working on reusable, type-safe libraries, APIs, forms, configuration, and migrations.

Key features

  1. 01Guidance on generics and type inference
  2. 02Conditional and mapped type patterns
  3. 03Template literal and utility types
  4. 04Implementation playbook with examples

Use cases

  1. 01Build reusable generic components
  2. 02Design type-safe API clients
  3. 03Create typed form validation
  4. 04Migrate JavaScript code to TypeScript

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/sickn33/agentic-awesome-skills --skill typescript-advanced-types

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

Bundled filesresources/implementation-playbook.md

Details

From the project README

TypeScript Advanced Types

Comprehensive guidance for mastering TypeScript's advanced type system including generics, conditional types, mapped types, template literal types, and utility types for building robust, type-safe applications.

Use this skill when

  • Building type-safe libraries or frameworks
  • Creating reusable generic components
  • Implementing complex type inference logic
  • Designing type-safe API clients
  • Building form validation systems
  • Creating strongly-typed configuration objects
  • Implementing type-safe state management
  • Migrating JavaScript codebases to TypeScript

Do not use this skill when

  • The task is unrelated to typescript advanced types
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Resources

  • resources/implementation-playbook.md for detailed patterns and examples.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Example

Use Expect<AssertEqual<Result, Expected>> for a positive type assertion and @ts-expect-error for an intentional rejected call. Also validate API JSON at runtime; a generic response type does not inspect the returned object.

Comments

Markdown supported