ui-designer/component-specification

Defines variants, sizes, and states for reusable UI components like buttons, inputs, and cards.

553|50|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/echoVic/boss-skill --skill ui-designer-component-specification
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ui-designer/component-specification
Source: https://github.com/echoVic/boss-skill/tree/main/skill/skills/ui-designer/component-specification
Command: npx skills add https://github.com/echoVic/boss-skill --skill ui-designer-component-specification

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

UI design often suffers from inconsistent components, missing interaction states, and undocumented specs, forcing frontend developers to guess at hover styles, disabled states, or sizing rules. This Skill provides a complete component specification framework covering variants, dimensions, and states for common UI elements.

Core Features & Use Cases

  • Component State Matrices: Defines all states (default, hover, pressed, focus, disabled, loading, error) for buttons, inputs, selects, checkboxes, radios, and switches.
  • Sizing and Variant Tables: Provides concrete pixel values for sm/md/lg sizes and variant definitions (primary, secondary, ghost, danger) for cards, tags, badges, and tooltips.
  • Code Examples: Includes TSX usage snippets for each component so specs translate directly into implementation.
  • Use Case: When designing a settings page, use this Skill to produce a component specification section documenting every button variant, input state, and card style so frontend developers can build without ambiguity.

Quick Start

Ask the UI designer agent to generate the component specification section for your design document, covering buttons, inputs, and cards with all states and sizes.

Frequently Asked Questions about ui-designer/component-specification

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

FAQPage Schema
How do I document UI component states for frontend developers?

Create a state matrix for each component covering default, hover, pressed, focus, disabled, loading, and error states with concrete token values. This Skill provides ready-made tables for buttons, inputs, and form controls that map each state to colors, borders, and cursor behavior.

What should a button component specification include?

A button spec should define variants (primary, secondary, ghost, danger, link), sizes with exact height and padding values, and all interaction states. It should also cover icon buttons, loading spinners, and provide TSX code examples for each variant.

Does this component specification work with an existing design system?

Yes, it depends on a design system skill that supplies tokens like Primary, Gray-300, radius-md, and shadow-lg. The component specs reference these tokens rather than hardcoding raw values, keeping components consistent with the broader design language.

Why do UI components look inconsistent across a product?

Inconsistency usually comes from missing specifications: designers only document default states, sizes are not aligned across components, and edge cases like long text or empty states are ignored. A complete spec with state tables and sizing rules prevents these gaps.

What are the limitations of a Markdown-based component specification?

Markdown specs document intent but cannot enforce it in code or render live previews. Teams needing interactive documentation should pair the spec with a component library or Storybook, using the Markdown tables as the source of truth for values.