Agent Skillsjjongguet/oh-my-product › design-system

design-system

GitHub

用于提取、创建或同步设计系统令牌,支持从URL、代码或图片获取色彩、排版等数据,并更新DESIGN.md及生成多格式配置文件。

skills/design-system/SKILL.md jjongguet/oh-my-product

Trigger Scenarios

用户需要提取设计令牌 需要同步设计系统配置

Install

npx skills add jjongguet/oh-my-product --skill design-system -g -y
More Options

Use without installing

npx skills use jjongguet/oh-my-product@design-system

指定 Agent (Claude Code)

npx skills add jjongguet/oh-my-product --skill design-system -a claude-code -g -y

安装 repo 全部 skill

npx skills add jjongguet/oh-my-product --all -g -y

预览 repo 内 skill

npx skills add jjongguet/oh-my-product --list

SKILL.md

Frontmatter
{
    "name": "design-system",
    "aliases": [
        "\/design-system",
        "extract tokens",
        "sync design",
        "design tokens",
        "color palette"
    ],
    "description": "Activate when the user wants to extract, sync, or manage design system tokens. Pulls color palettes, typography scales, spacing tokens from URLs or existing code and updates DESIGN.md.",
    "primaryRole": "designer"
}

Design System Skill (oh-my-product)

Use this skill when the user wants to extract, create, or synchronize design system tokens.

Capabilities

  1. Token Extraction — Extract design tokens from:

    • Live URLs (color palette, typography, spacing from computed styles)
    • Existing CSS/SCSS/Tailwind config files
    • Figma exports or design specs
    • Screenshot images (via multimodal analysis)
  2. DESIGN.md Sync — Update DESIGN.md sections:

    • Color Palette & Roles (Section 2)
    • Typography Rules (Section 3)
    • Layout Principles (Section 5)
    • Depth & Elevation (Section 6)
  3. Token Format Generation — Output tokens as:

    • CSS custom properties (--color-primary: #hex)
    • Tailwind config extensions
    • SCSS variables
    • JSON token files (Style Dictionary compatible)

Workflow

  1. Source — Identify where tokens come from (URL, file, image, manual spec)
  2. Extract — Parse and normalize token values
  3. Map — Assign semantic roles (primary, secondary, accent, surface, etc.)
  4. Write — Update DESIGN.md and/or generate token config files
  5. Verify — Check contrast ratios, validate completeness

Token Categories

Category Required Tokens
Colors primary, secondary, accent, background, surface, text, border, error, success, warning
Typography heading (h1-h6), body, caption, overline font specs
Spacing scale from 4px base (4, 8, 12, 16, 24, 32, 48, 64, 96)
Elevation shadow-sm, shadow-md, shadow-lg, shadow-xl
Radius sm (4px), md (8px), lg (16px), full (9999px)

Rules

  • Always output tokens with semantic names, never raw values only
  • Validate color contrast ratios (WCAG AA: 4.5:1 for text, 3:1 for large text)
  • Preserve existing DESIGN.md sections when updating — only modify relevant sections
  • Generate both human-readable (DESIGN.md) and machine-readable (CSS/JSON) outputs

Version History

  • 4f49e99 Current 2026-07-25 06:34

Same Skill Collection

skills/ask/SKILL.md
skills/autopilot/SKILL.md
skills/cancel/SKILL.md
skills/configure-notifications/SKILL.md
skills/context-optimize/SKILL.md
skills/cost/SKILL.md
skills/debug/SKILL.md
skills/deep-interview/SKILL.md
skills/doctor/SKILL.md
skills/execute/SKILL.md
skills/handoff/SKILL.md
skills/help/SKILL.md
skills/hud-setup/SKILL.md
skills/learn/SKILL.md
skills/plan/SKILL.md
skills/prd/SKILL.md
skills/ralplan/SKILL.md
skills/review/SKILL.md
skills/sessions/SKILL.md
skills/status/SKILL.md
skills/team/SKILL.md
skills/ux-critique/SKILL.md
skills/verify/SKILL.md
skills/wait/SKILL.md
skills/web-design/SKILL.md
src/skills/cancel/SKILL.md
src/skills/configure-notifications/SKILL.md
src/skills/debug/SKILL.md
src/skills/deep-interview/SKILL.md
src/skills/execute/SKILL.md
src/skills/handoff/SKILL.md
src/skills/help/SKILL.md
src/skills/review/SKILL.md
src/skills/verify/SKILL.md
src/skills/status/SKILL.md

Metadata

Files
0
Version
4f49e99
Hash
af9055d9
Indexed
2026-07-25 06:34

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 06:19
浙ICP备14020137号-1 $mapa de visitantes$