typescript-pro

Implement advanced TypeScript type systems with branded types and tRPC integration.

Updated Jun 16, 2026
One-click install
npx skills add https://github.com/Design-System-ET/genexus-dev-opencode --skill typescript-pro-design-system-et
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-pro
Source: https://github.com/Design-System-ET/genexus-dev-opencode/tree/main/skills/typescript-pro
Command: npx skills add https://github.com/Design-System-ET/genexus-dev-opencode --skill typescript-pro-design-system-et

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of maintaining large-scale TypeScript codebases by providing advanced type-level programming patterns, ensuring end-to-end type safety, and optimizing build performance.

Core Features & Use Cases

  • Advanced Type Systems: Implements branded types, conditional types, and mapped types for domain-driven modeling.
  • Type Safety & Validation: Configures tRPC and custom type guards to eliminate runtime errors and ensure strict API contracts.
  • Use Case: When building a complex monorepo, use this Skill to enforce strict type coverage, create reusable utility types, and configure project references for faster, incremental compilation.

Quick Start

Use the typescript-pro skill to analyze the current project tsconfig and implement branded types for all domain entities.

Frequently Asked Questions about typescript-pro

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure TypeScript project references for faster incremental builds in a monorepo?

Configure TypeScript project references by setting up strict tsconfig files to enable incremental compilation. This enforces end-to-end type safety across monorepo packages and optimizes build performance through isolated module validation.

What are branded types in TypeScript and when should I use them?

Branded types are advanced TypeScript patterns used for domain-driven modeling by tagging primitive types. Use them to enforce strict type safety and prevent mixing distinct domain entities in complex full-stack applications.

How do I set up tRPC to ensure end-to-end type safety across my full-stack application?

Set up tRPC by configuring custom type guards and strict API contracts to eliminate runtime errors. This integration leverages TypeScript type systems to ensure end-to-end type safety between your client and server without manual code generation.

Does TypeScript support exhaustive type coverage checks for discriminated unions?

TypeScript supports exhaustive type coverage by utilizing discriminated unions and conditional logic. This mechanism validates code integrity by forcing the compiler to handle all possible runtime states during domain modeling.

Why do I need mapped types and conditional logic in my TypeScript codebase?

You need mapped types and conditional logic to create reusable utility types and enforce domain-driven modeling. They allow complex type transformations without runtime overhead, ensuring robust type coverage in large-scale applications.

Can I use custom type guards to validate API contracts and eliminate runtime errors?

You can use custom type guards to validate API contracts and eliminate runtime errors by verifying unknown data shapes at boundaries. Combined with discriminated unions, they ensure strict type safety throughout your application logic.