/laravel-ddd:craft-event-driven-modelfrom laravel-ddd
Crafting Event-Driven Models. Side effects via observers.
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.
"Models emit events. Subscribers handle consequences."
$dispatchesEvents maps model events to domain events.| ❌ Don't | ✅ Do | Why |
|---|---|---|
Logic in boot() | Event + Subscriber | Testable, traceable |
| Direct method calls | Dispatch event | Loose coupling |
| Fat model observers | Focused subscribers | Single responsibility |
| Skip event for "simple" | Always event for side effects | Consistency |
See examples.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub attac-t/the-foundry --plugin laravel-ddd47 skills in this plugin
/craft-contextCrafting Context Objects. Parameter encapsulation for complex operations.Other plugins' skills for the same job