Agent skill

Component Spec Skill: Write Implementable Component Specs

The component-spec skill makes an AI coding agent write one complete library component spec, from anatomy and props to states, accessibility notes and do and don't usage rules.

Install
/plugin marketplace add Owl-Listener/designer-skills
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the component-spec skill?

The component-spec skill is a short instruction file in the design-systems plugin of Owl-Listener's designer-skills pack. It makes your agent specify a single library component in eight parts: overview, anatomy, variants, props, states, behavior, accessibility and usage guidelines, written so designers and developers can both build from it.

The component-spec skill lives in the design-systems plugin of Owl-Listener's designer-skills pack. The SKILL.md casts the agent as an expert in thorough, implementable component specifications, and asks for one finished spec per component covering anatomy, behavior, variants, states, accessibility and usage.

Its description draws two boundaries. It is for defining one library component. For a reusable documentation scaffold the description points to documentation-template, and for a problem and solution pattern it points to pattern-library.

The eight sections of a component spec

  1. Overview: name, description, and when to use or not use the component.
  2. Anatomy: a visual breakdown, with required and optional elements.
  3. Variants: size such as sm, md and lg, style such as primary, secondary and ghost, and layout.
  4. Props and API: name, type, default, description and whether it is required.
  5. States: default, hover, focus, active, disabled, loading and error.
  6. Behavior: interactions, animations, responsive behavior and edge cases.
  7. Accessibility: ARIA roles, keyboard navigation, screen reader and focus management.
  8. Usage guidelines: do and don't examples, content rules and related components.

What changes in the agent's output

  • The spec is written for two readers at once, designers and developers.
  • Every variant and state gets an example instead of a general description.
  • The spec covers behavior as well as appearance, so edge cases are written down.
  • All input methods are considered, not only the mouse.

Who the component-spec skill is for

Best for

  • Design system teams defining a button, input, menu or any single library component.
  • Handoff where a developer needs props, states and keyboard behavior in one place.
  • Defining a library component so its states and keyboard behavior are written down once.

Not for

  • Writing a documentation template that many components share.
  • Generating the component's code. The skill produces a spec, and the agent builds from it afterwards.

Use it with UiChemy

A finished spec gives a Figma component clear states and variants to match. UiChemy Figma to WordPress converts that design, and Composer then edits the result as real HTML, CSS and JS inside Elementor or Gutenberg. Click Get Started on uichemy.com. Related page: tailwind-design-system.