/laravel-playbook:decide-extractionfrom laravel-playbook
When and how to extract application code into a standalone Laravel package. The extraction playbook.
Ships in laravel-playbook. 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.
"Every great package started as someone's application code that solved a problem worth sharing."
Extract when:
Don't extract when:
Ask: "Does this code solve a PHP problem or a project problem?"
PHP problems are extractable. Project problems are not.
| Ask | Answer | Action |
|---|---|---|
| Have you copy-pasted this across projects? | Yes | Strong extraction signal |
| Does it depend on your domain models? | Yes | Decouple first, then reassess |
| Do existing packages solve this well? | Yes | Contribute upstream instead |
Can you replace all App\ refs with generics? | Yes | Clean boundary -- extract |
| Would other Laravel developers use this? | No | Keep it internal |
| Is the existing solution abandoned or has poor DX? | Yes | Extract with better DX |
| Can you explain what it does in one sentence? | Yes | Right scope for a package |
See examples.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
29 skills in this plugin
/craft-apiCrafting API surfaces. Entry points, fluent builders, progressive disclosure./craft-brandingCrafting package identity. Professional impressions from the first click./craft-ciCrafting a CI pipeline. Five workflows, zero manual gates./craft-configCrafting a config file. The self-documenting contract between package and consumer./craft-deprecationCrafting deprecations. Sunset gracefully, remove confidently./craft-docsCrafting a documentation site. Progressive depth, not progressive confusion.npx claudepluginhub attac-t/the-foundry --plugin laravel-playbook