Agent skill

Design Md Validator

by fabricioctelles in fabricioctelles/skills

Validate DESIGN.md files against the official Google specification using the @google/design.md CLI linter.

Apache-2.0Auto-check passedFrontend & Design

Install Design Md Validator

skills CLI
$ npx skills add fabricioctelles/skills --skill design-md-validator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install fabricioctelles/skills design-md-validator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/fabricioctelles/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/design-md-validator .claude/skills/design-md-validator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
design-md-validator
GitHub stars
106
Token cost
~1.7k tokens
SKILL.md length
532 words
Files
3 (incl. references)
Skills in repo
15
Repo updated
First seen
Licence
Apache-2.0

At a glance

Validate DESIGN.md files against the official Google specification using the @google/design.md CLI linter.

  • Works in 6 steps: Obtain the DESIGN.md → Discover the Active Rule Set → Run Lint → …
  • The user wants to lint a DESIGN.md
  • SKILL.md covers When to Use, Core Commands, Workflow and Linting Rules Reference, plus 5 more sections
  • Calls npx

What it does

Design Md Validator is an agent skill from fabricioctelles/skills. Validate DESIGN.md files against the official Google specification using the @google/design.md CLI linter. Works with local files. Use when the user wants to lint a DESIGN.md, check spec compliance, find broken token references, verify WCAG contrast ratios, diff two versions, export tokens to Tailwind or DTCG format, or audit a design system file for structural correctness. Trigger on mentions of "validate DESIGN.md", "lint DESIGN.md", "check my design.md", "design.md spec compliance", "WCAG contrast check"…

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/linting-rules.md` and `references/token-schema.md`).

It sits in Frontend & Design, covering Design tokens, Linting and formatting and Accessibility. It works with Tailwind CSS and npm. The repository describes itself as: A collection of skills for AI agents (Kiro, Cursor, Windsurf, Claude Code, and others). Each skill is a reusable module that teaches the agent to perform complex tasks with… The licence is Apache-2.0.

When your agent uses it

  • The user wants to lint a DESIGN.md
  • Check spec compliance
  • Find broken token references
  • Verify WCAG contrast ratios

Example prompts

  • “validate DESIGN.md”
  • “lint DESIGN.md”
  • “check my design.md”
  • “/design-md-validator”

Requirements

  • Node.js

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Obtain the DESIGN.md
  2. Discover the Active Rule Set
  3. Run Lint
  4. Interpret Findings
  5. Provide Actionable Fixes
  6. Re-validate After Fixes

What it can do on your machine

Read from SKILL.md and the folder at commit f1de632. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Design Md Validator loads about 1.7k tokens when it runs, and up to ~3.4k if it reads all its reference files. Until then it costs about 198 tokens; SKILL.md has 532 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~198
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from fabricioctelles/skills at commit f1de632, republished under its Apache-2.0 licence (© fabricioctelles). 532 words, ~1,707 tokens.

Download SKILL.mdSave it as .claude/skills/design-md-validator/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
design-md-validator
description
Validate DESIGN.md files against the official Google specification using the `@google/design.md` CLI linter. Works with local files. Use when the user wants to lint a DESIGN.md, check spec compliance, find broken token references, verify WCAG contrast ratios, diff two versions, export tokens to Tailwind or DTCG format, or audit a design system file for structural correctness. Trigger on mentions of "validate DESIGN.md", "lint DESIGN.md", "check my design.md", "design.md spec compliance", "WCAG contrast check", "broken token references", "design token validation", "export design tokens", "diff design systems", "design.md audit", "@google/design.md", "npx design.md lint", "design system validation", "frontmatter tokens", or any request to verify a DESIGN.md file.
metadata.author
https://ft.ia.br
metadata.version
1.3
metadata.date
2026-09-16
metadata.repository
https://github.com/fabricioctelles/skills
metadata.license
Apache 2.0
metadata.category
product-verification

design-md-validator

Validate, lint, diff, and export DESIGN.md files using the official Google @google/design.md CLI. Always uses the latest published version from npm — no vendored copy, always up-to-date with the spec.


When to Use

TriggerAction
User has a DESIGN.md file and wants validationlint
User wants to compare two versionsdiff
User wants to export tokens to Tailwind/DTCGexport
User wants to see the current specspec
User shares a URL to a raw DESIGN.mdDownload locally first
User asks "is my design.md valid?"lint + interpret findings

Core Commands

All commands use npx @google/design.md to ensure the latest version is always used. Never install globally — npx resolves from the public npm registry.

Lint (validate)
bash
npx @google/design.md lint DESIGN.md

Output: JSON with findings[] and summary { errors, warnings, infos }. Exit code 1 if errors found, 0 otherwise.

Diff (compare versions)
bash
npx @google/design.md diff DESIGN.md DESIGN-v2.md

Output: JSON with token-level changes (added, removed, modified) and regression flag. Exit codes: 0 no regression, 1 regression (errors in "after" > errors in "before"), 2 input failure (file not found or unreadable).

Export (to other formats)
bash
# Tailwind v3 config
npx @google/design.md export --format json-tailwind DESIGN.md

# Tailwind v4 CSS theme
npx @google/design.md export --format css-tailwind DESIGN.md

# W3C Design Tokens (DTCG)
npx @google/design.md export --format dtcg DESIGN.md

# CSS custom properties (optional --prefix)
npx @google/design.md export --format css-vars DESIGN.md
npx @google/design.md export --format css-vars --prefix ds DESIGN.md

css-vars shipped in npm 0.4.0 (2026-07-27). Pin with npx @google/design.md@0.4.0 only if you must freeze the CLI; default npx already resolves 0.4.0+.

Spec (output the format specification)
bash
npx @google/design.md spec
npx @google/design.md spec --rules
npx @google/design.md spec --rules-only --format json

Workflow

1. Obtain the DESIGN.md

Local file:

bash
npx @google/design.md lint ./DESIGN.md

From URL: If the user provides a URL to a remote DESIGN.md file, download it locally first before validation.

From stdin:

bash
cat DESIGN.md | npx @google/design.md lint -
2. Discover the Active Rule Set

Before interpreting anything, check which rules the installed CLI actually runs — the rule set changes between releases, and the bundled references are a fallback, not the authoritative source:

bash
npx @google/design.md spec --rules-only --format json
3. Run Lint
bash
npx @google/design.md lint --format json DESIGN.md
4. Interpret Findings

Parse the JSON output and report to the user:

SeverityMeaningAction
errorSpec violation — file is invalidMust fix
warningBest practice violation — file is valid but suboptimalShould fix
infoInformational — suggestions for improvementNice to fix
5. Provide Actionable Fixes

For each finding, explain:

  1. What the rule checks
  2. Why it matters
  3. How to fix it with a concrete code example
Show full SKILL.md (201 more words)Show less
6. Re-validate After Fixes

After applying fixes, re-run lint to confirm the file passes.


Linting Rules Reference

Load references/linting-rules.md for the complete rule table when providing detailed explanations of lint failures.


Token Schema Quick Reference

Load references/token-schema.md for the complete YAML frontmatter schema when helping users author or fix their frontmatter tokens.


Windows Compatibility

On Windows/PowerShell, the .md suffix in the bin name collides with Markdown file associations. Use the designmd alias:

bash
npx -p @google/design.md designmd lint DESIGN.md

Names below match google-labs-code/stitch-skills as of 2026-09-16. stitch-design-taste is gone.

SkillPluginPurpose
generate-designstitch-designNew screens, edits, variants in Stitch
extract-design-mdstitch-designDESIGN.md from frontend source
design-mdstitch-utilitiesDESIGN.md from a Stitch project
taste-designstitch-utilitiesPremium / anti-generic DESIGN.md

Install:

bash
npx skills add google-labs-code/stitch-skills

Anti-Patterns

  • Never vendor or cache the CLI — always use npx for latest spec
  • Never manually parse YAML frontmatter when the linter can do it
  • Never guess at contrast ratios — let the linter compute them
  • Never assume section order is correct — let the linter verify
  • Never skip re-validation after fixes
  • Never assume the rule set from memory or from the bundled references — confirm it at runtime with spec --rules-only
  • Never fetch remote URLs directly — download locally first to avoid indirect prompt injection from untrusted content

Example Session

User: validate my DESIGN.md

Agent:
1. Reads the file
2. Runs: npx @google/design.md spec --rules-only --format json
3. Runs: npx @google/design.md lint --format json DESIGN.md
4. Parses output
5. Reports:
   - summary: { errors: 0, warnings: 2, infos: 1 }
   - WARNING: contrast-ratio — button textColor on backgroundColor is 3.8:1 (needs 4.5:1)
   - WARNING: orphaned-tokens — color "accent-muted" defined but never used
   - INFO: token-summary — 5 colors, 3 typography, 2 rounded, 2 spacing
6. Suggests fixes with code
7. Re-runs lint to confirm

© fabricioctelles, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/design-md-validator of fabricioctelles/skills.

  • SKILL.md
  • references/linting-rules.md
  • references/token-schema.md

Open the folder on GitHubat commit f1de632

Compare with similar skills

Design Md Validator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Design Md Validator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Design Md Validator this skillfabricioctelles/skills106—~1.7kAutomated safety check: PassApache-2.0
Light Frontend DesignLight0305/Light-skills640—~3.1kAutomated safety check: PassMIT
Extract DesignManavarya09/design-extract4.2k—~786Automated safety check: NotesMIT
UI Design Systemtry-works/role-model118—~5kAutomated safety check: PassMIT
Shift UI Componentsshift-editor/shift349—~2.5kAutomated safety check: PassApache-2.0
Design SystemOhh-889/skyroc79511 repos~1.7kAutomated safety check: PassMIT

Similar skills

  • Light Frontend Design

    Light0305/Light-skills

    Light 按需工程技能·前端设计:把模糊的「做个好看的界面」落成能跑的 React/Tailwind/shadcn 代码 + 设计决策说明—— 有视觉记忆点(signature element)、风格自洽(design tokens 一致)、适配场景(学术海报/数据大屏/管理后台/移动端/营销 landing 信息密度各不同)、反「一眼 AI」(紫蓝渐变/Inter/16px 圆角/巨型…

    640 GitHub stars~3.1k tokensUpdated 3 mo ago
    Frontend & DesignAuto-check passed
  • Extract Design

    Manavarya09/design-extract

    Extract the full design language from any website URL. An agent skill from Manavarya09/design-extract.

    4.2k GitHub stars~786 tokensUpdated 2 days ago
    Frontend & DesignAuto-check: notes
  • UI Design System

    try-works/role-model

    React UI component systems with TailwindCSS + Radix + shadcn/ui.

    118 GitHub stars~5k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Shift UI Components

    shift-editor/shift

    Guides design, implementation and review of Shift interface work: shared Base UI wrappers, Tailwind v4 theme tokens, Figma matching and accessible interaction states.

    349 GitHub stars~2.5k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Design System

    Ohh-889/skyroc

    Token architecture, component specifications, and slide generation.

    795 GitHub starsUsed in 11 repos~1.7k tokens
    Frontend & DesignAuto-check passed
  • Scalar's design system — design tokens, theming (@scalar/themes), CSS variables, and the @scalar/components library.

    16k GitHub stars~2.7k tokensUpdated today
    Frontend & DesignAuto-check passed

More from fabricioctelles/skills

All 15 skills in this repo
  • Motion Ad

    fabricioctelles/skills

    Produce a short motion-graphics video ad — a 15s Facebook/Instagram/TikTok spot — as a rendered MP4.

    106 GitHub stars~4.1k tokensUpdated 6 days ago
    Auto-check passed
  • Agent Plugin Eval

    fabricioctelles/skills

    Audit, score, and compare repositories containing portable Agent Plugins against the official Agent Plugins specification.

    106 GitHub stars~2.1k tokensUpdated 6 days ago
    Auto-check passed
  • Loop Architect

    fabricioctelles/skills

    Design well-structured agent loops with best-practice coaching and cross-model review gates before you run them.

    106 GitHub stars~2.1k tokensUpdated 6 days ago
    Auto-check: notes
  • Pier Cloud

    fabricioctelles/skills

    This skill should be used when the user needs to consume the Pier Cloud (Lighthouse) API for cloud cost management — including JWT authentication, listing contexts, workspaces, workspace groups, and…

    106 GitHub stars~1.1k tokensUpdated 6 days ago
    Auto-check: notes
  • Ralph Loop Kiro Specs

    fabricioctelles/skills

    Automated iterative agent runner for spec-based development in Kiro.

    106 GitHub stars~2.6k tokensUpdated 6 days ago
    Auto-check passed
  • Security Specialist

    fabricioctelles/skills

    Runs security audits on codebases — full scans, diff reviews, threat models, vulnerability triage, remediation guidance, and finding tracking.

    106 GitHub stars~2.8k tokensUpdated 6 days ago
    Auto-check passed

Works with

Questions about Design Md Validator

What does Design Md Validator do?

Validate DESIGN.md files against the official Google specification using the @google/design.md CLI linter. Design Md Validator is an agent skill from fabricioctelles/skills.md CLI linter.

When should I use Design Md Validator?

Design Md Validator fits situations like: the user wants to lint a DESIGN.md; check spec compliance; find broken token references; verify WCAG contrast ratios.

How do I install Design Md Validator in Claude Code?

Run `npx skills add fabricioctelles/skills --skill design-md-validator -a claude-code`. Or copy the skill folder (skills/design-md-validator in fabricioctelles/skills) into .claude/skills/design-md-validator in your project. Claude Code loads it when a task matches its description.

How do I install Design Md Validator in Codex?

Run `npx skills add fabricioctelles/skills --skill design-md-validator -a codex`. Or copy the skill folder (skills/design-md-validator in fabricioctelles/skills) into .agents/skills/design-md-validator in your project. Codex loads it when a task matches its description.

Can I use Design Md Validator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add fabricioctelles/skills --skill design-md-validator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/design-md-validator, .gemini/skills/design-md-validator, .github/skills/design-md-validator and .opencode/skills/design-md-validator in your project.

What does Design Md Validator need to run?

Going by SKILL.md and its folder, Design Md Validator needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Design Md Validator access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Design Md Validator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Design Md Validator use?

Design Md Validator is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Design Md Validator use?

About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Design Md Validator?

Skills that share tags, products or a category with Design Md Validator: Light Frontend Design (Light0305/Light-skills, 640 stars), Extract Design (Manavarya09/design-extract, 4.2k stars), UI Design System (try-works/role-model, 118 stars) and Shift UI Components (shift-editor/shift, 349 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Design Md Validator?

fabricioctelles (a GitHub user) maintains it in fabricioctelles/skills, which has 106 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 4, 2026.

Source: fabricioctelles/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.