agentleFS
ItamarZand88ItamarZand88/design-skills/.claude/skills/create-design-md/SKILL.md

create-design-md

Skill8 starsChanged 7 months agoMITView on GitHub

Create a new DESIGN.md file for any website, app, or custom design system. Use when the user wants to document a design system in DESIGN.md format, extract design tokens from a URL or existing CSS, create a custom design system from scratch, author a DESIGN.md for their own project, or contribute a new design to the awesome-design-md collection. Also trigger when user mentions "design system documentation", wants to formalize their app's visual language, or asks to create or generate a DESIGN.md file.

We split this skill into the rules it gives an agent

15 rules. 0 are common, 11 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every DESIGN.md follows this structure.

    line 16
  2. Distinctive:

    Every color with its hex value, CSS variable name (if known), and functional role.

    line 28
  3. Distinctive:

    Ask the user where the design data comes from:

    line 93
  4. Distinctive:

    Read an existing DESIGN.md to calibrate the expected quality and format.

    line 105
  5. Distinctive:

    Read one of these before writing to match the quality bar.

    line 110
  6. Distinctive:

    Write each section following the format above.

    line 114
  7. Distinctive:

    Use specific values (hex codes, pixel sizes, weights) — never vague descriptions

    line 115
  8. Distinctive:

    Write prose sections (1, 7) with personality — these aren't just data dumps

    line 117
  9. Distinctive:

    Check the draft against this checklist:

    line 122
  10. Very specific:

    Write to DESIGN.md in the location the user specifies (default: project root).

    line 135
  11. Distinctive:

    If the user wants to add this to the awesome-design-md repo:

    line 141
  12. Very specific:

    Create a new directory under design-md/{lowercase-name}/

    line 142
  13. Very specific:

    Place the DESIGN.md file there

    line 143
  14. Distinctive:

    Create a README.md with a brief description

    line 144
  15. Very specific:

    Update design-md/_index.md with the new entry

    line 145

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Create a DESIGN.md File

Author a complete DESIGN.md file — the plain-text design system format that AI agents read to generate consistent UI. This skill guides through creating all 9 required sections with proper structure, ensuring the output matches the quality of the 58 existing files in the collection.

What is DESIGN.md?

DESIGN.md is a concept from Google Stitch — a markdown design system document optimized for LLM comprehension. It captures the complete visual DNA of a website or app: colors, typography, components, spacing, shadows, and design philosophy. Drop it in a project root and any AI coding agent instantly understands how the UI should look.

The 9-section format

Every DESIGN.md follows this structure. All 9 sections are required for a complete file.

Section 1: Visual Theme & Atmosphere

The opening narrative. Describe the design philosophy, visual mood, density, and key characteristics. This is prose, not specs — it tells the reader what the design feels like and why it works.

Include:

  • Overall mood and philosophy (e.g., "cinematic reductionism", "warm editorial minimalism")
  • Typography personality and approach
  • Color story and emotional tone
  • Key visual characteristics as bullet points (8-10 items with specific values)

Section 2: Color Palette & Roles

Every color with its hex value, CSS variable name (if known), and functional role. Group by purpose:

  • Primary: Brand colors, main backgrounds, key text colors
  • Interactive: Link colors, CTA backgrounds, hover states, focus rings
  • Text hierarchy: Heading, body, secondary, muted, disabled
  • Surface & borders: Card backgrounds, dividers, border colors
  • Shadows: Shadow colors with rgba values
  • Status colors: Success, warning, error (if present)

Format: **Color Name** (\#hex`): Description of when and how to use it.`

Section 3: Typography Rules

Font families with fallback stacks, then a complete hierarchy table:

RoleFontSizeWeightLine HeightLetter SpacingNotes
Display Hero......px.........When to use
Section Heading..................
Body..................
Caption..................

Include at least: Display, Heading, Sub-heading, Body, Button, Caption, Micro. Add notes about OpenType features, variable font axes, or font-display strategy if relevant.

Section 4: Component Stylings

Detailed specs for each component with all states:

  • Buttons: Primary, secondary, ghost/outline variants. Each with: background, text color, border, padding, radius, and states (hover, active, disabled, focus)
  • Cards/Containers: Border treatment, shadow, radius, padding, background
  • Inputs/Forms: Border style, focus ring, padding, placeholder color, error state
  • Navigation: Layout, active state, hover state, mobile behavior
  • Distinctive components: Anything unique to this design (e.g., pill badges, gradient borders)

Section 5: Layout Principles

  • Spacing system: base unit and scale (e.g., 4px base with 4/8/12/16/24/32/48/64)
  • Grid: columns, container max-width, gutters
  • Whitespace philosophy (generous vs compact)
  • Border-radius scale

Section 6: Depth & Elevation

  • Shadow definitions for each level (low, medium, high elevation)
  • Surface hierarchy (how surfaces layer)
  • Any special depth effects (glassmorphism, gradients, overlays)

Section 7: Do's and Don'ts

Design guardrails:

  • Do: 5-8 rules to always follow
  • Don't: 5-8 anti-patterns to avoid These are the brand differentiators — the rules that make the design feel intentional.

Section 8: Responsive Behavior

  • Breakpoints with pixel values
  • Touch target sizes for mobile
  • Collapsing strategy (how complex layouts simplify)
  • Font size adjustments per breakpoint

Section 9: Agent Prompt Guide

Quick-reference summary for fast component generation:

  • Quick color reference (5-6 key colors)
  • Ready-to-use component prompts (3-4 examples showing how to instruct an agent)
  • Iteration guidance (common adjustments and refinements)

Workflow

1. Determine the source

Ask the user where the design data comes from:

From a live website: The user provides a URL. Extract design tokens by analyzing the site's CSS, computed styles, and visual patterns. Note: you may need web access to fetch the site.

From existing CSS/code: The user has CSS files, Tailwind config, theme objects, or design token files. Extract and restructure into DESIGN.md format.

From scratch: The user describes the design they want. Generate a complete, internally consistent design system based on their description.

From visual reference: The user describes a mood or references existing brands. Create an original design system inspired by (but not copying) the reference.

2. Load a format reference

Read an existing DESIGN.md to calibrate the expected quality and format. Good references:

  • design-md/stripe/DESIGN.md — comprehensive, well-structured, rich detail
  • design-md/apple/DESIGN.md — excellent typography documentation
  • design-md/claude/DESIGN.md — warm, editorial tone

Read one of these before writing to match the quality bar.

3. Draft all 9 sections

Write each section following the format above. For each section:

  • Use specific values (hex codes, pixel sizes, weights) — never vague descriptions
  • Include CSS variable names where known
  • Write prose sections (1, 7) with personality — these aren't just data dumps
  • The typography table must be complete with all columns filled

4. Validate completeness

Check the draft against this checklist:

  • Section 1 has clear key characteristics bullet points
  • Section 2 has all colors with hex values and functional roles
  • Section 3 has font families with fallbacks AND a complete hierarchy table
  • Section 4 has buttons with states, cards, inputs, and navigation
  • Section 5 has a spacing scale with specific values
  • Section 6 has shadow definitions with exact values
  • Section 7 has at least 5 Do's and 5 Don'ts
  • Section 8 has breakpoints with pixel values
  • Section 9 has quick color reference and example prompts

5. Output the file

Write to DESIGN.md in the location the user specifies (default: project root).

The first line should be: # Design System Inspiration of {Brand Name}

6. Contributing to the collection

If the user wants to add this to the awesome-design-md repo:

  1. Create a new directory under design-md/{lowercase-name}/
  2. Place the DESIGN.md file there
  3. Create a README.md with a brief description
  4. Update design-md/_index.md with the new entry
  5. Open a PR following the CONTRIBUTING.md guidelines

Download now (ZIP)

  • Other versions8 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 8

    1. ibelick/ui-skills★ 10ksame name
    2. julianromli/faiz-skills★ 16same name
    3. ingpoc/SKILLS★ 9same name
    4. shayan-m81/layerwright★ 8same name
    5. hsynozdamar-byte/claude-skills-edited★ 4same name
    6. sanmidable/skills★ 2same name
    7. sjyook/skills★ 2same name
    8. CanKStar0/GUIDELINES★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Used alongsideProjects with it also use improve-ui, fixing-metadata and 10 more.

    Other files people use alongside this one.

    Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
    • Discriminative-shoji607Skill

      improve-ui

      Audit an existing product surface against its own design evidence, identify verified UI problems, and write self-contained implementation plans for another agent. Strictly read-only on product source. Use when asked to review, refine, improve, or clean up an interface without replacing its identity; investigate design-system drift; or prepare a design handoff.

      Also in 3 projects that use this

    • agentset-aiSkill

      fixing-metadata

      Ship correct, complete metadata.

      Also in 4 projects that use this

    • VercelSkill

      baseline-ui

      Validates animation durations, enforces typography scale, checks component accessibility, and prevents layout anti-patterns in Tailwind CSS projects. Use when building UI components, reviewing CSS utilities, styling React views, or enforcing design consistency.

      Also in 4 projects that use this

    • kapishdimaSkill

      fixing-motion-performance

      Fix animation performance issues.

      Also in 3 projects that use this

    • AnasX7Skill

      better-accessibility

      Helps your project comply with accessibility standards and best practices.

      Also in 4 projects that use this

    • AnasX7Skill

      better-layout

      Helps with grouping, alignment, reading order, progressive disclosure and other details that make a good layout.

      Also in 4 projects that use this

    • +5 more from AnasX7
  • In this repository4 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.