design-component

Generate a reusable UI primitive spec with TSX sketch, props API, variants, states, accessibility, and tokens.

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/Flintmere/flintmere --skill design-component-flintmere
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-component
Source: https://github.com/Flintmere/flintmere/tree/main/.claude/skills/design-component
Command: npx skills add https://github.com/Flintmere/flintmere --skill design-component-flintmere

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design-component identifies when a repeating UI pattern deserves extraction into a reusable primitive, ensuring consistency, token discipline, and accessibility across the design system rather than ad-hoc implementations.

Core Features & Use Cases

  • Primitives-first design: recognize patterns that meet the threshold for a primitive (≥3 surfaces or design-system gaps).
  • Spec generation: produce a complete component spec including TSX sketch, props API, variants, states, accessibility notes, and tokens used.
  • Handoff readiness: prepare docs for the build-feature pipeline without writing to src/.
  • Collaboration: supports design-system governance with design-token alignment and accessibility baked in.

Quick Start

Provide a complete design-component primitive spec for the design system and hand off to build-feature.

Frequently Asked Questions about design-component

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

FAQPage Schema
How do I extract a reusable UI component primitive from repeated patterns?

You extract a reusable UI component primitive by identifying patterns appearing across three or more surfaces, then generating a specification with a TSX sketch, props API, variants, and accessibility guidelines to standardize the design system implementation.

What is the threshold for extracting a design system component primitive?

The threshold for extracting a component primitive is reaching three or more surfaces with a repeating UI pattern, or identifying a specific gap in the design system that requires standardization to prevent ad-hoc implementations.

How do I generate a TSX sketch and props API for a design system component?

You generate a TSX sketch and props API by applying the primitive specification to the repeated interface pattern, documenting variants with CVA where appropriate, defining states, and aligning props to design-token conventions.

Does design-component write to src directory files during component spec generation?

No, design-component does not write to the src directory; it produces a handoff artifact containing the TSX sketch, tokens, and test strategy intended for the build-feature workflow to implement.

Can I include accessibility guidelines and test strategies in a component primitive spec?

Yes, the component primitive spec includes accessibility guidelines and a test strategy alongside the props API, variants, states, and documented design tokens to ensure governance and compliance across the design system.

Why use CVA variants when designing frontend UI primitives?

CVA variants are used when appropriate to standardize component states and visual variations within the TSX sketch, ensuring the primitive aligns with design-token conventions and maintains consistency across multiple interface surfaces.