design-blade-component
Installation
SKILL.md
Design Blade Component
When To Use
Use this skill when a Blade view is getting repetitive, too large, or hard to reuse across the app.
Inputs Needed
- UI purpose, repeated markup, slots, props, localization needs, accessibility concerns, and tests.
Workflow
- Inspect existing Blade components and partials.
- Decide whether the UI belongs in a class-based component, anonymous component, or partial.
- Prefer the smallest reusable unit that removes duplication.
- Keep component APIs small and obvious.
- Localize labels and messages.
- Keep presentation logic out of the template whenever possible.
- Add tests when the component drives behavior or important UI states.