state-modeling
Installation
SKILL.md
Purpose
Model the lifecycle of domain objects using state-transition diagrams (STDs) and state tables. Use this when objects move through defined states in response to events, and where invalid transitions must be prevented. State modeling systematically exposes missing requirements.
This is not a process flow -- it models the states of a single object over its lifetime, not the steps a user takes.
Key Concepts
State-Transition Diagram Elements
| Element | Representation | Meaning |
|---|---|---|
| State | Rounded rectangle | A condition the object can be in |
| Transition | Arrow between states | Movement from one state to another |
| Event/Trigger | Label on arrow | What causes the transition |
| Guard | [condition] on arrow | Condition that must be true for the transition |
| Action | /action on arrow | What happens during the transition |
| Initial State | Filled circle | Where the object starts |
| Final State | Bullseye circle | Where the object terminates |