AGENT SKILL

design-token-alignment

Align design artifacts with code tokens and component APIs so spacing, color, type, and states stay consistent through implementation.

License 许可
MIT
所属仓库
45ck/skill-harness
最近更新
2026-06-23
Stars
★ 15
Forks
1

01 前言 Front Matter

name
design-token-alignment
description
Align design artifacts with code tokens and component APIs so spacing, color, type, and states stay consistent through implementation.

03 SKILL.md 正文

Use this skill when a design needs to map cleanly onto an existing component system or token set.

Checklist:

  • identify which design values already map to existing tokens
  • flag values that are near-matches and should be normalized instead of copied literally
  • note any missing tokens, variant gaps, or component API mismatches
  • keep the recommendation biased toward reuse before extension
  • produce a concise token and component mapping table
  • keep token decisions and component-state mappings in a durable source artifact
  • generate a visual review surface when humans need to compare token impact, states, or before/after UI behavior

Good output:

  • existing tokens reused where possible
  • missing tokens called out explicitly
  • API gaps separated from pure styling gaps
  • implementation guidance that preserves the current design system shape
  • source-backed review path when a generated visual comparison is needed

Avoid:

  • creating one-off tokens for every visual exception
  • solving a component API problem with raw styling overrides
  • assuming the design tool naming is already production-ready

04 同仓库更多 Skills