# Cursor Plugin Teamkit Rule Typescript Exhaustive Switch

> Use exhaustive switch handling for TypeScript unions and enums

- Skill: `kunanonj/cursor-plugin-teamkit-rule-typescript-exhaustive-switch` (Agent Skill)
- Install (CLI): `npx skillmds@latest add kunanonj/cursor-plugin-teamkit-rule-typescript-exhaustive-switch`
- Raw SKILL.md: https://api.skillmd.com/api/skills/kunanonj/cursor-plugin-teamkit-rule-typescript-exhaustive-switch/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: KunanonJ (https://skillmd.com/u/kunanonj)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/kunanonj/cursor-plugin-teamkit-rule-typescript-exhaustive-switch

---


typescript-exhaustive-switch: In switch statements over discriminated unions or enums, use a `never` check in the default case so newly added variants cause compile-time failures until handled.

