design-system-generator-skill
AGENTS.md1 starsChanged 6 months agoApache-2.0View on GitHub
When the user asks to create a design system, generate a color palette, build a theme, create UI tokens, or set up brand styles, follow the workflow defined in: Main instructions: skills/design-system-generator/SKILL.md This skill generates a complete, production-ready design system from a single brand color: Read these as needed during generation:
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,266 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When the user asks to create a design system, generate a color palette, build a theme, create UI tokens, or set up brand styles, follow the …
- Distinctive: line 25
Read these as needed during generation:
- Distinctive: line 47
All colors MUST use OKLCH color space
- Distinctive: line 51
Follow phases in order, confirm with user between phases
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Design System Generator — Agent Instructions
This file enables the Design System Generator skill for OpenAI Codex and similar agents.
https://github.com/XINGANLIU/design-system-generator-skill
Skill: Design System Generator
When the user asks to create a design system, generate a color palette, build a theme, create UI tokens, or set up brand styles, follow the workflow defined in:
Main instructions: skills/design-system-generator/SKILL.md
Quick Reference
This skill generates a complete, production-ready design system from a single brand color:
- Brand Input → Collect brand color (hex/rgb/oklch), font family, border radius style
- Color System → OKLCH palettes: primary (10 steps), neutral (10 steps), semantic (success/warning/error/info)
- Tokens → W3C Design Tokens JSON + CSS custom properties with Light/Dark theme support
- Components → Button, Card, Input, Badge, Alert, Avatar, Skeleton, Tooltip, Modal, Navbar, Divider
- Preview → Self-contained HTML preview page with theme toggle
Reference Documents
Read these as needed during generation:
| File | Content |
skills/design-system-generator/references/color-system.md | OKLCH color palette algorithm |
skills/design-system-generator/references/typography-scale.md | Font size/weight/line-height scales |
skills/design-system-generator/references/spacing-system.md | Spacing, radius, shadow, z-index, transitions |
skills/design-system-generator/references/component-patterns.md | CSS patterns for each component |
skills/design-system-generator/references/dark-mode-guide.md | light-dark(), theme toggle, semantic token mapping |
Output Structure
design-system/
├── tokens.json # W3C Design Tokens
├── tokens.css # CSS Custom Properties
├── components.css # Component styles
└── preview.html # Visual preview pageKey Constraints
- All colors MUST use OKLCH color space
- Components MUST only use
var(--token-name)— no hardcoded values - WCAG 2.2 AA contrast compliance required
- Support Light and Dark themes via
light-dark()+[data-theme] - Follow phases in order, confirm with user between phases
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
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.

