component-spec-writer
Installation
SKILL.md
Component Spec Writer
Use this skill before generating component code. Agents produce better components when the interface, states, and constraints are defined first.
Process
- Define the component purpose and where it appears.
- Classify it as primitive, composed feature component, layout component, or page-level pattern.
- Define variants, sizes, visual states, interaction states, and data states.
- Define props/inputs, including controlled vs uncontrolled behavior if relevant.
- Define slots and composition rules.
- Define accessibility behavior: semantics, keyboard interaction, focus management, ARIA only when needed, target size, reduced motion.
- Define responsive behavior and token usage expectations.
- Write acceptance criteria for implementation and review.
Output format
## Component specification: [Name]