Design MD Generator

👤 wavmson 📦 v1.0.0 ⭐ 0.0 ⬇️ 588 下载
🎨 设计多媒体 免费

📖 技能介绍

Design MD Generator

Generate structured DESIGN.md files from any website URL. The output follows the Google Stitch DESIGN.md format with 9 standard sections.

Workflow

Step 1: Capture the site

Use the browser tool to load the target URL and take a screenshot:

browser action=navigate url="<TARGET_URL>"
browser action=screenshot
browser action=snapshot

Step 2: Extract CSS tokens

Run the extraction script to pull all design tokens from the page's computed styles:

# From the skill directory
node {baseDir}/scripts/extract-tokens.js "<TARGET_URL>"

The script outputs a JSON file with:

  • All unique colors (background, text, border, accent)
  • Font families, sizes, weights, line-heights, letter-spacing
  • Border radii, shadows, spacing values
  • Component patterns (buttons, cards, inputs)

Step 3: Generate DESIGN.md

Using the extracted tokens + screenshot for visual context, write a DESIGN.md with these 9 sections:

# Section What to capture
1 Visual Theme & Atmosphere Mood, density, design philosophy. Write like an art director describing the aesthetic.
2 Color Palette & Roles Every color with semantic name + hex + functional role. Group by: Brand, Background, Text, Semantic, Border.
3 Typography Rules Font families with fallbacks. Full hierarchy table: role, font, size, weight, line-height, letter-spacing.
4 Component Stylings Buttons (primary/secondary/ghost), Cards, Inputs, Navigation, Badges — with all states (default, hover, active, disabled).
5 Layout Principles Spacing scale table, grid system, max-width, column count, whitespace philosophy.
6 Depth & Elevation Shadow system table (flat → raised → floating → overlay). Surface hierarchy list.
7 Do's and Don'ts Design guardrails. What makes this design system unique and what breaks it.
8 Responsive Behavior Breakpoints table, touch targets, collapsing strategy for nav/grids/typography.
9 Agent Prompt Guide Quick color reference block + 2-4 ready-to-use prompts for common page types.

Writing Guidelines

  • Be specific: Use exact hex values, px sizes, font weights — not "dark blue" or "large text"
  • Be opinionated: Describe the atmosphere like a design critic, not a spec sheet
  • Name colors semantically: "Lobster Coral" not "Red 1", "Deep Sea" not "Background Dark"
  • Include states: Every interactive component needs default + hover + active + focus states
  • Show hierarchy: List surfaces from darkest to lightest, text from brightest to dimmest
  • Agent-ready prompts: Write Section 9 prompts that another AI agent can copy-paste to build matching UI

Output

Save the generated file as DESIGN.md in the target location specified by the user.

推荐访问7w4.net获取更多AI技能。

Optionally generate:

  • preview.html — A visual catalog page showing color swatches, type scale, and component samples
  • preview-dark.html — Same catalog on dark surface

Reference

See references/format-spec.md for the complete section-by-section format specification with examples.

See references/example-linear.md for a high-quality example (Linear's DESIGN.md).

📁 包含文件 (7 个)

📄 README.md 3.1 KB
📄 README_CN.md 3 KB
📄 SKILL.md 3.7 KB
📄 _meta.json 138 B
📄 references/example-linear.md 21.9 KB
📄 references/format-spec.md 3.9 KB
📄 scripts/extract-tokens.js 7.4 KB