·exhaustiveness-checking
</>

exhaustiveness-checking

Use when handling tagged unions. Use when adding new cases to discriminated unions. Use when switch statements must cover all cases.

5Installs·0Trend·@marius-townhouse

Installation

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill exhaustiveness-checking

How to Install exhaustiveness-checking

Quickly install exhaustiveness-checking AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill exhaustiveness-checking
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: marius-townhouse/effective-typescript-skills.

SKILL.md

View raw

Use never to ensure all cases in a union are handled.

When you add a new variant to a union type, TypeScript can automatically flag every switch statement that needs updating. This catches errors of omission at compile time.

Without exhaustiveness checking, new union variants are silently ignored:

Use when handling tagged unions. Use when adding new cases to discriminated unions. Use when switch statements must cover all cases. Source: marius-townhouse/effective-typescript-skills.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill exhaustiveness-checking
Category
</>Dev Tools
Verified
First Seen
2026-02-26
Updated
2026-03-10

Browse more skills from marius-townhouse/effective-typescript-skills

Quick answers

What is exhaustiveness-checking?

Use when handling tagged unions. Use when adding new cases to discriminated unions. Use when switch statements must cover all cases. Source: marius-townhouse/effective-typescript-skills.

How do I install exhaustiveness-checking?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill exhaustiveness-checking Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/marius-townhouse/effective-typescript-skills