design-md
できること
このスキルは、トークンと書かれた理由を使って視覚的なアイデンティティを記述する、GoogleのオープンフォーマットであるDESIGN.mdファイルを作成または確認する手助けをします。ツール間でブランドを一貫させたいデザイナーや開発者のためのものです。
使う場面
- ✓AIのコーディングツールが従えるデザインシステムの仕様がほしいとき。
- ✓配色がアクセシビリティのコントラストを満たすか確認したいとき。
- ✓デザイントークンをTailwindや標準のトークン形式に書き出したいとき。
スキルのリンク
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/creative/design-md/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のブランドの色とフォントを含むDESIGN.mdファイルを作成して、コントラストを確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、1つのファイルの中に、YAMLのデザイントークンと、デザイン上の選択を説明する文章を書きます。コマンドラインのリンターを使って、構造とコントラストを確認し、バージョンを比べ、TailwindまたはW3C DTCG JSONに書き出します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
DESIGN.md Skill
DESIGN.md is Google's open spec (Apache-2.0, google-labs-code/design.md) for
describing a visual identity to coding agents. One file combines:
- YAML front matter — machine-readable design tokens (normative values)
- Markdown body — human-readable rationale, organized into canonical sections
Tokens give exact values. Prose tells agents why those values exist and how to
apply them. The CLI (npx @google/design.md) lints structure + WCAG contrast,
diffs versions for regressions, and exports to Tailwind or W3C DTCG JSON.
When to use this skill
- User asks for a DESIGN.md file, design tokens, or a design system spec
- User wants consistent UI/brand across multiple projects or tools
- User pastes an existing DESIGN.md and asks to lint, diff, export, or extend it
- User asks to port a style guide into a format agents can consume
- User wants contrast / WCAG accessibility validation on their color palette
For purely visual inspiration or layout examples, use popular-web-designs
instead. For process and taste when designing a one-off HTML artifact
from scratch (prototype, deck, landing page, component lab), use
claude-design. This skill is for the formal spec file itself.
File anatomy
---
version: alpha
name: Heritage
description: Architectural minimalism meets journalistic gravitas.
colors:
primary: "#1A1C1E"
secondary: "#6C7278"
tertiary: "#B8422E"
neutral: "#F7F5F2"
typography:
h1:
fontFamily: Public Sans
fontSize: 3rem
fontWeight: 700
lineHeight: 1.1
letterSpacing: "-0.02em"
body-md:
fontFamily: Public Sans
fontSize: 1rem
rounded:
sm: 4px
md: 8px
lg: 16px
spacing:
sm: 8px
md: 16px
lg: 24px
components:
button-primary:
backgroundColor: "{colors.tertiary}"
textColor: "#FFFFFF"
rounded: "{rounded.sm}"
padding: 12px
button-primary-hover:
backgroundColor: "{colors.primary}"
---
## Overview
Architectural Minimalism meets Journalistic Gravitas...
## Colors
- **Primary (#1A1C1E):** Deep ink for headlines and core text.
- **Tertiary (#B8422E):** "Boston Clay" — the sole driver for interaction.
## Typography
Public Sans for everything except small all-caps labels...
## Components
`button-primary` is the only high-emphasis action on a page...
Token types
| Type | Format | Example |
|---|---|---|
| Color | any CSS color (hex, rgb(), oklch(), named) |
"#1A1C1E", "oklch(62% 0.18 250)" |
| Dimension | number + unit (px, em, rem) |
48px, -0.02em |
| Token reference | {path.to.token} |
{colors.primary} |
| Typography | object with fontFamily, fontSize, fontWeight, lineHeight, letterSpacing, fontFeature, fontVariation |
see above |
Component property whitelist: backgroundColor, textColor, typography,
rounded, padding, size, height, width. Variants (hover, active,
pressed) are separate component entries with related key names
(button-primary-hover), not nested.
Canonical section order
Sections are optional, but present ones should appear in this order. The
linter flags out-of-order sections (section-order, warning) and duplicate
headings — consumers per the spec reject duplicates, so fix both before
returning the file.
- Overview (alias: Brand & Style)
- Colors
- Typography
- Layout (alias: Layout & Spacing)
- Elevation & Depth (alias: Elevation)
- Shapes
- Components
- Do's and Don'ts
Unknown sections are preserved, not errored. Unknown token names are accepted if the value type is valid. Unknown component properties produce a warning.
Workflow: authoring a new DESIGN.md
- Ask the user (or infer) the brand tone, accent color, and typography direction. If they provided a site, image, or vibe, translate it to the token shape above.
- Write
DESIGN.mdin their project root usingwrite_file. Always includename:andcolors:; other sections optional but encouraged. - Use token references (
{colors.primary}) in thecomponents:section instead of re-typing hex values. Keeps the palette single-source. - Lint it (see below). Fix any broken references or WCAG failures before returning.
- If the user has an existing project, also write Tailwind or DTCG
exports next to the file (
tailwind.theme.json,tokens.json).
Workflow: lint / diff / export
The CLI is @google/design.md (Node). Use npx — no global install needed.
# Validate structure
よくある質問
DESIGN.mdファイルとは何ですか?
YAMLのデザイントークンと、デザイン上の選択を説明する文章を組み合わせた、1つのファイルです。
アクセシビリティを確認しますか?
はい。コマンドラインツールは、配色のWCAGコントラストを確認します。
どの形式に書き出せますか?
スキルは、TailwindとW3C DTCG JSONを挙げています。
詳細
人気
- GitHubのスター
- 260k
- ランキング
- #462
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-merge-conflict-arbiter
260k並行して動く2つのエージェントのブランチ間のgitマージ競合を、中立的な第三者として解決し、リポジトリに1つのマージ結果を作ります。
antigravity-cli
260kAntigravityのコマンドラインツールのインストール、更新、トラブルシューティングをガイドし、そのプラグイン、サインイン、サンドボックスも扱います。
blackbox
260kBlackbox AIのコマンドラインツールに、コーディングのタスクを渡します。このツールは複数のAIモデルを動かし、最も良い結果を選びます。
dynamic-workflow
260k多くの似た作業の大きな束を、保存されたスクリプトとして実行し、検証済みの結果だけをメインの会話に返すようエージェントに教えます。
似ているスキル
brand-discovery
280k構造化されたインタビューを通じて、ブランドのアイデンティティを明確にするのを支援します。ブランドの目的、ターゲット層、個性をまとめた完全なガイドを作成します。
brand-voice
280k実際のブランドの文章に基づいて、ライティングプロフィールを作成します。コンテンツやコミュニケーションで一貫性と信頼性のある文体を保てるようにします。
brand-guidelines
181kエージェントに、Anthropicのブランドカラーとビジュアルスタイルを資料に適用させます。プロジェクト全体で企業のビジュアルアイデンティティを保つのに役立ちます。