/laravel-ddd:ground-consumer-firstfrom laravel-ddd
Consumer-first design. Shape the call-site before the implementation.
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.
"Write the call-site you wish existed. Then make it true."
owner(), never ownerId(). The caller who wants the key writes ->id; the caller who wants anything else is not sent back for a second method.Of every line you are tempted to keep, ask:
Which call-site becomes clearer because this line exists?
This is why extracting a condition into a named predicate is correct even though it adds lines. The if now reads as a sentence. The line was bought, not spent.
| ❌ Don't | ✅ Do | Why |
|---|---|---|
| Build the domain, then find the call-site ugly | Sketch the call-site first, then satisfy it | Reshaping is expensive; sketching is free |
| Delete a named predicate to "save a line" | Keep it — the caller reads as a sentence | It is DX surface, not internal weight |
| Add a parameter "in case someone needs it" | Add it when a call-site needs it | No caller is clearer for it today |
| Wrap a method to "keep the API consistent" | Let the caller use the real method | A pass-through answers the question with silence |
| Return an id from a resolver | Return the model; the caller takes ->id | One question answered, the rest hidden |
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.