agentleFS
stevensmith-designstevensmith-design/agentic-design-kit/skills/ui-design-system/SKILL.md

ui-design-system

Skill0 starsChanged 26 days agoMITView on GitHub

Create visual brand/style guidelines, or create, extract, audit and verify a project's design system as a whole. Use for a brand guide from a brief or selected direction, greenfield DESIGN.md/tokens, extracting implicit rules from an existing app, diagnosing cross-screen incoherence, checking token relationships, or finding drift from DESIGN.md/tokens.json. Triggers on “set up/extract/audit the design system”, “why does nothing look consistent?”, “check for drift”, or a missing system that must be established before substantial UI work. System modes run the token validator. Use ui-design-principles to build a screen and ui-design-review to review one screen or PR; this skill owns the system above them.

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use fda-consultant-specialist, quality-manager-qmr and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Ivan-propioSkill

    fda-consultant-specialist

    Senior FDA consultant and specialist for medical device companies including HIPAA compliance and requirement management. Provides FDA pathway expertise, QSR compliance, cybersecurity guidance, and regulatory submission support. Use for FDA submission planning, QSR compliance assessments, HIPAA evaluations, and FDA regulatory strategy development.

    Also in 6 projects that use this

  • Ivan-propioSkill

    quality-manager-qmr

    Senior Quality Manager Responsible Person (QMR) for HealthTech and MedTech companies. Provides overall quality system responsibility, regulatory compliance oversight, management accountability, and strategic quality leadership. Use for quality system governance, regulatory compliance oversight, management responsibility, and quality strategic planning.

    Also in 6 projects that use this

  • Hussain-ElfalahSkill

    andreessen

    Also in 4 projects that use this

  • Hussain-ElfalahSkill

    business-investment-advisor

    Also in 4 projects that use this

  • csiddhant796-blipSkill

    karpathy-coder

    Use when writing, reviewing, or committing code to enforce Karpathy's 4 coding principles — surface assumptions before coding, keep it simple, make surgical changes, define verifiable goals. Triggers on "review my diff", "check complexity", "am I overcomplicating this", "karpathy check", "before I commit", or any code quality concern where the LLM might be overcoding.

    Also in 4 projects that use this

  • +2 more from Ivan-propio
  • +5 more from Hussain-Elfalah

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 1

    Distinctive

    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:

    If unsure between Extract and Coherence audit: Extract when there is no written system to compare against (you are *establishing* the …

    line 90

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “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

UI Design System

The system-level skill. ui-design-principles guards the making of a screen; ui-design-review audits a finished screen; this skill owns the design system the other two depend on — the tokens, their relationships, and the four-layer DESIGN.md that records the reasoning.

For visual-reference extraction during direction exploration, use direction-study and its provisional per-source visual guides. This skill's Extract mode inventories an existing application's code; it does not extract a style from screenshots. Encode the chosen guide through Create/Reconcile after direction selection. brand-to-system requires an already declared compatible brand.

It exists because a screen can pass every element rule and the product can still feel incoherent. Contrast, selection-vs-action distance, semantic-colour distinctness, ramp derivation, scale ratios — these live between tokens, where regex-over-components can never see them. This skill makes those relationships explicit and checks them with math.

Dependencies. The canonical DESIGN.md template and rulebook live in ui-design-principles/references/; code-side drift detection lives in ui-design-review. Locate sibling skills through the active skill catalog/project configuration rather than assuming one installation root, and print the resolved path as evidence. If a sibling is unavailable, report the missing coverage instead of copying its logic.


The token-graph validator (runs in every mode)

scripts/validate-tokens.py is the engine. It reads a project's tokens.json (and DESIGN.md if present), resolves references, classifies colours into roles by name, and computes the relationships that live between tokens — contrast pairs (including the recurring CTA-label-on-CTA miss), selection ≠ action distance, semantic-colour distinctness, the neutral ramp's hue, the background↔card value step, type-scale ratios, elevation monotonicity. The full computed-check catalog, exit codes, and coverage semantics are in references/validator-checks.md; dated per-check provenance is in references/validator-rationale.md.

# Discover the validator from the active catalog/config, then run it (do not hard-code a root):
python3 <resolved>/validate-tokens.py <project-dir>
# or: --tokens PATH [--design PATH]   ·   --json for machine-readable output
#     --theme PATH   diff shipped theme CSS against tokens.json (Drift mode; see references/mode-drift.md)
#     --strict       required-role coverage becomes FAIL, not silent SKIP (Create gating)
# Behaviour is locked by tests/run.sh (30/30 fixtures) — run it after any validator change.

Caveat. Preserve the validator's exact verdict: exit 0 may be PASS WITH WARNINGS, not clean. Name every WARN and SKIP; never reduce the final status to “PASS” from an earlier run. Token relationships are not visual sign-off, so run the five-question coherence test (references/mode-coherence.md) and ui-design-review on top. If it cannot run, report relationships UNVERIFIED — never claim PASS.


The four-layer DESIGN.md

A design system is not a token dump. It is four layers — Intent · System principles · Tokens & component rules · Relationships & rationale — and the fourth (why the values cohere) is the one that usually goes missing, which is why systems drift and feel assembled. Every mode reads, writes, or verifies this structure. The full layer table, the evidence-and-authority order, and the system-promotion gate are in references/design-system-layers.md. The canonical template is ui-design-principles/references/design-system-template.md (do not fork it).


Mode detection

Asked to create visual brand guidelines, a brand style guide or design guidelines from a brief or selected direction? Use references/brand-guidelines.md. It authors reusable guidance, then uses Create/Extract below when a corresponding implementation system is requested. An existing approved brand remains the source; an audit does not authorize rewriting it.

ModeUse whenProducesSteps
CreateGreenfield. No system yet; establishing one before real UI is built.A four-layer DESIGN.md + tokens.json, validator-greenreferences/mode-create.md
ExtractAn existing codebase with implicit rules and no (or stale) DESIGN.md.A DESIGN.md reverse-engineered from real usage + a drift listreferences/mode-extract.md
Coherence auditElements each look fine but the screens feel incoherent, generic, or "assembled."A coherence verdict across eleven axes + the five-question testreferences/mode-coherence.md
DriftA DESIGN.md/tokens.json exists; checking whether shipped UI still matches it.A drift report: token expected vs value foundreferences/mode-drift.md

If unsure between Extract and Coherence audit: Extract when there is no written system to compare against (you are establishing the baseline); Coherence audit when a system exists (or you just extracted one) and the question is whether it hangs together.

Boundary. Designing one screen → ui-design-principles. Reviewing one screen's rendered output → ui-design-review. This skill is only for the system as a whole. Flow/IA structure (navigation, grouping, labels) → ia-review.

Adopting an external or newly created component into the shared system → references/component-integration.md (tiered A/B/C). A candidate that introduces a second idiom, a parallel token system, or a conflicting state model must not be promoted until reconciled.

Specifying a reusable or consequential component → references/component-spec-template.md. Use it when variants, states, adaptive behaviour, content or accessibility need a durable cross-team contract. Keep simple wrappers in code and keep the project's component index compact; the specification exists to prevent divergent interpretation, not to document every prop twice.

For system work, load only the mode reference the request needs; run the validator and read references/design-system-layers.md. A visual-guide-only task does not require invented tokens.


Closing step — feed findings back (shared, approval-gated)

One canonical rule for every mode: a request to review/audit is read-only; creating or updating a system authorizes only the named deliverables, never unrelated files; every other project-file or shared-file write needs explicit approval. The shared substrate propagates to every project, so an unreviewed edit there spreads a mistake everywhere — log candidates, never self-promote.

Applying that rule:

  • Project decisions (a token, a DESIGN.md rule, a scan-exception) → propose the exact change, run the system-promotion gate (references/design-system-layers.md), and apply only when the task authorizes system updates or the user approves it. Record a changelog only when persistence is authorized.
  • A generalizable rule for shared rules.md, or a new mechanical check for scan.sh / validate-tokens.py → propose a candidate for the project's configured review candidate log (if one exists). Do not assume a docs/ path or persist during an audit without authorization. A validator check is promoted only after its pass/ + fail/ fixtures pass, exactly like a scan.sh check.

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.