/laravel-ddd:craft-model-statefrom laravel-ddd
Crafting model states. Explicit state machines.
Ships in laravel-ddd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
"States are not strings. They are behavior."
config() with transitions.Domain/Entity/States/, not App/States/.| ❌ Don't | ✅ Do | Why |
|---|---|---|
| Enum for stateful behavior | State classes | Behavior belongs with state |
| Transitions in model | Custom transition classes | Single responsibility |
| Fat abstract state | Thin base, behavior in concrete | Each state is unique |
See examples.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub attac-t/the-foundry --plugin laravel-ddd47 skills in this plugin
/craft-contextCrafting Context Objects. Parameter encapsulation for complex operations.