Agent skill Frontend
Create Design Md
Establish reusable styling and design decisions across web screens.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add ibelick/skills --skill create-design-md --agent claude-code --yesCheck this file in your project.claude/skills/create-design-md/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add ibelick/skills --skill create-design-mdSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Bring the selected product repository or a public site URL. URL mode requires a browser that can inspect computed styles and loaded CSS. Use Google’s DESIGN.md CLI separately for schema and export verification.
View operation manualWhat this skill helps with
- Establish reusable styling and design decisions across web screens.
Good for
- Design tokens and shared styles
- Inputs
- A selected product or public URL, governing sources, and representative surfaces.
- Evidence
- Record each role, value, source, scope, recurrence, and confidence.
- Validation
- Lint and inspect one compatible export. Diff the previous file when updating.
- Output
- A validated DESIGN.md and a short report of source evidence and omitted or unresolved areas.
- Skill name
create-design-md- Repository
ibelick/skills
Write design decisions supported by evidence
A dump of styles and guesses
Turn every CSS value on these pages into a design token.
An observed value can be specific to one component or viewport. Exporting it as a shared token makes a claim the evidence may not support.
A document the project can rely on
- Trace values to the selected product and actual rendered role.
- Use the canonical schema and retain supported decisions.
- Validate lint and export output before sharing.
Create DESIGN.md operation manual
Use repository mode when source is available. Reconstruct a draft from a URL when the source is unavailable and you can inspect the rendered site.
Record the design rules that govern the selected product and validate the file in its own context.
Trace the design rules used by the product
Start with current documentation and verify shared tokens and components through actual routes.
Prompt · Step 1Use the installed create-design-md skill in repository mode for [product root and representative routes]. Read the current DESIGN.md if present, explicit guidance, active themes, shared component variants, and rendered consumers. Record role, value, source, scope, recurrence, and confidence. Trace which tokens are actually imported or inherited by the selected product. Exclude examples, old migrations, and local values without a shared contract. If the relevant product root is ambiguous, ask which deployable product to document. Keep this pass to the evidence.Draft the smallest supported schema
Put exact named values in canonical YAML and governing intent in concise Markdown.
Prompt · Step 2Use create-design-md to write DESIGN.md for [selected product root and traced design evidence]. Recover the evidence and any existing document before editing. Normalize named values into flat colors, rounded and spacing mappings where supported, and store typography as named scales with fields such as fontFamily and fontSize. Check the installed spec before writing theme syntax. When theme-aware frontmatter is unavailable, keep the default values under the canonical tokens and document supported alternatives in a Themes table. Preserve accepted decisions and write only DESIGN.md. Hold the draft until validation passes.Lint, export, and inspect the result
Check syntax, the emitted token families, and any lost decisions before sharing.
- The export command shown uses Tailwind v4. Select the right format for the project.
- Lint succeeds and populated categories appear in compatible export output.
- Accepted existing decisions are accounted for.
Prompt · Step 3Use create-design-md to validate [DESIGN.md path and project stack]. Run npx @google/design.md lint DESIGN.md and choose the matching export target: css-tailwind for Tailwind v4, json-tailwind for v3, or dtcg otherwise. Inspect the actual output for every populated token category that the target supports. For a v4 document with typography and radius, confirm the expected --font-* or --text-* and --radius-* output. When updating an existing file, diff against a preserved temporary copy with npx @google/design.md diff. Correct missing or invalid categories and verify accepted decisions remain unless current evidence or user direction replaces them. Report the actual checks, warnings, and unsupported items.npx @google/design.md spec npx @google/design.md lint DESIGN.md npx @google/design.md export --format css-tailwind DESIGN.md
Find the appropriate evidence and validation
Choose the mode first, then use the corresponding evidence or validation section.
Several products use similar tokens in one repositoryScope
- Command or reference
SKILL.md · Trace the evidence- Examples
- Select the deployed product and prove its actual imports, inheritance, or rendered consumer.
A value was only estimated from a screenshotURL evidence
- Command or reference
SKILL.md · URL mode- Examples
- Inspect the computed property and loaded declaration, or corroborate the same rendered role across samples.
Lint passed but typography is missing from the exportSchema
- Command or reference
SKILL.md · Validate- Examples
- Check that each named typography scale is a mapping and inspect the generated font or text token family.
Create DESIGN.md troubleshooting
Can I generate a DESIGN.md from a screenshot alone?
Use screenshots to explain appearance. Exact values in the reconstructed document need computed styles or directly observable CSS corroborated by the rendered site.
Does exit code zero prove the export is complete?
Inspect the output and confirm each supported populated category emits its own tokens. Lint and export are separate checks.
What happens to dark-mode values with a spec that cannot encode theme modes?
Use canonical default values in YAML and record verified alternate values in a Themes table. Check the installed spec first because support can change.