typescript

Enforce strict-mode TypeScript with Zod boundary validation and strict compiler flags.

25|3|Updated Jul 14, 2026
One-click install
npx skills add https://github.com/nimadorostkar/Claude-Skills-collection --skill typescript-nimadorostkar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/nimadorostkar/Claude-Skills-collection/tree/main/skills/languages/typescript
Command: npx skills add https://github.com/nimadorostkar/Claude-Skills-collection --skill typescript-nimadorostkar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates runtime errors and type-safety gaps by enforcing strict compiler configurations and robust boundary validation in TypeScript projects.

Core Features & Use Cases

  • Strict Configuration: Automates the setup of strict compiler flags like noUncheckedIndexedAccess to prevent common runtime crashes.
  • Boundary Validation: Provides patterns for using Zod to validate untrusted inputs at the edge of your application.
  • Domain Modeling: Guides the use of discriminated unions and exhaustive matching to make invalid states unrepresentable.

Quick Start

Apply the typescript skill to review my current tsconfig and refactor the user authentication module to use strict type boundaries.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I enforce strict-mode TypeScript to prevent runtime errors?

Enforce strict TypeScript by automating strict compiler flags like noUncheckedIndexedAccess to prevent common runtime crashes and eliminate type-safety gaps. This approach ensures high reliability and a zero-any codebase by catching errors during static analysis.

How do I validate untrusted inputs at the boundary in TypeScript?

Validate untrusted inputs at the boundary in TypeScript by integrating Zod for robust runtime schema definition. This boundary validation ensures that data entering your application matches expected types before processing, closing type-safety gaps left by static analysis alone.

Do I need Zod to use strict TypeScript development patterns?

Yes, Zod is required for strict TypeScript boundary validation. The integration with Zod is needed for defining runtime schemas that validate untrusted inputs at the edge of your application, ensuring high reliability and zero-any codebases.

What is the best way to model domain types so invalid states are unrepresentable?

Model domain types so invalid states are unrepresentable by guiding the use of discriminated unions and exhaustive matching. This domain modeling technique makes invalid states impossible to construct at compile time, ensuring robust type-safe domain modeling in strict-mode TypeScript.

How do I refactor an existing TypeScript project to use strict type boundaries?

Refactor an existing TypeScript project to use strict type boundaries by reviewing your tsconfig and applying strict compiler flags. Automate the setup of configurations like noUncheckedIndexedAccess and implement boundary validation patterns to eliminate type-safety gaps.

Why does strict TypeScript configuration prevent runtime crashes?

Strict TypeScript configuration prevents runtime crashes by enforcing rigorous compiler checks like noUncheckedIndexedAccess during static analysis. These strict flags catch undefined access and type mismatches before execution, eliminating runtime errors and type-safety gaps in your codebase.