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.
Cursor Plugin Teamkit Rule Typescript Exhaustive Switch
Use exhaustive switch handling for TypeScript unions and enums
Cursor Plugin Teamkit Rule Typescript Exhaustive Switch by KunanonJ · 3db2c41
npx skillmds@latest add kunanonj/cursor-plugin-teamkit-rule-typescript-exhaustive-switch File contents
---name: cursor-plugin-teamkit-rule-typescript-exhaustive-switchdescription: Use exhaustive switch handling for TypeScript unions and enums---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.
KunanonJ/ai-skills-hub/tree/main/skills/cursor-plugin-teamkit-rule-typescript-exhaustive-switch commit 3db2c41adf
Frequently asked questions
Run npx skillmds@latest add kunanonj/cursor-plugin-teamkit-rule-typescript-exhaustive-switch in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Use exhaustive switch handling for TypeScript unions and enums It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
KunanonJ (@kunanonj) published this skill. Their other Agent Skills are listed on their SkillMD profile.