agentleFS
CanKStar0CanKStar0/GUIDELINES/skills/create-design-md/SKILL.md

create-design-md

Skill0 starsChanged 59 days agoMITView on GitHub

MANDATORY - Must execute view_file on this skill when bootstrapping a design system, generating/updating DESIGN.md, or auditing project UI against design contracts. Establishes 60-30-10 color palettes, typography scales, elevation tiers, strict ban on badges/eyebrows, plain human copy contracts, and design handoff plans.

6 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use improve-ui, fixing-metadata and 7 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.
  • QredenceSkill

    improve-ui

    Audit one selected Figma Design surface or Figma Make prototype against visible design evidence, connected libraries, local styles, variables, components, sibling screens, and user task goals, then return up to three supported UI improvement findings with clear evidence and proposed changes. Do not use for design-system conformance audits (follow-ds-guidelines), Nielsen-heuristic evaluations (heuristic-evaluation), or cross-screen consistency checks (visual-consistency-check).

    Also in 3 projects that use this

  • agentset-aiSkill

    fixing-metadata

    Ship correct, complete metadata.

    Also in 3 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 3 projects that use this

  • AnasX7Skill

    better-accessibility

    Helps your project comply with accessibility standards and best practices.

    Also in 3 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 3 projects that use this

  • VercelSkill

    emil-design-eng

    This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software feel great.

    Also in 3 projects that use this

  • +3 more from AnasX7

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When bootstrapping a new project or formalizing an existing project's visual identity, generate or update a root DESIGN.md conforming to …

    line 14
  2. Distinctive:

    Never pick random palette colors.

    line 21
  3. Distinctive:

    Before refactoring, restyling, or updating any existing UI, do not dive into raw code editing.

    line 88
  4. Distinctive:

    When proposing non-trivial UI improvements, record them in a structured plan:

    line 102
  5. Very specific:

    If DESIGN.md does not exist in the project root:

    line 127
  6. Distinctive:

    Treat it as the binding visual and copywriting law.

    line 131

“Common” is measured: kept by at least 6 in 10 of the 6 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

Design System Architect & Audit Engine (create-design-md)

Generate, calibrate, and enforce a repository-level DESIGN.md specification. Establish an unambiguous visual and content contract so agents never hallucinate styles, introduce arbitrary colors, clutter screens with decorative badges/eyebrows, or alienate customers with dense technical jargon.


🏛️ PART 1: THE DESIGN SYSTEM SPECIFICATION (DESIGN.md)

When bootstrapping a new project or formalizing an existing project's visual identity, generate or update a root DESIGN.md conforming to this exact structure:

1. Brand Identity & Design Direction

  • Archetype & Tone: Define the personality (e.g., "Dense High-Performance Developer Terminal", "Clean Scandinavian FinTech", "Warm Editorial Culinary Studio").
  • Visual Thesis: 1–2 sentences defining what the product looks like and what it strictly avoids (e.g., "Zero neon gradients, zero decorative badges, zero eyebrow crutches, plain human language").

2. The 60-30-10 Color System

Never pick random palette colors. Distribute visual weight strictly:

  • 60% Dominant (Base Surface & Canvas): Canvas backgrounds, app shells, high-surface cards (background, surface, surface-subtle).
  • 30% Secondary (Structure & Typography): Text hierarchy, borders, separators, secondary containers (foreground, text-muted, border, surface-elevated).
  • 10% Accent (Interactive Focus): Primary buttons, active tabs, focus rings, status indicators (primary, primary-hover, accent).
## Semantic Token Palette
- `background`: Canvas background (Light / Dark hex)
- `surface`: Elevated cards and panels
- `surface-elevated`: Floating modals and popovers
- `border`: Structural dividers and borders (subtle contrast)
- `foreground`: Primary high-contrast body text
- `text-muted`: Supporting metadata and secondary text
- `primary`: Interactive brand accent (buttons, active states)
- `primary-foreground`: Text rendered on top of primary accent
- `destructive`: Error states, danger alerts, destructive actions (or `danger` alias)
- `warning`: Attention, pending, or cautionary alerts
- `success`: Completed, verified, or positive status

3. Typography Hierarchy & Copy Contract

  • Primary Typeface: Body copy and interface controls (e.g., Inter, Geist, SF Pro).
  • Secondary Typeface (Optional): Editorial display headings or monospace for code/metrics.
  • Type Scale:
    • Display (text-4xl / text-5xl): Tight leading (leading-none), tracking tight (tracking-tight), text-balance.
    • Heading 1 (text-2xl / text-3xl): leading-tight, tracking-tight, text-balance.
    • Heading 2 & 3 (text-lg / text-xl): leading-snug, text-balance.
    • Body (text-sm / text-base): leading-relaxed, text-pretty.
    • Metadata / Caption (text-xs): leading-normal.
    • Tabular / Numeric (tabular-nums): Mandatory for metrics, prices, timestamps.

🚫 STRICT BAN: ZERO EYEBROWS & ZERO KICKERS

  • Do not define or render eyebrow typography roles.
  • Uppercase tracked kicker tags placed above headings (FEATURES, PLATFORM, INNOVATION, WHY US) are strictly prohibited.
  • Section titles must stand strong and clear on their own without eyebrow crutches.

🚫 STRICT BAN: ZERO TECHNICAL JARGON & ALIENATING BUZZWORDS

  • Copy must speak in plain, everyday human language that a non-technical customer or business owner understands in 2 seconds.
  • Prohibited Buzzwords: Next-gen, Cutting-edge, State-of-the-art, Robust, Turnkey, End-to-end orchestration, Synergy, Paradigm shift, Holistic, Seamless integration, Hyper-scalable, Disruptive, Leverage, Cloud-native (in customer-facing copy).
  • Mandate: Focus on real human outcomes (time saved, money earned, mistakes avoided).

4. Sizing, Spacing & Density Tiers

  • Base Grid: Standard 4px / 8px scale (4, 8, 12, 16, 24, 32, 48, 64px).
  • Layout Max-Widths: Container constraints (max-w-7xl for apps, max-w-5xl for marketing, max-w-prose for longform).
  • Density Profile:
    • Compact / Dense: Developer tools, data tables, monitoring dashboards (padding 6–8px).
    • Standard: Typical SaaS, management portals, e-commerce admin (padding 12–16px).
    • Spacious: Marketing landing pages, editorial showcases (padding 24–32px).

5. Surfaces, Radius & Elevation

  • Border Radius Scale:
    • radius-sm (4px): Subtle control indicators, small inputs.
    • radius-md (6–8px): Form inputs, buttons, control triggers.
    • radius-lg (8–12px): Standard cards, content panels.
    • radius-xl (12–16px): Modals, dialogs, popovers.
    • radius-full: True circular buttons and avatar circles.
    • (Note: Decorative badge pills and floating tag clouds are strictly banned).
  • Elevation / Shadows:
    • shadow-none: Flat cards, bordered containers.
    • shadow-sm: Subtle hover lifts.
    • shadow-md: Dropdown menus, tooltips.
    • shadow-xl: Modal overlays, floating drawer panels.

🔍 PART 2: UI AUDIT & DESIGN PLAN ENGINE (improve-ui)

Before refactoring, restyling, or updating any existing UI, do not dive into raw code editing. Execute this 4-step proof protocol:

Step 1: Trace the Rendered Path

  1. Identify the exact route and layout file.
  2. Trace imports through compositions, shared components, and resolved tokens.
  3. Exclude untouched surfaces; audit only the coherent task surface.

Step 2: The 3-Proof Gate

A visual finding is valid only if all three proofs exist:

  1. Contract Proof: Cite the specific line in DESIGN.md or global tokens that is violated (including eyebrow bans, decorative badge clutter, raw hex colors, or alienating buzzwords).
  2. Runtime Proof: Prove that the invalid property or text reaches the rendered DOM element.
  3. Correction Proof: Provide the exact replacement semantic token, primitive, plain copy, or layout fix.

Step 3: Write Isolated Design Plan (design-plans/<plan-name>.md)

When proposing non-trivial UI improvements, record them in a structured plan:

# Design Plan: <Surface Name>

## Evidence Chain
- Surface: `<route or component path>`
- Problem: <direct observation: eyebrow found, badge clutter, raw hex, or technical jargon>
- Contract Violated: `<token, rule, or DESIGN.md clause>`

## Proposed Changes
1. `<file path>`:
   - Replace: `<exact offending code or jargon copy>`
   - With: `<concrete token, primitive, or plain customer copy>`
   - Verification: `<expected visual/editorial result>`

## Scope Boundaries
- Affected: `<consumers inheriting the change>`
- Excluded: `<unrelated components kept intact>`

⚡ Execution Protocol

  1. If DESIGN.md does not exist in the project root:
    • Scan existing styling configurations (tailwind.config.*, globals.css, theme providers).
    • Generate DESIGN.md in the project root capturing the real active tokens while enforcing the strict bans on badges, eyebrows, and technical jargon.
  2. If DESIGN.md exists:
    • Treat it as the binding visual and copywriting law.
    • Deny any UI change that contradicts DESIGN.md.

Download now (ZIP)

Does it work?

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

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.