What problem does it solve?
structure-decide removes guesswork when deciding whether a UI component should be monolithic or composition-based, ensuring consistent alignment with the shadcn-vue criterion.
Core Features & Use Cases
- Monolithic vs composition verdict: Produces a clear
structure: monolithic or structure: composition outcome based on reordering/omission needs.
- Spec-aware inputs: Uses the component spec’s Purpose, Props, Slots, and Sub-components, or the verbal description during spec creation, and optionally the figma-discover JSON to evaluate regions.
- Defense-in-depth recheck: Supports initial decision during /spec-create and a second confirmation during /component-create when the spec is approved.
- Strict decision output: Emits only the two required output lines (verdict + one-sentence rationale) or blocks with a targeted missing-section message.
Quick Start
Use the structure-decide skill to analyze a component spec and output whether its structure should be monolithic or composition along with a one-sentence rationale tied to consumer reordering/omission needs.