/laravel-ddd:decide-abstraction-timingfrom laravel-ddd
When to abstract vs copy-paste. The rule of three.
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.
"Duplication is far cheaper than the wrong abstraction."
Copy-Paste when:
Abstract when:
Ask: "If I change one, must I change all?"
| Ask | Answer | Use |
|---|---|---|
| First time seeing this pattern? | Yes | Copy-paste |
| Second time, same context? | Yes | Copy-paste (note it) |
| Third time, identical pattern? | Yes | Abstract |
| Slight variations each time? | Yes | Keep separate |
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-contextCrafting Context Objects. Parameter encapsulation for complex operations.Other plugins' skills for the same job