All skills
simota avatar

/muse

@e307415
by shingo imotasimota/agent-skills85 stars
15

Defining and managing design tokens, applying token systems to existing codebases, building design system foundations. Use for spacing, color, typography, dark mode, cross-platform output.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/muse

This session only. Nothing lands on disk.

referencedesign-system-construction.md

≈802 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Design System Construction

Purpose: Use this reference when building or restructuring the token foundation, file layout, framework integration, or governance baseline for a design system.

Contents

  • Design system layers
  • File structure
  • Construction phases
  • Health metrics
  • Framework integration
  • Visualization hooks

Design System Layers

Layer Purpose Typical artifacts
Token Foundation Primitive and semantic token definitions colors, spacing, typography, shadow, radius
Base Styles Global resets and base mappings theme roots, typography defaults, surface defaults
Component Tokenization Component-level tokens and usage patterns buttons, cards, forms, overlays
Documentation And Governance Usage guidance, stories, ownership, drift control Storybook, docs, lifecycle records

File Structure

design-system/
  tokens/
    primitives/
    semantic/
    components/
  styles/
    base.css
    themes.css
  docs/
    guidelines.md
    lifecycle.md
  stories/

Rules:

  • Tokens are the source of truth.
  • Docs and stories must point back to the same token vocabulary.
  • Component code should consume semantic or component tokens, not raw values.

Construction Phases

Phase 1: Token Foundation

  • Define primitives and semantics.
  • Set typography and spacing scales.
  • Decide light/dark theme strategy.

Phase 2: Base Styles

  • Wire tokens into root styles and theme wrappers.
  • Standardize surface, text, and focus defaults.

Phase 3: Component Tokenization

  • Replace hardcoded values.
  • Introduce component-level tokens only when reuse or clarity justifies them.

Phase 4: Documentation And Governance

  • Publish stories and token usage docs.
  • Track lifecycle states and ownership.
  • Establish drift review cadence.

Health Metrics

Metric Target Meaning
Token Coverage 95%+ Hardcoded values are exceptional, not normal
Dark Mode Support 100% No light-only components remain
Component Token Usage 100% Components use tokens instead of magic numbers
Documentation Currency < 1 sprint stale Docs keep up with actual implementation

Framework Integration

CSS Custom Properties

  • Default recommendation for broad compatibility.
  • Use them as the cross-framework token source.

Tailwind CSS v3

  • Map tokens into theme.extend.
  • Avoid duplicating token values in config and CSS if one source can generate both.

Tailwind CSS v4

  • Use @theme and generated CSS variables.
  • Keep semantic aliases visible in CSS-first config.

Panda CSS

  • Use semanticTokens for mode-aware values.
  • Avoid mixing Panda tokens with raw CSS values in components.

CSS Modules / Scoped Styles

  • Import and consume global tokens; do not recreate them locally.

Vue / Svelte

  • Keep tokens global and semantic.
  • Scope only component-specific aliases when required.

Visualization Hooks

Use Canvas when any of the following would unblock design system work:

  • palette hierarchy diagrams
  • typography scale diagrams
  • spacing system diagrams
  • dependency views for token adoption

Source: SKILL.md on GitHub

No alerts13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The Muse skill is a comprehensive toolkit for managing design systems and design tokens. It follows modern industry standards such as W3C DTCG v2025.10, emphasizes accessibility compliance (WCAG 2.2), and provides structured workflows for theme management, dark mode implementation, and platform synchronization. No malicious patterns or security risks were identified.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer6mo

    2/10 files flagged

  • ZeroLeaks5mo

    1 finding · Score: 86/100

Signed by skilld at e307415. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/muse