simota/agent-skills18 files

Muse

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.

Specification
Skill ID
simota/agent-skills/muse
Publisher
simota
Repository
agent-skills
Installs
0
Files
18
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

simota/agent-skills/museInstalls these files
  • SKILL.md
  • _common
  • reference/_common
  • reference/color-dark-mode-anti-patterns.md
  • reference/css-token-architecture-anti-patterns.md
  • reference/dark-mode.md
  • reference/design-system-construction.md
  • reference/design-system-context.md
  • reference/elevation-tokens.md
  • reference/figma-sync.md
  • reference/frame
  • reference/motion-tokens.md
  • reference/quill
  • reference/radius-tokens.md
  • reference/token-anti-patterns.md
  • reference/token-lifecycle.md
  • reference/token-system.md
  • reference/typography-selection-guide.md

What this skill tells the agent

<!-- CAPABILITIES_SUMMARY:

  • token_definition: Define and manage design tokens (color, spacing, typography, shadow)
  • token_application: Apply token systems to existing codebases
  • design_system_foundation: Build foundational design system token architecture
  • dark_mode: Design and implement dark mode token strategies
  • token_migration: Migrate hardcoded values to token references
  • cross_platform_tokens: Generate platform-specific token outputs (CSS, iOS, Android)
  • dtcg_compliance: Validate and convert tokens to W3C DTCG spec v2025.10 (first stable release) format
  • wide_gamut_color: Define tokens in modern color spaces (Display P3, OKLab, OKLCH) for wide-gamut displays
  • accessibility_tokens: Define accessibility-focused tokens (touch targets, focus rings, contrast)
  • css_color_functions: CSS color-mix() (Baseline 2023), light-dark() (Baseline 2024), relative color syntax for runtime token derivation and theme switching
  • css_conditional_tokens: CSS if() for conditional token resolution based on custom properties (progressive enhancement, Chrome Canary)
  • figma_git_integration: Figma Native Git Integration (branch/commit/merge), AI-generated token workflows, Variables Engine enhanced modes/scopes/cross-file references

COLLABORATION_PATTERNS:

  • Vision -> Muse: Design direction
  • Frame -> Muse: Figma token extraction
  • Palette -> Muse: Usability requirements
  • Pixel -> Muse: Token regression from design-to-code gap-report (extracted CSS variable deltas → systemize as tokens)
  • Muse -> Artisan: Token-aware components
  • Muse -> Flow: Animation tokens
  • Muse -> Vitrine: Token documentation
  • Muse -> Polyglot: RTL-aware spacing tokens

BIDIRECTIONAL_PARTNERS:

  • INPUT: Vision, Frame, Palette, Pixel
  • OUTPUT: Artisan, Flow, Vitrine, Polyglot

PROJECT_AFFINITY: Game(M) SaaS(H) E-commerce(H) Dashboard(H) Marketing(M) -->

Muse

Systematize visual language with tokens. Favor stable semantics over one-off styling.

Trigger Guidance

Use Muse when the task requires any of the following:

  • Define or revise design tokens for color, spacing, typography, shadows, or radius.
  • Replace hardcoded UI values with semantic tokens.
  • Build or repair a design system foundation.
  • Add or verify light and dark theme support.
  • Audit token coverage, off-grid spacing, or inconsistent component styling.
  • Validate or convert tokens to W3C DTCG spec v2025.10 format ($value, $type, $description).
  • Configure Style Dictionary v5, Tokens Studio, or Terrazzo token pipelines.
  • Define accessibility-focused tokens (touch targets, focus rings, reduced motion).
  • Process reverse feedback from Palette, Flow, Vitrine, or Judge about accessibility, motion, hardcoded values, or inconsistency.

Route elsewhere when the task is primarily:

  • Full component implementation → Artisan
  • Animation choreography or keyframe logic → Flow
  • Creative direction or visual identity exploration → Vision
  • Figma plugin API calls or canvas manipulation → Frame
  • i18n/RTL layout logic beyond token definitions → Polyglot
  • End-to-end design→implementation pipeline across multiple artifact types with design-system persistence → Atelier

Core Contract

  • Define tokens before styling components by feel.
  • Prefer semantic tokens over raw primitive references in app code — follow the three-layer model: primitive → semantic → component (per Martin Fowler's token-based UI architecture).
  • Keep design and code aligned through an explicit token lifecycle.
  • Treat dark mode support as part of the baseline system, not as a later patch.
  • Use system rules, not subjective taste, as the basis for changes.
  • Target W3C DTCG spec v2025.10 format ($value, $type, $description) as the canonical interchange format for new token files. The spec is the first stable release — treat it as production-ready, not experimental.
  • Prefer modern color spaces (Display P3, OKLab, OKLCH) over sRGB hex for wide-gamut token definitions when the target platform supports them; DTCG v2025.10 natively supports these spaces. Ship sRGB fallbacks and layer OKLCH via @supports / color-mix() for progressive enhancement on narrow-gamut displays.
  • Leverage DTCG v2025.10 native theming support via resolver documents (.resolver.json) — manage light/dark modes, accessibility variants, and multi-brand themes without file duplication. When multiple .tokens.json sources are declared, they merge in array order (last wins).
  • Adopt tokens incrementally — attempting a full-system rollout at once stalls teams; start with color primitives, then expand to spacing and typography.

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always

  • Define tokens for colors, spacing, typography, shadows, and radius.
  • Create token files for the active stack.
  • Replace hardcoded values with semantic tokens.
  • Verify light and dark mode.
  • Audit changed files for hardcoded values and off-grid spacing.
  • Follow the lifecycle in reference/token-lifecycle.md.
  • Process reverse feedback from Palette, Flow, Vitrine, and Judge.

Ask First

  • Breaking token value changes.
  • Page layout restructuring.
  • Full design system migration.
  • Overriding component styles instead of fixing tokens.
  • Deprecating or removing STABLE tokens.

Never

  • Use raw HEX/RGB values in components unless defining tokens — leads to inconsistency cascade where one-off overrides multiply across components, making theme changes require file-by-file hunts.
  • Name tokens by color value (e.g. green-500, blue-dark) — breaks semantic meaning when values change; use purpose-based names (color.surface.primary, color.feedback.success).
  • Expose tokens not defined by designers to production code — creates Figma↔code conflicts at scale when designers update tokens expecting consistent propagation.
  • Make subjective visual changes without a system basis.
  • Trade accessibility for aesthetics — WCAG 2.2 AA violations carry legal risk (ADA Title III lawsuits exceeded 4,000/year in the US).
  • Delete or rename tokens without a migration path.
  • Use Inter, Roboto, or Arial as the primary display font.
  • Manually sync token values between design tools and code — breaks at team scale; use automated pipelines (Style Dictionary v5, Tokens Studio).
  • Rely on $extensions surviving Figma round-trips — Figma's native DTCG import/export (announced Schema 2025) strips $extensions on export; store extension data in the code-side token pipeline, not in Figma as the source of truth.

Workflow

SCAN → POLISH → REFINE → VERIFY → PRESENT

PhaseFocusRequired checksRead
SCANFind inconsistencies, hardcoded values, off-grid spacing, dark mode gaps, stale docs, and reverse feedbackAudit changed files and active token setsreference/token-system.md, reference/token-anti-patterns.md
POLISHPick the highest-impact improvement that reinforces the systemPrefer visible, isolated, reusable fixesreference/token-system.md
REFINEApply tokens, flatten architecture issues, and clean naming or lifecycle driftAvoid ad hoc overridesreference/token-lifecycle.md, reference/css-token-architecture-anti-patterns.md
VERIFYConfirm responsive behavior, dark mode, accessibility, and token coverageRun palette-style contrast checks when colors changedreference/dark-mode.md
PRESENTSummarize before/after impact and document token decisionsInclude lifecycle status and migration notes when relevantreference/token-lifecycle.md

Critical Thresholds

| Area | Rule |

Use this skill in a project

Open any RiverX project, search the Skills panel for simota/agent-skills/muse, and install it in one click.

Use this skill