acc-create-state - PHP 8 State Pattern Generator
Generates State pattern infrastructure with context, state interface, concrete states, and unit tests.
Tags
Updated: 2026-03-23Capabilities
Typical Inputs
Typical Outputs
What this skill does
- generate state interface
- generate abstract state
- generate concrete states
- generate state factory
- generate state exceptions
- update entity with state pattern
- generate unit tests
Inputs
- bounded context name
- state definitions
- state transition actions
- valid transitions per state
Outputs
- state interface file
- abstract state file
- concrete state files
- state factory file
- state exception file
- entity file
- unit test files
Requirements
- PHP 8
- PHP readonly classes support
