/laravel-ddd:craft-actionfrom laravel-ddd
Crafting an Action. The heart of business logic.
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.
"An Action is a single unit of business logic."
execute().__construct for dependencies.execute().$this, chain private methods. Never pass params between them.| ❌ Don't | ✅ Do | Why |
|---|---|---|
DB::transaction() in Action | Transaction in Controller | Prevents composition |
| Validate in Action | Validate in FormRequest | Single responsibility |
Wrap Model::create() only | Add real logic or skip Action | No value added |
| Return DTO/Response | Return Model or void | Actions aren't HTTP-aware |
| Pass params to private methods | Store on $this, chain methods | Verbose signatures, no fluency |
See examples/.
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