Agent skill

Design System Architecture Skill: Tokens and Component APIs

The design-system-architecture skill teaches an AI coding agent a three-tier design token model, typed component APIs and a documentation template for building component libraries.

Install
git clone https://github.com/NickCrew/Claude-Cortex.git
View on GitHub

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

What is the design-system-architecture skill?

The design-system-architecture skill is a guide an AI coding agent follows when creating or evolving a component library. It covers a three-tier token model of primitive, semantic and component tokens, React and TypeScript component API patterns, atomic design categories, documentation structure and versioning rules.

The design-system-architecture skill opens with a diagram of three stacked boxes: component tokens on top, semantic tokens in the middle and primitive tokens at the base. That layered model is the spine of the whole guide.

It lives in the skills folder of the Cortex repository and has triggers such as design system, component library, design tokens, theme architecture and ui kit.

The token model it teaches

  • Primitive tokens hold raw values, for example a blue at the 500 step, a spacing step of 1rem and a medium radius of 8px.
  • Semantic tokens give purpose, such as an action color and a primary text color, and point back to primitives with CSS variables.
  • Component tokens bind semantics to parts, for instance a button background, button horizontal padding and a card radius.
  • Light and dark themes are objects that remap semantic names, so components never hardcode a color.

What changes in your agent's output

  • Components expose typed props with defaults, such as variant, size, loading and disabled states, plus an optional leading icon.
  • Complex widgets use the compound pattern, so Tabs offers List, Tab and Panel parts instead of one giant prop list.
  • Layout primitives can render as other elements through a polymorphic as prop.
  • Each component gets docs with usage, a props table, examples and an accessibility section.

Who the design-system-architecture skill is for

Best for

  • Starting a design system or evolving an existing component library with a clear token structure.
  • Teams that want one agreed component API style, with a good place to compare notes in design-token.
  • Library authors who want release rules in writing: semantic versioning, deprecation warnings before removal and migration guides.

Not for

  • Getting ready-made components. The skill is guidance and ships none. For a copy-in component source, see shadcn.
  • Stacks outside React and TypeScript without adaptation, since the prop and polymorphic examples use both.
  • Choosing a visual style or a color palette. It structures tokens and does not pick brand values.

Use it with UiChemy

A token system is the contract between design and code. If your design lives in Figma, UiChemy Figma to WordPress converts it into an editable WordPress page, and Composer adjusts it afterward. Click Get Started on uichemy.com. For building the library itself in Figma, see figma-generate-library.