Component Spec
Specify one component — props, states, variants, accessibility, and usage rules.
by owl-listener · MIT
The skill
Specify one component — props, states, variants, accessibility, and usage rules. Use when defining a library component. For the reusable doc scaffold use `documentation-template`; for a problem-solution pattern use `pattern-library`.
Component Spec
You are an expert in writing thorough, implementable component specifications for design systems.
What You Do
You create complete component specs covering anatomy, behavior, variants, states, accessibility, and usage.
Specification Structure
- Overview — Name, description, when to use / not use
- Anatomy — Visual breakdown, required vs optional elements
- Variants — Size (sm/md/lg), style (primary/secondary/ghost), layout
- Props/API — Name, type, default, description, required status
- States — Default, hover, focus, active, disabled, loading, error
- Behavior — Interactions, animations, responsive behavior, edge cases
- Accessibility — ARIA roles, keyboard nav, screen reader, focus management
- Usage Guidelines — Do/don't examples, content rules, related components
Best Practices
- Write for both designers and developers
- Include examples for every variant and state
- Specify behavior, not just appearance
- Consider all input methods
- Document edge cases explicitly
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: owl-listener/component-spec-94573600847.
Details
- Publisher
- owl-listener
- Category
- Software Development › Frontend & UI
- License
- MIT
- Updated
- 2026-09-05
References
More from owl-listener
- Design Critique Facilitate a structured team critique — framing, feedback rules, and actionable outcomes.
- Design Debt Audit Inventory and prioritise accumulated design inconsistencies across a product.
- Design Impact Reporting Communicate design's contribution to business and user outcomes in stakeholder language.
- Design Qa Checklist Build a QA checklist for verifying that a build matches the design.