state-management
Finite state machines, event sourcing, CQRS (Command Query Responsibility Segregation), and state modeling.
от sethdford★ 51 звезда на GitHub
Установить state-management в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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
- Define States: What states can your system be in? Be exhaustive
- Define Transitions: What events trigger which transitions?
- Model Constraints: What transitions are invalid? Encode in state machine
- Event Sourcing: If you need audit trail, store events not state
- Separate Reads: If read/write patterns differ, separate models
- 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)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл state-management?
Finite state machines, event sourcing, CQRS (Command Query Responsibility Segregation), and state modeling.
Как установить скилл state-management?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл state-management запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…