typescript

Enforce strict TypeScript patterns and best practices in codebases.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Ezequielpereyraa/ai-config --skill typescript-ezequielpereyraa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/Ezequielpereyraa/ai-config/tree/main/skills/typescript
Command: npx skills add https://github.com/Ezequielpereyraa/ai-config --skill typescript-ezequielpereyraa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TypeScript strong pattern enforcement and best-practice guidance for large-scale, type-safe codebases.

Core Features & Use Cases

  • Enforces clear separation of interfaces and types, promotes discriminated unions, and advocates explicit const objects over enums.
  • Guides teams on advanced TS techniques (mapped types, branded types, conditional types) to reduce runtime errors and improve maintainability.
  • Use Case: when starting a new microservice or refactoring a core module, apply consistent TypeScript patterns to ensure scalable, predictable behavior.

Quick Start

Apply strict TypeScript patterns to a new or existing codebase to enforce type-safety and best practices.

Frequently Asked Questions about typescript

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

FAQPage Schema
What's the best way to enforce strict TypeScript patterns in a large codebase?

To enforce strict TypeScript patterns, apply rules for using interfaces with I prefixes, const objects over enums, discriminated unions, and the satisfies operator to ensure type-safety and maintainability across components, services, and utilities.

When should I use discriminated unions and branded types in TypeScript?

Use discriminated unions and branded types in TypeScript when building scalable, type-safe modules that require predictable behavior and reduced runtime errors. These advanced patterns enforce strict typing constraints across complex codebases.

How do I choose between TypeScript interfaces and types for my project?

Choosing between TypeScript interfaces and types involves enforcing a clear separation: use interfaces with I prefixes for object shapes and apply type aliases for mapped types, conditional types, and generic constraints.

Does this TypeScript guidance require specific module structures for services and utilities?

Yes, enforcing TypeScript strict patterns requires proper module structure across components, services, and utilities. It applies mapped types, type guards, and generic constraints to ensure consistent, type-safe codebase behavior.

Why use const objects over enums when defining TypeScript patterns?

Using const objects over TypeScript enums provides better type safety and predictability. This pattern, combined with the satisfies operator and discriminated unions, enforces strict typing and reduces runtime errors in large-scale codebases.

Can TypeScript mapped types and conditional types reduce runtime errors?

TypeScript mapped types and conditional types reduce runtime errors by enforcing strict type constraints and generating predictable type transformations. They guide teams to improve maintainability when refactoring core modules or starting new microservices.