/laravel-ddd:craft-controllerfrom laravel-ddd
Crafting thin controllers. Traffic cops, not 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.
"Controllers are traffic cops, not detectives."
index, show, store, update, destroy.__invoke for complex operations.DB::transaction() belongs here.| ❌ Don't | ✅ Do | Why |
|---|---|---|
| Business logic in controller | Delegate to Action | Single responsibility |
| Raw queries in controller | Use QueryBuilder/scopes | Controllers don't query |
| Transaction in Action | Transaction in Controller | Enables Action composition |
| Deep conditionals | Early returns | Flat, readable flow |
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-actionCrafting an Action. The heart of business logic./craft-collectionCrafting custom collections. Domain pipelines./craft-concernCrafting Concerns (traits). Thin wiring, not business logic./craft-contextCrafting Context Objects. Parameter encapsulation for complex operations./craft-domain-structureCrafting Domain Structure. Mini-Laravel-app per domain./craft-dtoCrafting DTOs with Spatie Laravel Data v4.