Grow AI Skills Saved
↗ Agent skillAdapted resource

TypeScript Advanced Types Skill

Solve complex generic, conditional and mapped types with checkable examples.

By Seth Hobson·Development

What this skill does

  • Reusable types

    Use generics, inference and utility types to express relationships in a real TypeScript API.

  • Advanced constraints

    Apply conditional, mapped and template-literal types when simpler types cannot describe the requirement.

  • Type validation

    Prepare examples or type tests that expose unwanted assignments and inference behavior.

What to provide & what you get

Input
TypeScript code and the relationships its types should enforce
Expected output
Type definitions using suitable generics, inference and utility patterns

Community source

Upstream source

Open the upstream instructions at the fixed revision used for this resource. Review the source and its supporting files before installing.

Read upstream SKILL.md
Repository
wshobson/agents
File
plugins/javascript-typescript/skills/typescript-advanced-types/SKILL.md
Revision
0874a27b17a22e2b7c2e2bcd725768e0803cad06

Local package changes

  • Added portable install, target-language and external-action boundaries; replaced fixed own-skill paths with SKILL_DIR.

Installation

  1. Download and extract the ZIP. Keep each complete skill folder, including its supporting files. Do not copy only SKILL.md.
  2. Copy the skill folder into your agent's skills directory. Use the project path below for this project, or the personal path for all your projects.

Codex

This project
.agents/skills/typescript-advanced-types/SKILL.md
All your projects
~/.agents/skills/typescript-advanced-types/SKILL.md

Claude Code

This project
.claude/skills/typescript-advanced-types/SKILL.md
All your projects
~/.claude/skills/typescript-advanced-types/SKILL.md
  1. Check the final path. It must match one of the paths above, with one typescript-advanced-types/ folder directly under skills/. Avoid an extra ZIP-name folder around it.
  2. Start a new task in your project. Use the matching example below to invoke the installed skill. If it is missing, recheck the folder name and reopen your agent.

Before the first run

  • A TypeScript codebase and its type-check command

The ZIP installs the skill instructions and bundled files. Any listed software, accounts or external tools need their own setup.

What's in the download

6 files across 1 skill folder. Includes typescript-advanced-types/SKILL.md and supporting directories:

  • references/

File integrity (SHA256):

1d1dc6aeec35a3ecbc7fc2c1c0f3e0340481f2ce09b87da284b3ea4ac72b5ebc

How to use

  1. Provide the TypeScript code, examples that should compile and cases that should fail.
  2. Ask for the simplest type design that enforces those relationships.
  3. Run the project's type-check command and review readability and compiler behavior.

Try it in your agent

Install first, then attach or provide the inputs described above. Replace any bracketed placeholders before running.

Codex

Use $typescript-advanced-types.

Fix this TypeScript type problem and verify valid and invalid uses with the project compiler.

Claude Code

/typescript-advanced-types

Fix this TypeScript type problem and verify valid and invalid uses with the project compiler.

Check the result: A complex type should earn its complexity by enforcing a useful, testable contract.

Keep exploring

Related skills & prompts

Browse this category ↗