component-spec

Generate component specifications with anatomy, variants, states, and accessibility guidelines.

3|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/hulusi-tunc/unicorn-skills --skill component-spec-hulusi-tunc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-spec
Source: https://github.com/hulusi-tunc/unicorn-skills/tree/main/.claude/skills/design-systems--component-spec
Command: npx skills add https://github.com/hulusi-tunc/unicorn-skills --skill component-spec-hulusi-tunc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Clear, implementable component specifications help design teams and engineers align on anatomy, variants, states, and accessibility, reducing ambiguity and rework.

Core Features & Use Cases

  • Anatomy & Props: Define structure, required vs optional fields, and API surface for components.
  • Variants & States: Document variants, interaction states, and responsive behavior with explicit examples.
  • Accessibility & Guidelines: Include ARIA roles, keyboard navigation, focus management, and usage rules for robust design systems.

Quick Start

Describe the component specification in a clear, implementable plan that the team can execute immediately.

Frequently Asked Questions about component-spec

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I document component anatomy and states for a design system?

Component specifications define structure, variants, and interaction states to align design teams and engineers. This Skill generates structured Markdown outlining anatomy, props, states, and accessibility rules to reduce ambiguity and rework.

What should be included in design system component documentation for engineer handoff?

Design system component documentation should include anatomy, variants, props, states, behavior, accessibility, and usage guidelines. This ensures teams have a clear, implementable plan that reduces ambiguity and rework during development handoff.

How do I write accessibility and ARIA guidelines for component variants?

Accessibility guidelines for component variants require documenting ARIA roles, keyboard navigation, and focus management. This Skill generates these rules alongside usage guidelines to ensure robust and inclusive design system components.

Can I generate a structured component API and props specification automatically?

Yes, you can generate a structured component API specification by defining required versus optional fields. This Skill outputs a structured Markdown body that explicitly outlines the Props/API surface for your design system components.

Does this approach work for documenting responsive behavior and component governance?

Yes, this approach works for documenting responsive behavior and component governance by applying the specification structure. It ensures consistent rules across anatomy, variants, states, and usage guidelines throughout the design system.

What is the best way to structure a component specification for a design system?

The best way to structure a component specification is using a Markdown body with frontmatter for name and description. The body should outline overview, anatomy, variants, props, states, behavior, and accessibility.