typescript-strict-patterns

Establishes strict TypeScript patterns for tsconfig, ESLint, Zod, and typing across projects.

2|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/eins78/skills --skill typescript-strict-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-strict-patterns
Source: https://github.com/eins78/skills/tree/main/skills/typescript-strict-patterns
Command: npx skills add https://github.com/eins78/skills --skill typescript-strict-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TypeScript projects often drift from best practices, leading to inconsistent configurations and fragile type safety. This Skill provides a curated set of patterns and configurations to standardize tsconfig, ESLint, and type-level patterns, reducing runtime errors and improving maintainability.

Core Features & Use Cases

  • tsconfig: enforce strict base configurations (extends from @total-typescript/tsconfig) and project-specific variants
  • ESLint: baseline strict rules including switch-exhaustiveness and no-unnecessary-condition, with test-file exceptions
  • Zod: establish boundary schemas and type-safe data parsing
  • Type patterns: discriminated unions, branded types, template literal types, and safe access patterns
  • Use Case: maintain consistent type safety across large codebases and teams

Quick Start

Configure your project to adopt the TypeScript strict patterns by applying the recommended tsconfig and ESLint settings.

Frequently Asked Questions about typescript-strict-patterns

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

FAQPage Schema
How do I enforce strict TypeScript patterns across a large codebase?

To enforce strict TypeScript patterns, you apply a curated tsconfig baseline extending @total-typescript/tsconfig and ESLint rules to standardize type safety, reducing runtime errors and improving maintainability across large teams.

What's the best way to set up Zod boundary schemas for type-safe data parsing?

The best way to set up Zod boundary schemas is to establish type-safe data parsing patterns at code boundaries, ensuring validated data flows securely into your application logic.

How do I configure ESLint for TypeScript strict rules like switch-exhaustiveness?

To configure ESLint for TypeScript strict rules, apply baseline settings that include switch-exhaustiveness and no-unnecessary-condition checks, with specific exceptions configured for test files.

When do I need discriminated unions and branded types in TypeScript?

You need discriminated unions and branded types in TypeScript when establishing type-level patterns to improve code reliability, enforce runtime safety, and maintain consistent type checking across libraries and monorepos.

Can I use these TypeScript strict patterns in a monorepo environment?

Yes, you can use these TypeScript strict patterns in a monorepo environment because they are specifically applicable to maintaining consistent type safety across libraries, apps, and monorepos.

What are the limitations of relying only on tsconfig for type safety?

Relying only on tsconfig for type safety leaves gaps at runtime boundaries; complementing it with Zod schemas and ESLint exhaustiveness rules ensures comprehensive type checking and data validation.