Skip to main content
Run any Skill in Manus
with one click
$pwd:

ts-pattern-refactor

// Detect and refactor conditional code to ts-pattern's match().with().exhaustive(). Refactors JSX branching, chained ternaries, and discriminated-union dispatch — but deliberately leaves plain single-condition if-chains alone. Use when sweeping a codebase for readability/exhaustiveness wins or when a new discriminated union has spread across the UI.

$ git log --oneline --stat
stars:1
forks:1
updated:May 6, 2026 at 05:05
SKILL.md
readonly