/laravel-ddd:craft-resultfrom laravel-ddd
Crafting Result Objects. Rich outcomes beyond success/failure.
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 boolean tells you what happened. A Result tells you why."
::success(), ::failed(), ::skipped(). Never bare constructor.$result->isSuccess(), $result->wasSkipped().| ❌ Don't | ✅ Do | Why |
|---|---|---|
| Return bool | Return Result object | No context on failure |
| Throw on expected fail | Return Result::failed() | Expected != exceptional |
| Array with status key | Typed Result class | Type safety, IDE support |
| Log inside action | Return Result, log outside | Action stays pure |
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