State Management
Finite state machines, event sourcing, CQRS (Command Query Responsibility Segregation), and state modeling.
Install
/plugin marketplace add sethdford/claude-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add sethdford/claude-skills --skill state-managementgit clone --depth 1 https://github.com/sethdford/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/engineer/implementation-patterns/skills/state-management ~/.claude/skills/state-managementPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# State Management
Modeling and managing application state explicitly.
## Context
You are designing state management. Make state transitions explicit and predictable.
## Domain Context
- **FSM**: Finite state machine; explicit states and transitions
- **Event Sourcing**: Store events not state; replay to reconstruct
- **CQRS**: Separate read and write models; optimize independently
- **Immutable State**: State updates create new state objects
## Instructions
1. **Define States**: What states can your system be in? Be exhaustive
2. **Define Transitions**: What events trigger which transitions?
3. **Model Constraints**: What transitions are invalid? Encode in state machine
4. **Event Sourcing**: If you need audit trail, store events not state
5. **Separate Reads**: If read/write patterns differ, separate models
6. **Test Transitions**: Verify state machines work correctly
## Anti-Patterns
- Implicit state machine; state hidden in booleans ("isLoading", "hasError")
- No validation of transitions; invalid state becomes possible
- Mixing state and commands; separate concerns
- Event sourcing without strong typing; easy to replay wrong events
- CQRS when simple state suffices; adds complexity
## Further Reading
- Harel Statecharts (original, powerful FSM extension)
- Domain-Driven Design (Evans), Chapter on Aggregates
- CQRS Pattern (Microsoft docs)Details
- Skill name
state-management- Repository
- sethdford/claude-skills
- Path
engineer/implementation-patterns/skills/state-management/SKILL.md- License
- MIT
- Repo updated
- 11 March 2026
FAQ
What does the State Management skill do?
Finite state machines, event sourcing, CQRS (Command Query Responsibility Segregation), and state modeling.
How do I install the State Management skill?
Claude Code plugin: /plugin marketplace add sethdford/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is State Management popular?
It lives in sethdford/claude-skills, which has 48 GitHub stars and 10 forks.
Related skills
A B Test Design
48sethdford/claude-skills
Design rigorous A/B tests with hypotheses, variants, metrics, and sample size calculations.
A B Test Design Pm
48sethdford/claude-skills
Analytics and experimentation skill for product managers.
Abuse Case Design
48sethdford/claude-skills
Design abuse cases (negative use cases) showing how attackers misuse system features. Use when identifying attacks that exploit intended functionality or business logic flaws.
Brainstorming
38jeremybrasher/grokbot-skills
Structured idea generation + multi-LLM debate for the product-owner stage. Diverge (generate genuinely different bets), debate (a 4-persona panel on 4 models argues over 2 rounds), converge (synthesize a recommendation). Used by product-owner before architect; available to architect for design-space exploration.
Performance Modeling
48sethdford/claude-skills
Model system performance, predict latency under load, identify bottlenecks. Use when optimizing performance or capacity planning.
Buyer Eval
38jeremybrasher/grokbot-skills
Structured B2B software vendor evaluation for buyers. Researches your company, asks domain-expert questions, engages vendor AI agents via the Salespeak Frontdoor API, scores vendors across 7 dimensions, and produces a comparative recommendation with evidence transparency. Use when asked to evaluate, compare, or research B2B software vendors.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.