typescript-advanced-types – Coding skill for AI agents
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.
Install the typescript-advanced-types skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/typescript-advanced-types-d6967.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /typescript-advanced-types – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/typescript-advanced-types-d6967.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $typescript-advanced-types – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/typescript-advanced-types-d6967.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /typescript-advanced-types – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/typescript-advanced-types-d6967.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /typescript-advanced-types – then describe the task you want done.
SKILL.md content
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.mdfor 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.
Related skills
- typescript-expert – TypeScript and JavaScript expert with deep knowledge of type-level programming…
- typescript-pro – Master TypeScript with advanced types, generics, and strict type safety. Handles complex…
- uncle-bob-craft – Use when performing code review, writing or refactoring code, or discussing…
- understand-project-yylo – Inspect the current product architecture, dependencies, and validation loops before…
- unit-testing-test-generate – Generate comprehensive, maintainable unit tests across languages with strong coverage…
- unity-developer – Build Unity games with optimized C# scripts, efficient rendering, and proper asset…
- unslop-review – Rewrites code review comments so they read like a human teammate wrote them. Cuts…
- upgrading-expo – Guidelines for upgrading Expo SDK versions and fixing dependency issues