Install
$ agentstack add skill-fabricioctelles-skills-design-md-validator ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
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
| Trigger | Action | |---|---| | User has a DESIGN.md file and wants validation | lint | | User wants to compare two versions | diff | | User wants to export tokens to Tailwind/DTCG | export | | User wants to see the current spec | spec | | User shares a URL to a raw DESIGN.md | Fetch → lint | | 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)
npx @google/design.md lint DESIGN.md
Output: JSON with findings[] and summary { errors, warnings, info }. Exit code 1 if errors found, 0 otherwise.
Diff (compare versions)
npx @google/design.md diff DESIGN.md DESIGN-v2.md
Output: JSON with token-level changes (added, removed, modified) and regression flag. Exit code 1 if regressions detected.
Export (to other formats)
# 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
Spec (output the format specification)
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:
npx @google/design.md lint ./DESIGN.md
From URL (fetch first):
curl -sL > /tmp/DESIGN.md && npx @google/design.md lint /tmp/DESIGN.md
From stdin:
cat DESIGN.md | npx @google/design.md lint -
2. Run Lint
npx @google/design.md lint --format json DESIGN.md
3. Interpret Findings
Parse the JSON output and report to the user:
| Severity | Meaning | Action | |---|---|---| | error | Spec violation — file is invalid | Must fix | | warning | Best practice violation — file is valid but suboptimal | Should fix | | info | Informational — suggestions for improvement | Nice to fix |
4. Provide Actionable Fixes
For each finding, explain:
- What the rule checks
- Why it matters
- How to fix it with a concrete code example
5. 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:
npx -p @google/design.md designmd lint DESIGN.md
Related Official Skills
| Skill | Source | Purpose | |---|---|---| | stitch-design-taste | google-labs-code/stitch-skills | Generates DESIGN.md for Google Stitch | | design-md (Stitch plugin) | google-labs-code/stitch-skills | Analyzes Stitch projects → DESIGN.md | | taste-design (MCP) | mcpservers.org | MCP server for Stitch design extraction |
Install the official Stitch skill for generation:
npx skills add https://github.com/google-labs-code/stitch-skills --skill design-md
Anti-Patterns
- Never vendor or cache the CLI — always use
npxfor 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
Example Session
User: validate my DESIGN.md
Agent:
1. Reads the file
2. Runs: npx @google/design.md lint --format json DESIGN.md
3. Parses output
4. Reports:
- 0 errors, 2 warnings, 1 info
- 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
5. Suggests fixes with code
6. Re-runs lint to confirm
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: fabricioctelles
- Source: fabricioctelles/skills
- License: Apache-2.0
- Homepage: https://skill.dev.br
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.