Agent skill

Design System Patterns Skill for Tokens and Theming

The design-system-patterns skill teaches an AI coding agent a three tier token hierarchy, CSS custom property theming and component architecture, with four reference files for deeper detail.

Install
gh skill install wshobson/agents design-system-patterns
View on GitHub

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

What is the design-system-patterns skill?

The design-system-patterns skill is a SKILL.md inside the ui-design plugin of the wshobson/agents repository. It guides an AI coding agent through primitive, semantic and component tokens, theme switching with CSS custom properties, component API patterns and a Figma to code token pipeline.

Primitive, semantic and component tokens form the spine of this skill. It lives at plugins/ui-design/skills/design-system-patterns in the wshobson/agents repository, and its description promises scalable design systems with tokens, theming and component architecture.

The SKILL.md is deliberately short. It holds the navigation tier and a quick start, then points to references/details.md for worked examples when the main file is not enough.

Four capability areas

  • Design tokens: primitive, semantic and component tiers, naming conventions and multi-platform output for CSS, iOS and Android.
  • Theming: CSS custom properties, React theme context, dynamic switching, prefers-color-scheme detection, persistent storage, reduced motion and high contrast.
  • Component architecture: compound components, polymorphic as prop, variants and sizes, slots, headless patterns and responsive style props.
  • Token pipeline: Figma to code sync, Style Dictionary configuration, transformation and CI/CD updates.

What goes wrong without it

The skill names its own failure modes: token sprawl, mixed naming conventions, tokens that ignore dark mode, hardcoded values, circular references and platforms missing tokens. Its seven practices answer them, such as versioning token changes with semver.

Who the design-system-patterns skill is for

Best for

  • Starting a token set where semantic names such as text-primary sit between raw values and components.
  • Adding light and dark themes to a codebase that hardcodes hex values.
  • Related: tailwind-design-system and design-md.

Not for

  • Extracting tokens from a live site. Related: extract-design-system.
  • Choosing type, colour or spacing values. It structures the system and does not pick the numbers.
  • Accessibility audits of the finished UI, which need a separate review skill.

Use it with UiChemy

A token system makes the Figma file consistent before conversion. UiChemy's Figma to WordPress turns that file into Elementor or Gutenberg pages, and Composer adjusts them visually afterwards. AI generated sites route through Figma or Composer first. Click Get Started on uichemy.com.