agentleFS
XINGANLIUXINGANLIU/design-system-generator-skill/AGENTS.md

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
  1. Distinctive:

    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 …

    line 8
  2. Distinctive:

    Read these as needed during generation:

    line 25
  3. Distinctive:

    All colors MUST use OKLCH color space

    line 47
  4. Distinctive:

    Follow phases in order, confirm with user between phases

    line 51

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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:

  1. Brand Input → Collect brand color (hex/rgb/oklch), font family, border radius style
  2. Color System → OKLCH palettes: primary (10 steps), neutral (10 steps), semantic (success/warning/error/info)
  3. Tokens → W3C Design Tokens JSON + CSS custom properties with Light/Dark theme support
  4. Components → Button, Card, Input, Badge, Alert, Avatar, Skeleton, Tooltip, Modal, Navbar, Divider
  5. Preview → Self-contained HTML preview page with theme toggle

Reference Documents

Read these as needed during generation:

FileContent
skills/design-system-generator/references/color-system.mdOKLCH color palette algorithm
skills/design-system-generator/references/typography-scale.mdFont size/weight/line-height scales
skills/design-system-generator/references/spacing-system.mdSpacing, radius, shadow, z-index, transitions
skills/design-system-generator/references/component-patterns.mdCSS patterns for each component
skills/design-system-generator/references/dark-mode-guide.mdlight-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 page

Key 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.