design-spec
하는 일
이 스킬은 프로젝트의 색상, 글자체, 간격, 컴포넌트를 한 문서에 정리하는 DESIGN.md 파일을 쓰는 방법을 설명합니다. 일관된 디자인을 원하는 디자이너와 개발자를 위한 스킬입니다.
사용하는 경우
- ✓새 웹사이트나 앱을 시작하며 화면을 만들기 전에 디자인을 정하고 싶을 때.
- ✓프로젝트에 색상, 글꼴, 간격의 공통 디자인 값이 필요한 경우.
- ✓AI에게 명확한 시각 지침을 주고 싶을 때.
스킬 링크
https://github.com/vudovn/ag-kit/blob/main/.agents/skills/design-spec/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“카페 웹사이트를 위해 페이지를 만들기 전에 색상, 글꼴, 간격 규칙이 담긴 DESIGN.md를 작성해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
파일 맨 위에는 기계가 읽을 수 있는 디자인 값 블록이 있고, 그 아래에는 선택 이유를 설명하는 글이 있습니다. AI는 인터페이스를 만들 때 이 파일을 기준으로 삼습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
DESIGN.md Specification
A DESIGN.md is the single source of truth for a project's visual language. Create it BEFORE building UI. Two layers: machine-readable design tokens (YAML front matter) + human-readable rationale (markdown body). Tokens are normative; prose gives context. Prose may use descriptive names ("Midnight Forest Green") that map to systematic token names (
primary).Format adapted from the DESIGN.md spec (Google Labs, Apache-2.0). A linter/exporter exists:
npx @google/design.md.📚 Reference library: collection.md — 70+ real-world DESIGN.md files (Airbnb, Stripe, Linear, Vercel, Apple…) to study or adapt as a starting point.
When to produce a DESIGN.md
This is a hard gate for UI work (see .agents/rules/design-rules.md): before writing components, pages, or styles, a DESIGN.md must exist at the project root. If absent, create it first from the brief; if present, read it and conform.
The token block converts cleanly to/from tokens.json, Figma variables, and Tailwind theme config — so it is the bridge between design intent and code.
1. File structure
---
<YAML token front matter>
---
# Project Name (optional title)
## Overview
## Colors
## Typography
## Layout
## Elevation & Depth
## Shapes
## Components
## Do's and Don'ts
Front matter MUST begin and end with a line containing exactly ---. Sections use ## headings, appear in the order above, and may be omitted if irrelevant. Domain-specific sections may be added.
2. Token schema (YAML front matter)
version: alpha # optional
name: Daylight Prestige
description: ... # optional
colors:
<token-name>: "#RRGGBB"
typography:
<token-name>:
fontFamily: Public Sans
fontSize: 48px
fontWeight: 600
lineHeight: 1.1
letterSpacing: -0.02em
rounded:
<scale>: 8px
spacing:
<scale>: 16px # Dimension or unitless number
components:
<component-name>:
backgroundColor: "{colors.primary}"
rounded: "{rounded.md}"
padding: 12px
<scale> is a named level: xs sm md lg xl full (any descriptive key is valid).
3. Type system
| Type | Format | Example |
|---|---|---|
| Color | # + hex (sRGB) |
"#1A1C1E" |
| Dimension | number + unit (px/em/rem) |
48px, -0.02em |
| Token Reference | {path.to.token} |
{colors.primary} |
| Typography | composite object | see §4 |
Typography properties: fontFamily (string), fontSize (Dimension), fontWeight (number — bare or quoted are equivalent in YAML), lineHeight (Dimension or unitless multiplier — unitless recommended), letterSpacing (Dimension), fontFeature (string), fontVariation (string).
Token references: wrapped in {} pointing to another value in the tree. Most groups must reference a primitive ({colors.primary-60}), not a group. Inside components, references to composite values are allowed ({typography.label-md}).
Component property tokens: backgroundColor, textColor (Color); typography (Typography); rounded, padding, size, height, width (Dimension).
Variants: define UI states as separate entries with a related key — button-primary, button-primary-hover.
4. Sections (canonical order)
| # | Section | Aliases | Purpose |
|---|---|---|---|
| 1 | Overview | Brand & Style | Brand personality, audience, emotional tone. Fallback context when a token isn't defined. |
| 2 | Colors | Palettes; at least primary. Common: primary/secondary/tertiary/neutral. |
|
| 3 | Typography | 9–15 levels, each a semantic role (headline/body/label) × size. | |
| 4 | Layout | Layout & Spacing | Grid model, spacing scale, containment. |
| 5 | Elevation & Depth | Elevation | Shadows, OR for flat designs the alternative (borders, tonal layers, contrast). |
| 6 | Shapes | Corner radii, edge treatment, shape language. | |
| 7 | Components | Per-atom guidance: Buttons, Inputs, Cards, Chips, Lists, etc. | |
| 8 | Do's and Don'ts | Guardrails during generation. |
5. Recommended token names (guidance, not required)
- Colors:
primary secondary tertiary neutral surface on-surface error - Typography:
headline-display headline-lg headline-md body-lg body-md body-sm label-lg label-md label-sm - Rounded:
none sm md lg xl full
6. Consumer behavior for unknown content
The
자주 묻는 질문
DESIGN.md 파일에는 무엇이 들어가나요?
색상, 글자체, 간격, 모서리 둥글기 같은 디자인 토큰과 그 이유를 적은 설명이 들어갑니다.
예시에서 시작할 수 있나요?
네. 실제 DESIGN.md 파일들이 모인 자료를 참고하거나 고쳐 쓸 수 있습니다.
사용자 인터페이스를 만들기 전에 꼭 필요한가요?
이 스킬은 이를 관문으로 봅니다. 컴포넌트나 페이지를 쓰기 전에 DESIGN.md가 있어야 합니다.
상세 정보
작성자의 원본 설명
How to author a DESIGN.md file — the machine-readable design-token + human-rationale format that must exist before any UI is built. YAML front-matter token schema (colors, typography, spacing, rounded, components), type system, token references, and canonical section order.
repo: vudovn/ag-kit
인기도
- GitHub 스타
- 8.2k
- 순위
- #12531
- 라이선스
- MIT
- 업데이트
- 2026. 10. 18.
댓글
- …
이 저장소의 다른 스킬
batch-operations
8.2k에이전트가 함수 이름 바꾸기나 오래된 import 교체처럼 같은 변경을 여러 파일에 한꺼번에 적용하도록 돕습니다.
brainstorming
8.2k에이전트가 새로운 것이나 복잡한 것을 만들기 전에 명확한 질문을 하도록 가르쳐 목표를 먼저 이해하게 합니다.
code-review-checklist
8.2k에이전트에게 정확성, 보안, 성능, 테스트, 문서를 검토하는 체크리스트를 주고, AI 관련 위험도 포함합니다.
code-review-graph
8.2k에이전트가 구조 지도를 이용해 큰 프로젝트의 코드를 검토하도록 돕고, 변경과 관련된 파일만 읽게 합니다.
비슷한 스킬
canvas
394k에이전트가 연결된 Mac 패널에 호스팅된 시각적 위젯을 띄우고, 패널을 숨기거나 다른 페이지로 옮기도록 돕습니다.
control-ui
394k에이전트가 세션, 대시보드, 연결된 Gateway를 포함해 OpenClaw Control UI를 정리하고 문제를 해결하도록 돕습니다.
diagram-maker
394k에이전트가 프로세스, 시스템 구조, 화이트보드 스케치를 위해 SVG, HTML, 편집 가능한 Excalidraw 파일로 명확한 다이어그램을 만들도록 돕습니다.