claude-plugin-design-md
v0.1.1
Published
Claude Code plugin + standalone CLI that scaffolds DESIGN.md files following the google-labs-code/design.md spec.
Maintainers
Readme
DESIGN.md
A Claude Code plugin that scaffolds a DESIGN.md in the current project. The
file follows the google-labs-code/design.md
specification — YAML design tokens plus markdown rationale — so any AI coding
agent can read a single document and produce UI that matches the intended
visual identity.
Use
As a Claude Code plugin
Install from this GitHub repo by registering it as a marketplace:
/plugin marketplace add eveiljuice/claude-plugin-design-md
/plugin install design-md@claude-plugin-design-mdOr point Claude Code at a local clone:
/plugin install /absolute/path/to/claude-plugin-design-mdThen, inside any project, run:
/design-md:create
/design-md:create atmospheric-glass| Argument | Behaviour |
|----------|-----------|
| (none) or blank | Writes the bundled starter template — every required section with placeholder prose and a neutral default token palette. |
| atmospheric-glass | Downloads the official Atmospheric Glass example. |
| paws-and-paths | Downloads the official Paws & Paths example. |
| totality-festival | Downloads the official Totality Festival example. |
If DESIGN.md already exists the command asks before overwriting.
As a standalone CLI (npx)
Run without Claude Code — no install, no clone. Requires Node 18+.
npx -y claude-plugin-design-md
npx -y claude-plugin-design-md atmospheric-glass
npx -y claude-plugin-design-md paws-and-paths --out design/DESIGN.mdOr pull straight from GitHub (useful for unreleased changes on main):
npx -y github:eveiljuice/claude-plugin-design-mdOptions:
| Flag | Default | Description |
|------|---------|-------------|
| --out <path> | ./DESIGN.md | Where to write the file |
| --force, -f | off | Overwrite without prompting |
| --help, -h | — | Show usage |
Valid sources: blank (default), atmospheric-glass, paws-and-paths, totality-festival.
With any other AI coding agent
The CLI works from any agent that can run shell commands (Cursor, Codex, Cline,
Continue, Windsurf, Aider, Copilot CLI, Gemini CLI, Zed, OpenCode, …). To teach
the agent when to reach for it, drop the skill file at
skills/create-design-md.md into whatever
instruction layer your tool uses:
---
description: Scaffold a DESIGN.md via the claude-plugin-design-md CLI
globs: "**/*"
alwaysApply: false
---Then paste the body of skills/create-design-md.md underneath.
These tools all read AGENTS.md at the project root. Append a section:
## Scaffolding DESIGN.md
When asked to create a DESIGN.md, a design system spec, or a YAML design-tokens
document, run `npx -y claude-plugin-design-md [blank|atmospheric-glass|paws-and-paths|totality-festival]`
in the project root. Do not write the file by hand — the templates are versioned
upstream.Paste the body of skills/create-design-md.md directly — Cline reads every file
in the .clinerules/ directory as part of its system prompt.
{
"instructions": ["https://raw.githubusercontent.com/eveiljuice/claude-plugin-design-md/main/skills/create-design-md.md"]
}Paste the body of skills/create-design-md.md directly.
After the file exists
Validate it against the spec using the upstream CLI (no install required):
npx @google/design.md lint DESIGN.mdOther useful commands from the same package:
npx @google/design.md export --format tailwind DESIGN.md
npx @google/design.md export --format dtcg DESIGN.md
npx @google/design.md spec # prints the full spec for agent promptsReleases
Each tag matching v* triggers .github/workflows/publish.yml, which verifies
that the tag matches package.json and publishes to npm with npm provenance
signing.
To cut a new version:
npm version patch # or minor / major
git push --follow-tagsGitHub Actions picks up the tag, publishes to npm, and the new version is live
under npx -y claude-plugin-design-md.
Layout
design-md/
├── .claude-plugin/plugin.json # Claude Code plugin manifest
├── commands/create.md # Claude Code slash command
├── skills/create-design-md.md # Universal skill for any AI agent
├── templates/DESIGN.md # Bundled starter template
├── bin/cli.js # Standalone npx CLI
└── README.mdLicense
MIT
