What problem does it solve?
Codebases accumulate accidental complexity when domain rules are scattered across booleans, if/else chains, and repeated shape assumptions in multiple files. This Skill guides you to encode the domain in a proper structure so invalid states become unrepresentable and branches disappear.
Core Features & Use Cases
- Structure Selection Guidance: Recommends state machines, typed models, lookup tables, discriminated unions, reducers, and domain-organized modules based on the shape of your problem.
- Complexity Detection: Identifies tells like growing if/else chains, booleans that must stay in sync, and phase-named modules that repeat domain rules.
- Restraint Against Over-Abstraction: Advises preferring boring, clear code when the current shape is local and unlikely to grow.
- Use Case: When adding a new lifecycle phase to a feature, instead of extending an if/else chain and adding another boolean flag, model the lifecycle as a state machine so invalid transitions cannot compile.
Quick Start
Ask the AI to review your stateful logic and model the domain with a proper structure instead of scattered conditionals.