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.
"Type safety isn't a luxury; it's requirements documentation."
vendor/spatie/laravel-data/src to avoid hallucination.Create{Model}{Suffix} (input) vs {Model}{Suffix} (output/representation).{Suffix}: DTO or Data — whichever already dominates. Consistency with the codebase beats any plugin preference.Upsert{Model}{Suffix} ↔ Upsert{Model}Action. Matching names, one Optional id.Collection over DataCollection. Use $data->all().#[AutoWhenLoadedLazy] for conditional relationship inclusion.->with(), never direct assignment.| ❌ Don't | ✅ Do | Why |
|---|---|---|
DataCollection | Native Collection | v4 preferred for basic nesting. |
#[Required] on a typed property | Non-nullable type, no default | v4 derives required-ness from the type. |
$dto->except('id')->toArray() | $dto->all() | Cleaner. Handle Optional in action. |
Omit #[AutoWhenLoadedLazy] | Always use on relations | Avoids triggering lazy loads. |
#[WithCast] on output DTO | Only on request DTOs | Casts are for input direction only. |
| Guess API | Read docs + namespace | Avoid hallucination. |
| Direct mutation | ->with() | Immutability. |
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-contextCrafting Context Objects. Parameter encapsulation for complex operations.Other plugins' skills for the same job