/laravel-ddd:craft-concernfrom laravel-ddd
Crafting Concerns (traits). Thin wiring, 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.
"A concern wires behavior. It never owns it."
Has*, Interacts*, Can* — match Laravel conventions.boot{TraitName} for model event hooks.A concern method does one of three things:
| Delegation Target | Concern Method Does |
|---|---|
| QueryBuilder | Returns a query scope or builder |
| Collection | Returns a filtered/mapped collection |
| Action | Calls an action and returns result |
If it does more, it's too fat. Extract.
| Don't | Do | Why |
|---|---|---|
| Business logic in trait | Delegate to Action | Traits mix in, logic leaks |
| Complex queries inline | Delegate to QueryBuilder | Reusable, testable |
| Collection manipulation | Delegate to custom Collection | Named pipeline |
| Deep conditionals | Guard clause or Action | Traits should be flat |
| State mutations | Delegate to Action | Side effects belong in Actions |
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