New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Advanced TypeScript type-system work covering generics, custom guards, branded types, and tRPC end-to-end type safety.

skills.sh installs
14.9K
GitHub stars
12.5K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers type-first API design, from advanced generics and conditional or mapped types to build configuration and type testing
  • Includes code patterns for branded types, discriminated unions with exhaustive switches, custom utility types, and a strict tsconfig.json
  • Enforces strict mode, satisfies validation, const objects over enums, and explicit return types on public APIs
  • Designed for applications and libraries needing compile-time safety, monorepo project references, or full-stack type sharing with tRPC

Install

$ npx -y skills add jeffallan/claude-skills --skill typescript-pro -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

TypeScript Pro

Core Workflow

  1. Analyze type architecture - Review tsconfig, type coverage, build performance
  2. Design type-first APIs - Create branded types, generics, utility types
  3. Implement with type safety - Write type guards, discriminated unions, conditional types; run tsc --noEmit to catch type errors before proceeding
  4. Optimize build - Configure project references, incremental compilation, tree shaking; re-run tsc --noEmit to confirm zero errors after changes
  5. Test types - Confirm type coverage with a tool like type-coverage; validate that all public APIs have explicit return types; iterate on steps 3–4 until all checks pass

Reference Guide

Load detailed guidance based on context:

Details

Repository
github.com/jeffallan/claude-skills
Categories
Frontend & UI Code, Backend & APIs

More from jeffallan/claude-skills

All 66

Similar to Typescript Pro

More Frontend & UI Code