/laravel-ddd:craft-contextfrom laravel-ddd
Crafting Context Objects. Parameter encapsulation for complex operations.
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.
"When an action needs too many parameters, the parameters become the object."
::forProvider(), ::forBatch(). Intent in the name.readonly class. Set once, read many. No setters.| ❌ Don't | ✅ Do | Why |
|---|---|---|
| 5+ action parameters | Context object | Clarity, maintainability |
| Generic constructor | Named constructors | Intent is explicit |
| Mutable context | Immutable properties | Prevents bugs in long chains |
| Array of options | Typed properties | IDE support, validation |
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-controllerCrafting thin controllers. Traffic cops, not business logic.Other plugins' skills for the same job