agentleFS
casooncasoon/ai-agent-config/skills/design-systems/SKILL.md

design-systems

Skill1 starsChanged 47 days agoMITView on GitHub

Design-System-Grundlagen — Token-Architektur (Farbe/Spacing/Typografie als benannte Variablen), Komponentenbibliotheken strukturieren, Variable Themes, responsive Component-Patterns. Nutzen beim Aufbau oder der Erweiterung eines Design-Tokens-Sets bzw. einer Komponentenbibliothek. Für die konkrete Dark-Mode-Implementierung siehe darkmode, für Animations-Tokens siehe motion-design, für die 7 UI-Kernregeln siehe ui-design.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation 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.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • KirchliveSkill

    skill-routing

    Decides which of the installed skills a task needs and loads them before the work starts. This skill should be used at the beginning of any multi-step task — build, fix, refactor, migrate, review, plan, release, research, write, design, video — and again at every phase change, after context compaction, and when work moves into a different part of the codebase. Use it for requests like "let's build X", "fix this bug", "refactor Y", "plan the migration", "review this", and also when the user asks which skill applies, why a skill did not fire, or asks to check what is available.

    Also in 5 projects that use this

  • sublimotionSkill

    agent-runtime

    Launch and manage detached agent runs on EKS via the agent-runner CLI. Use when the user says "launch an agent run", "agent runtime", "agent-runner", "run this spec on the cluster", "check run status", "agent run logs", or "stop a run". Do NOT use for writing the agent-runner code itself (edit the sibling ../agent-runner repo), Terraform of the foundation (use terraform-automation), or GPU serving deployments (use infra-deployer).

    Also in 5 projects that use this

  • GoZippySkill

    repo-scout

    Also in 5 projects that use this

  • BenjaminGSkill

    harness-review

    Turn one PR's review comments into harness fixes — classify each cause by the most solid place it can live (codebase, lint, rules, skill), then draft the fixes in a separate PR.

    Also in 5 projects that use this

  • +6 more from naman10parikh

The file

Files
SKILL.md

Design-System-Grundlagen

Token-Architektur — drei Ebenen

EbeneBeispielZweck
Primitive--blue-500: oklch(...)Rohwerte, nie direkt in Komponenten referenzieren
Semantic--color-accent: var(--blue-500)Bedeutung statt Farbe — das wird in Komponenten benutzt
Component--button-bg: var(--color-accent)Optional, nur wenn eine Komponente vom Semantic-Token abweichen muss

Warum drei Ebenen: Ein Rebrush (Primitives ändern sich) bricht nichts, weil Komponenten nie direkt auf Primitives zeigen. Ein Theme-Wechsel (Semantic ändert sich) reicht für die meisten Fälle.

Typische Fehler

  • Komponenten referenzieren Primitives direkt (bg-blue-500 statt bg-accent) → ein Themewechsel erfordert Suchen-und-Ersetzen über die ganze Codebase.
  • Zu viele Semantic-Tokens ("Inflation") — jedes neue Feature bekommt einen eigenen Token statt bestehende wiederzuverwenden. Vor jedem neuen Token prüfen: passt ein bestehender?
  • Tokens ohne Namenskonvention (--blue, --primaryColor, --btn-color gemischt) — eine Konvention projektweit durchziehen (z. B. --{category}-{role}-{variant}).

Komponentenbibliothek strukturieren

  • Atomic-Ansatz nur so weit treiben, wie er echten Wiederverwendungsnutzen bringt — eine "Atom/Molekül/Organismus"-Taxonomie als Ordnerstruktur ist bei kleinen Projekten oft mehr Overhead als Nutzen.
  • Pragmatischer Standard: primitives/ (Button, Input, Badge — keine Business-Logik) vs. patterns/ (ComposedCard, FormGroup — kombinieren Primitives) vs. sections/ (Hero, Pricing — seitenspezifisch, nicht wiederverwendet).
  • Jede Primitive-Komponente exponiert Varianten über Props (variant="primary"|"secondary"), nicht über Klassennamen, die von außen zusammengesetzt werden — sonst entstehen ungültige Kombinationen.

Variable Themes

  • Themes sind Sets von Semantic-Token-Werten, nicht eigene Komponentenversionen.
  • Umsetzung über CSS Custom Properties + Klassen-/Attribut-Scope ([data-theme="dark"], .brand-b), nicht über JS-Runtime-Style-Injection.
  • Ein Theme-Wechsel darf nie Primitive-Tokens anfassen müssen — sonst ist die Trennung aus dem Token-Modell oben nicht sauber.

Responsive Component-Patterns

  • Container Queries statt Media Queries für Komponenten, die in unterschiedlichen Kontexten (Sidebar vs. Hauptspalte) unterschiedlich breit sind — die Komponente kennt ihren eigenen Container, nicht den Viewport.
  • Fluid Typography über clamp() statt fester Breakpoint-Sprünge, wo Werte kontinuierlich skalieren sollen.
  • Komponenten-API bleibt über Breakpoints stabil — kein MobileCard/DesktopCard-Duplikat, stattdessen eine Komponente mit responsivem CSS.

Gotchas

  • Ein Design-System ist nur so gut wie seine Durchsetzung — ungenutzte Primitives ("keiner hält sich dran") sind ein Zeichen, dass die Tokens die echten Bedürfnisse nicht treffen, nicht dass Disziplin fehlt.
  • Dark-Mode-spezifische Umsetzung (Toggle, FOUC-Vermeidung, Kontrastpaare) → [[darkmode]].
  • Animations-/Timing-Tokens → [[motion-design]].
  • Die inhaltlichen Farb-/Spacing-/Typografie-Regeln (60/30/10, 8px-Grid, Type-Scale) → [[ui-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.