agentleFS
weg-9000weg-9000/Lime-design/skills/ds-init/SKILL.md

ds-init

Skill0 starsChanged 5 months agoMITView on GitHub

Scaffold a Design Hub in the current directory — instance profile, DTCG token SSoT skeleton, generated tokens.css, and DESIGN.md. Run this once per design system, from an empty (or existing Hub) directory.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. MooseDesign1/DDD-DesignDrivenDevelopment★ 9same name
    2. sungurerdim/dev-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository8 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create the Design Hub — the data workspace this plugin operates on.

    line 16
  2. Very specific:

    If it already contains a DESIGN/design-tokens.json, this is a re-init:

    line 24
  3. Very specific:

    Ask the user (one question, all parts optional): design-system name, primary brand color (hex), base font stack.

    line 34
  4. Very specific:

    If the user replaced the brand color and validation returns BLOCK (a11y contrast), report exactly which pair failed …

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Purpose

Create the Design Hub — the data workspace this plugin operates on. The plugin ships the engine (rules + CLIs); the Hub holds your design system's data. Mirrors the ENGINE ≠ DATA principle: the plugin never stores your tokens.

Environment check (always first)

  1. python --version must be 3.10+. If missing, stop and tell the user.
  2. Confirm the current working directory is where the user wants the Hub. If it already contains a DESIGN/design-tokens.json, this is a re-init: never overwrite existing data — run only the missing pieces.

Windows note: always invoke engine CLIs as python -X utf8 … — the engine prints Unicode (em-dashes, ✅) that crashes cp949 consoles otherwise.

Steps

1 — Ask minimal branding questions (skip on re-init)

Ask the user (one question, all parts optional): design-system name, primary brand color (hex), base font stack. Defaults: directory name, #1D4ED8, system-ui stack.

2 — Scaffold the Hub structure

{hub}/
├── design.profile.yml        # instance profile (from template)
├── DESIGN/
│   ├── design-tokens.json    # DTCG SSoT (from starter template)
│   ├── tokens.css            # generated — never hand-edited
│   └── DESIGN.md             # docs scaffold
├── imports/                  # ingested artifacts (Stitch DESIGN.md, Figma exports)
├── tenants/                  # brand overrides: tenants/{id}/design/
├── dist/                     # build outputs (e.g. dist/claude-design/ bundle)
└── reports/                  # eval.design.*.json / .md
  • Copy ${CLAUDE_PLUGIN_ROOT}/templates/design.profile.template.yml → ./design.profile.yml, set name: to the chosen name.
  • Copy ${CLAUDE_PLUGIN_ROOT}/templates/starter.tokens.json → ./DESIGN/design-tokens.json, set $meta.name; if the user gave a brand color, replace the blue_700 primitive's $value with it (keep the token name — renaming primitives means updating every semantic reference).

3 — Generate and validate

python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/gen_tokens.py --src DESIGN/design-tokens.json --out DESIGN/tokens.css --profile design.profile.yml
python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/scaffold_design_md.py --tokens DESIGN/design-tokens.json --out DESIGN/DESIGN.md --profile design.profile.yml
python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/validate_design.py --tokens DESIGN/design-tokens.json --profile design.profile.yml --out reports --format both

Exit codes: 0 PASS · 1 FIX-only · 2 BLOCK · 3 internal error.

If the user replaced the brand color and validation returns BLOCK (a11y contrast), report exactly which pair failed (reports/eval.design.tokens.md) and propose the nearest accessible shade — do not silently keep an inaccessible brand color.

4 — Report

Print a short dashboard: Hub path, token counts (primitive/semantic), validation verdict, and next steps: /ds-import (bring in an existing theme), /ds-tokens (design the palette), /ds-push (publish to Claude Design).

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.