AgentSkillsCN

design-system

仅读取代码库,探索架构并绘制代码结构图。在理解陌生代码、发掘代码模式、构建项目背景时,此方法将助您事半功倍。

SKILL.md
--- frontmatter
name: design-system
description: UI tokens and component styling conventions for Tailwind/JX projects, with emphasis on consistency and reusable patterns.

Design System Skill

Use this skill when creating or changing visual language, tokens, and reusable UI components.

Scope

  • Color and semantic token usage
  • Typography, spacing, radius, shadow scales
  • Component-level visual consistency
  • Motion and interaction feedback
  • Dark/light mode behavior

Loading Order

  1. .agent/skills/design-system/core.md
  2. .agent/skills/design-system/ui-components.md
  3. .agent/skills/design-system/animations.md

Guardrails

  • Use one neutral scale per project
  • Keep spacing and radius tokens consistent across components
  • Prefer semantic colors (success/warn/danger/info) over ad-hoc values
  • Ensure states (hover/focus/disabled/loading) are defined for interactive elements