acc-create-state
Installation
SKILL.md
State Pattern Generator
Creates State pattern infrastructure for objects that change behavior based on internal state.
When to Use
| Scenario | Example |
|---|---|
| Object behavior varies by state | Order (pending, paid, shipped) |
| Many conditionals based on state | Document workflow |
| State-specific transitions | Subscription lifecycle |
| Finite state machines | Payment processing |
Component Characteristics
StateInterface
- Defines available actions
- Returns new state after transition
- Encapsulates state-specific behavior