agentleFS
UwayxtUwayxt/agent-skills/.agents/skills/design-system-builder/SKILL.md

design-system-builder

Skill4 starsChanged 2 months agoMITView on GitHub

Construct a cohesive UI component library. Use when assembling reusable elements, setting up a UI kit, or auditing component consistency.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Downstream: After defining each component, run it through component-style-guide to document all states.

    line 11
  2. Distinctive:

    Ensure the foundation exists.

    line 14
  3. Distinctive:

    Every component must account for its lifecycle: Default, Hover, Active, Disabled, Focus, Error.

    line 20

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Design System Builder

A design system is a strict contract of composition, not a loose collection of parts.

Pipeline Integration

  • Upstream: This skill requires design-tokens and typography-system to be defined first — components are built ON tokens, not alongside them.
  • Downstream: After defining each component, run it through component-style-guide to document all states. The design system is incomplete until every component has a full state matrix. Every interactive component must specify its motion behavior via micro-interaction-motion-design. Reference motion tokens, not raw CSS transitions.

1. Token Audit

Ensure the foundation exists. Do not build components with hardcoded hex codes, raw pixel values, or arbitrary spacing. Use semantic tokens exclusively.

2. Base Components First

Build the primitives: Buttons, Inputs, Cards. Compose larger organisms only from these stable atoms.

3. Define States and Behaviors

Every component must account for its lifecycle: Default, Hover, Active, Disabled, Focus, Error. Specify motion token behaviors for transitions.

4. Audit Existing Libraries

  1. Inventory all instances of a component type in the product.
  2. Identify the core variants actually needed.
  3. Consolidate to the minimum set of flexible variants.
  4. Replace raw values with tokens.

Anti-Patterns

  • Premature Abstraction: Building complex organisms before the atoms are stable.
  • Token Avoidance: Hardcoding values "just for this one component."
  • State Neglect: Forgetting to design focus and error states.

Completion Criteria

  • design-tokens and typography-system are defined and utilized.
  • Every base component exists and relies purely on tokens.
  • The component-style-guide contains a full state matrix.
  • Interactive elements specify motion token behaviors.

Output Format

A component registry — code-based or design-tool-agnostic — accompanied by a Markdown inventory mapping every component to its token dependencies, state matrix, and motion behaviors. If a design tool is used (Figma, Penpot, Sketch, or any other), the component registry is the source of truth — the design tool is a communication layer, not the canonical source.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.