typescript-strict

Configure TypeScript projects with strict type checking and safety flags.

783|62|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/dadbodgeoff/drift --skill typescript-strict-dadbodgeoff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-strict
Source: https://github.com/dadbodgeoff/drift/tree/main/drift%20v1%20depreciated/skills/typescript-strict
Command: npx skills add https://github.com/dadbodgeoff/drift --skill typescript-strict-dadbodgeoff

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps prevent bugs by enforcing stricter TypeScript compiler settings and introducing patterns that catch errors at compile time rather than in production.

Core Features & Use Cases

  • Compile-time Error Detection: Catches potential runtime errors before your code is deployed.
  • Enhanced Type Safety: Utilizes features like branded types and exhaustive switches to ensure type correctness.
  • Use Case: When starting a new TypeScript project or refactoring an existing one, apply these configurations to build more robust and maintainable codebases.

Quick Start

Apply the strict TypeScript configuration to your project by updating your tsconfig.json file.

Frequently Asked Questions about typescript-strict

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

FAQPage Schema
How do I enforce strict type checking in a TypeScript project?

You can enforce strict type checking by updating your tsconfig.json to enable strict mode flags. This shifts runtime error detection to compile time by minimizing `any` types and validating data at system boundaries.

What are branded types and exhaustive switches in TypeScript?

Branded types and exhaustive switches are TypeScript patterns that enhance type safety. They ensure type correctness by forcing compile-time validation of all possible states, preventing unhandled cases from reaching production.

How do I catch runtime errors at compile time in TypeScript?

To catch runtime errors at compile time in TypeScript, apply strict compiler configurations and Result types. These patterns validate data at system boundaries and eliminate unchecked type mismatches before deployment.

Can I apply strict TypeScript configurations to an existing codebase?

Yes, you can apply strict TypeScript configurations when refactoring an existing project. Updating the strict mode flags helps build a more robust and maintainable codebase by gradually eliminating `any` types.

Why should I minimize `any` types in TypeScript development?

You should minimize `any` types in TypeScript to prevent runtime errors. Strict type checking and boundary validation shift error detection to compile time, satisfying requirements for robust JavaScript development.