/laravel-ddd:decide-extractionfrom laravel-ddd
When to extract an Action class vs inline code. Extraction decisions.
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.
"If you can name it with VerbNoun, extract it."
Extract to Action when:
CreateOrder, SendInvoiceKeep inline when:
Model::create($data)Ask: "If I delete this code, what breaks?"
| Ask Yourself | Answer | Use |
|---|---|---|
| Can name it VerbNoun? | No | Inline |
| Multiple consumers? | Yes | Action |
| Has business rules? | Yes | Action |
| Dispatches events? | Yes | Action |
| Just wraps CRUD? | Yes | Inline |
For concrete examples, 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.