| name | state-machines |
| description | State machine templates and patterns for Claude Code. Provides structured state management for workflows, UI components, and process orchestration. Use when implementing stateful logic, workflow engines, or multi-step processes. |
State Machines
Document state machines for features with >3 states. Synced via GIR — template is kept current; your project state machines are always preserved.
How to Document State Machines
When implementing a feature with >3 states, add a new section in the PROJECT:state-machines section below following this template:
## [Feature Name]
\`\`\`
[state_a] --trigger--> [state_b]
[state_b] --trigger--> [state_c]
\`\`\`
| State | [Impact Col 1] | [Impact Col 2] | Notes |
|---|---|---|---|
### Business Rules
- Rule 1
- Rule 2
Checklist Before Adding
See CLAUDE-specgates.md for the full SpecKit convention.