typescript-pro

Installation
Summary

Advanced TypeScript type systems, generics, branded types, and end-to-end type safety with tRPC integration.

  • Covers branded types, discriminated unions, conditional types, mapped types, and custom utility types for domain-driven type modeling
  • Includes type guards, assertion functions, and exhaustive pattern matching to enforce compile-time safety across state machines and APIs
  • Provides tsconfig best practices with strict mode, incremental compilation, project references, and declaration file generation
  • Integrates tRPC configuration for full-stack type safety between client and server
  • Emphasizes type-first API design, type coverage validation, and zero-error builds before deployment
SKILL.md

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:

Topic Reference Load When
Advanced Types references/advanced-types.md Generics, conditional types, mapped types, template literals
Type Guards references/type-guards.md Type narrowing, discriminated unions, assertion functions
Utility Types references/utility-types.md Partial, Pick, Omit, Record, custom utilities
Related skills

More from jeffallan/claude-skills

Installs
2.7K
GitHub Stars
9.0K
First Seen
Jan 21, 2026