typescript

Enforce type safety in TypeScript projects with explicit types and strict tsconfig configuration.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/curphey/bosun --skill typescript-curphey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/curphey/bosun/tree/main/skills/typescript
Command: npx skills add https://github.com/curphey/bosun --skill typescript-curphey

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TypeScript projects often struggle with maintaining strict type safety as codebases grow; this guide provides a structured approach to encode data shapes, enforce safe patterns, and guide reviews to catch type-related issues early.

Core Features & Use Cases

  • Explicit typing discipline: design data shapes with discriminated unions and robust type guards to prevent invalid states.
  • Strict tooling and review practices: enable strict mode, configure tsconfig.json, and apply type-aware linting for safer code.
  • Migration and debugging support: navigate JavaScript-to-TypeScript migrations and debugging type errors with best practices.

Quick Start

Enable strict mode in tsconfig.json, design a discriminated union for a sample state, and run a type-safe review on a small module to surface type errors early.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I enforce strict type safety in TypeScript to prevent invalid states?

Enforce strict type safety in TypeScript by enabling strict mode in tsconfig.json and encoding data shapes with explicit types like discriminated unions, making invalid states unrepresentable and catching type errors early.

What is the best way to configure tsconfig and eslint for robust TypeScript type checking?

The best way to configure TypeScript type checking involves enabling strict mode in tsconfig.json and applying type-aware eslint linting rules, which establishes robust tooling practices to catch type-related issues during development and reviews.

How do I use discriminated unions and generics to design safe data shapes?

Use discriminated unions and generics to design safe TypeScript data shapes by explicitly typing state, creating robust type guards, and ensuring invalid states cannot compile, guided by advanced type patterns.

Can I use disciplined TypeScript patterns for JavaScript to TypeScript migrations?

Yes, you can use disciplined TypeScript patterns during JavaScript-to-TypeScript migrations by applying explicit typing discipline, leveraging strict mode configuration, and following best practices to debug type errors.

Why should I enable strict mode when configuring TypeScript projects?

You should enable strict mode when configuring TypeScript projects because it enforces explicit type definitions and robust type-aware linting, preventing invalid states and ensuring code correctness as your codebase grows.

How do I conduct code reviews focused on TypeScript type correctness?

Conduct TypeScript code reviews for type correctness by checking explicit type definitions, verifying discriminated unions, applying type-aware linting, and using recommended patterns to surface type errors in modules.