Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use exhaustive switch handling for TypeScript unions and enums
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -4% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 37% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 25% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -28% | 0% |
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.
Other measured skills in the registry, with their headline benchmark lift.