/laravel-ddd:craft-queryfrom laravel-ddd
Crafting QueryBuilders. Eloquent power, not Repositories.
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.
"Eloquent is a superpower. Don't hide it behind a Repository."
->pending()->forUser($u)).return $this for chaining.pending(), not wherePending().| ❌ Don't | ✅ Do | Why |
|---|---|---|
| Repository pattern | QueryBuilder | Eloquent is already the abstraction |
| One-off scope methods | Reusable builder methods | DRY |
whereStatus('pending') | pending() | Semantic clarity |
| Update logic in builder | Actions for mutations | Builders query, Actions mutate |
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