agentsclimarketplace

Design system architecture

Skill jacob-balslev/skill-graph/marketplace/skills/design-system-architecture

Skills that know your codebase. Repo-grounded, contract-validated, agent-routable.

Install
npx -y skills add jacob-balslev/skill-graph --skill design-system-architecture

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when designing or auditing a design system's architecture: token taxonomy, semantic tokens, component APIs, theming, accessibility contracts, documentation, governance, and migration strategy. Do NOT use for information hierarchy and navigation (use `information-architecture`), page-specific layout (use `layout-composition`), visual craft direction (use `visual-design-foundations`), sentence-level UI copy (use `microcopy`), or accessibility-only audits (use `a11y`). Do NOT use for organize pages, nav, sitemap, and wayfinding. Do NOT use for rewrite the empty-state text and tooltip labels. Do NOT use for add aria-labels and keyboard behavior to this component. Do NOT use for draft an architecture note explaining why we chose Postgres over DynamoDB.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

9.2 KB, as published. Nobody here has run it

Design System Architecture

Concept of the skill

A design system architecture is the discipline of turning recurring UI decisions into a governed, layered vocabulary so that building a screen becomes composition from durable parts rather than a fresh round of local choices. It has three layers and a rule layer. Raw tokens hold the literal brand values — a palette, a spacing ramp, a type scale. Semantic tokens name product meaning (surface, danger, primary-action, text-muted) and point at raw tokens, so the meaning of a token is stable while the value behind it can change per theme. Component contracts define each reusable piece — its purpose, props and slots, states, accessibility behavior, and composition rules — and consume only semantic tokens, never raw values. Over all three sits governance: forbidden local overrides, deprecation and migration paths, documentation that shows expected use and anti-use, and drift detection between code and design intent. The architecture's job is to encode decisions once and make them reusable and enforceable, so that color, spacing, state, theming, and accessibility are answered by the system instead of re-decided on every screen — and a theme change or token rename propagates through the semantic layer without rewriting components.

Coverage

Design and audit reusable UI systems. Covers token taxonomy, semantic vs raw tokens, component APIs, variants, slots, theming, accessibility contracts, responsive behavior, documentation, governance, migration, and drift detection between code and design intent.

Philosophy of the skill

A design system is a product architecture layer, not a style pile. Tokens and components should encode durable decisions so product work becomes faster and more consistent. If every screen still makes local choices for color, spacing, state, and behavior, the design system is only decorative.

Optimize for clear constraints. A system with too many escape hatches is not flexible; it is ungoverned.

Method

  1. Inventory tokens, components, variants, and usage hotspots.
  2. Separate raw tokens from semantic tokens.
  3. Define component contracts: purpose, props/slots, states, accessibility, and composition rules.
  4. Establish theming and density rules before multiplying variants.
  5. Mark forbidden local overrides and migration paths.
  6. Add docs examples that show expected use and anti-use.
  7. Verify real screens can be built without one-off styling.

Verification

  • Semantic tokens cover product meaning without leaking palette names
  • Components have clear ownership and API boundaries
  • Variants map to real use cases, not visual guesses
  • Accessibility behavior is part of the component contract
  • Theming does not require component-level rewrites
  • Deprecated tokens or components have migration paths
  • Real product screens can use the system without local escape hatches

Do NOT Use When

Use insteadWhen
information-architectureYou need page hierarchy, navigation, sitemap, or wayfinding.
microcopyYou need UI wording, labels, empty states, or error copy.
a11yYou need focused accessibility compliance verification.
layout-compositionYou need page-specific responsive structure, section order, or breakpoints.
visual-design-foundationsYou need color, typography, spacing, density, or visual craft direction.
interaction-patternsYou need to choose a control or interaction pattern before systemizing it.
refactorYou are only restructuring existing code without changing design-system contracts.

Skill Graph context

<!-- skill-graph-context:start (generated — do not edit by hand) -->

Classification

  • Subject: frontend-engineering
  • Public: true
  • Domain: design/system
  • Scope: Designing and auditing a design system's architecture — token taxonomy, semantic tokens, component APIs, theming, accessibility contracts, documentation, governance, and migration strategy. Portable across any design system; principle-grounded, not repo-bound. Excludes information hierarchy and navigation (information-architecture), page-specific layout (layout-composition), visual craft direction (visual-design-foundations), sentence-level UI copy (microcopy), and accessibility-only audits (a11y).

When to use

  • define semantic tokens so charts, status colors, and surfaces do not hardcode raw colors
  • audit this component library for API consistency and token drift
  • design the theming architecture before adding dark mode
  • how should we migrate old CSS variables to canonical design-system tokens?

Not for

  • organize pages, nav, sitemap, and wayfinding
  • rewrite the empty-state text and tooltip labels
  • add aria-labels and keyboard behavior to this component
  • draft an architecture note explaining why we chose Postgres over DynamoDB

Related skills

  • Verify with: a11y, code-review, component-architecture
  • Related: component-architecture, layout-composition, visual-design-foundations, interaction-patterns, microcopy, refactor, a11y, information-architecture, semantics

Concept

  • Mental model: |
  • Purpose: |
  • Boundary: |
  • Analogy: A design system architecture is to product UI what a building code plus a kit of standardized parts is to construction — it does not draw any single floor plan (the page layout) or pick the paint colors (the visual values); it defines the load-bearing vocabulary (semantic tokens), the certified components and how they connect (component contracts), and the rules every builder must follow (governance), so any team can assemble a sound, consistent building without re-engineering the joists each time.
  • Common misconception: |

Keywords

  • design tokens, semantic tokens, component API, theming, component library, token taxonomy, design system migration, design system audit, component library audit, token drift
<!-- skill-graph-context:end -->

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.