agentleFS
crywolfecrywolfe/claude-code-design/.claude/skills/use-design-system/SKILL.md

use-design-system

Skill0 starsChanged 7 days agoMITView on GitHub

Explicitly load a design system from the project-local registry at design-systems/<name>/ for the current project. Use when user says "use the Acme design system", "apply company-x tokens", or similar.

2 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Verify the folder exists: Bash(ls design-systems/$0) — a listing that includes tokens.json means ok.

    line 27
  2. Very specific:

    If missing → tell the user, list what's available (Bash(ls design-systems)), stop.

    line 29
  3. Very specific:

    Read the tokens file: Read design-systems/$0/tokens.json

    line 31
  4. Very specific:

    If design-systems/$0/preview.html exists, offer to open it for visual reference via /preview design-systems/$0/preview.html — lets the user …

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

Use Design System

Load a design system from the project-local registry design-systems/<name>/ (gitignored) into .claude/design-tokens.json.

Governance flags (Claude Design's published / default / locked)

Each registry entry may carry design-systems/<name>/manifest.json:

{ "name": "acme", "version": 3, "default": false, "locked": false, "source": "figma | github | screenshot | document | scratch",
  "created_at": "…", "updated_at": "…", "synced_project_id": null, "synced_at": null }
  • --default <name> → set default: true on that manifest and false on every other (Edit; create the manifest if missing). A bare /use-design-system with no name loads the default without asking.
  • --lock <name> / --unlock <name> → toggle locked. /create-design-system refuses to overwrite a locked entry and offers <name>-remix instead.
  • Without a manifest an entry behaves as default: false, locked: false.

Steps

  1. If $0 (name) is missing → Bash(ls design-systems/ 2>/dev/null); Read each manifest.json that exists; if exactly one has default: true, use it and say so. Otherwise show the list (marking default / locked) and ask which one. $0 must be a plain folder name (letters, digits, -, _) — reject anything containing / or ...
  2. Verify the folder exists: Bash(ls design-systems/$0) — a listing that includes tokens.json means ok; No such file or directory means missing. Use ls, not test -d: a failing test prints nothing and its exit code is not shown in the tool result. If missing → tell the user, list what's available (Bash(ls design-systems)), stop.
  3. Read the tokens file: Read design-systems/$0/tokens.json
  4. Copy to project-level for faster subsequent reads:
    Bash(mkdir -p .claude)
    Bash(cp design-systems/$0/tokens.json .claude/design-tokens.json)
  5. If design-systems/$0/preview.html exists, offer to open it for visual reference via /preview design-systems/$0/preview.html — lets the user remember what the system looks like before starting work.
  6. Report: "Loaded design system $0 — colors, fonts, spacing, radii written to .claude/design-tokens.json. Subsequent /make-deck, /interactive-prototype, /wireframe will use it automatically."

When to NOT use this skill

  • User is extracting a new system from a codebase / screenshot / Figma → use /create-design-system instead
  • User explicitly said "ignore existing, I want something fresh" → route to /create-design-system with "from scratch" mode

Registry format reminder

design-systems/
├── acme/
│   ├── tokens.json           # required
│   └── preview.html          # optional
├── company-x/
│   └── tokens.json
└── minimal-mono/
    └── tokens.json

tokens.json schema:

{
  "name": "acme",
  "colors": { "primary": "#D97757", "accent": "...", "bg": "...", "text": "..." },
  "fonts": { "display": "...", "body": "...", "mono": "..." },
  "spacing": [4, 8, 12, 16, 24, 32, 48, 64],
  "radii": { "sm": 4, "md": 8, "lg": 16 },
  "shadows": [...]
}

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.