Skip to main content

exhaustive-switches

Stars5
Forks0
UpdatedFebruary 20, 2026 at 20:18

Use switch statements with an exhaustive default for discriminated unions and enum-like types. Use when handling union types with a discriminant (e.g. type field), message shapes, or variant types.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly