design-system
Skill1 starsChanged 5 months agoMITView on GitHub
Defines and governs the reusable design language of a Next.js B2B SaaS or ERP product — design principles, semantic token roles, typography and spacing scales, color semantics, component taxonomy, anatomy, variants and states, shared UX patterns, naming, documentation, contribution rules, deprecation and migration. Use when creating or evolving one design language across modules, standardizing modules that have drifted apart, stopping duplicate buttons/cards/tables, defining component variants and status semantics, or writing component usage contracts. Not for one workflow's UX (see product-ux-design), one screen's composition (see visual-ui-design), dashboard KPI and chart decisions (see dashboard-data-design), or the Tailwind v4 @theme variables and cva code that implement the system (see tailwind-shadcn).
108 other projects use a version of this.
Adopted by
Most recently taken up by
- nextlevelbuilder/ui-ux-pro-max-skilltheir own version, first seen Nov 18, 2026
- ekajaya740/skillstheir own version, first seen Oct 6, 2026
- BUGLAN/skillstheir own version, first seen Oct 6, 2026
- HunLuanZhiZhu/Game-Studios-Plugintheir own version, first seen Oct 5, 2026
- hmjBill/skillstheir own version, first seen Oct 5, 2026
- Littlpinguin/marketing-cockpit-templatetheir own version, first seen Oct 5, 2026
Used with
Projects with it also use setup-engine, playtest-report 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.
CoralGameSkillsetup-engine
Configure the project's game engine and version. Pins the engine in CLAUDE.md, detects knowledge gaps, and populates engine reference docs via WebSearch when the version is beyond the LLM's training data.
Also in 7 projects that use this
CoralGameSkillplaytest-report
Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.
Also in 6 projects that use this
cenconq25Skillasset-spec
Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.
Also in 5 projects that use this
cenconq25Skillcreate-control-manifest
Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.
Also in 5 projects that use this
- +3 more from CoralGame
- +5 more from cenconq25
Other versions108 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 108
- nextlevelbuilder/ui-ux-pro-max-skill★ 156ksame name
- getsentry/sentry★ 45ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- microsoft/power-platform-skills★ 961same name
- Archive228/loopkit★ 756same name
- pixel-cellar/Claude-Code-Game-Studios★ 338same name
- loulanyue/awesome-claude-notes★ 272same name
- genkovich/sdd★ 170same name
- cdavid817/vanehub-ai★ 116same name
98 more not listed
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 repository49 other files it gives its agents.
- accessibilitySkill
- ai-evalsSkill
- ai-integrationSkill
- architecture-decisionsSkill
- audit-loggingSkill
- aws-servicesSkill
- browser-e2e-testingSkill
- celery-tasksSkill
- changelogSkill
- ci-cdSkill
- codebase-guideSkill
- code-reviewSkill
- commit-messageSkill
- cookie-auth-csrfSkill
- dashboard-data-designSkill
- db-concurrencySkill
- debugSkill
- dependency-auditSkill
- deploy-awsSkill
- drf-apiSkill
- drf-zod-contractSkill
- frontend-perfSkill
- git-workflowSkill
- i18n-rtlSkill
- incident-responseSkill
- migrationsSkill
- money-decimalSkill
- multi-tenancySkill
- nextjs-moduleSkill
- observabilitySkill
- perf-reviewSkill
- production-readinessSkill
- product-ux-designSkill
- rbac-permissionsSkill
- react-querySkill
- security-reviewSkill
- skill-authoringSkill
- tailwind-shadcnSkill
- tenant-session-switchSkill
- threat-modelingSkill
- verifySkill
- version-checkSkill
- visual-ui-designSkill
- webhook-handlerSkill
- websockets-channelsSkill
- write-testsSkill
- zod-formsSkill
- zustand-stateSkill
- example-skillSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 98 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Keep a small primitive foundation — palette values, spacing steps, type measurements — and expose semantic roles (danger, surface, …
“Common” is measured: kept by at least 6 in 10 of the 98 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.
Files
Design system (one language, governed)
When to use
Making the whole product consistent and reusable over time — creating or
evolving the shared design language, standardizing modules that have drifted
apart, or stopping teams from shipping a fourth button. One screen's design
belongs to visual-ui-design; the CSS variables and component code that
implement the system belong to tailwind-shadcn. This skill decides what
exists, what things mean, and how the system stays coherent as it grows.
Pattern
A design system is semantics plus governance, not a component collection.
Keep a small primitive foundation — palette values, spacing steps, type
measurements — and expose semantic roles (danger, surface,
page-title) on top of it as the product-facing vocabulary that means the
same thing in every module. Feature code consumes semantic roles, never raw
primitives or feature-specific names (invoice-red), and every shared
component has a written contract. Without contribution rules, duplicate
detection, and a deprecation path, a token file is just a prettier way to
drift.
Workflow
- Audit what exists. Inventory tokens, colors, typography, spacing, radii, shadows, components, variants — then the duplicates, inconsistent states, naming conflicts, accessibility and RTL gaps, and undocumented one-offs. Standardization starts from evidence, not from a blank palette.
- Write testable principles. "Dense but readable", "consistent meaning — one semantic per color role", "accessible by default", "RTL-ready", "composition over new components". Each principle must be checkable in review; a principle that cannot reject a proposal is a slogan.
- Define semantic token roles — background, surface, elevated surface, foreground, muted foreground, border, focus ring (one role, applied uniformly), selection, primary action, secondary action, destructive action, success, warning, danger, information, disabled, chart series — each with a paired foreground and a value in every theme scope (a role missing its dark value is a bug). Roles over raw values; meanings over feature names; raw palette values live one tier below the roles, so a rebrand changes values without renaming a single role.
- Set the typography scale — display, page title, section title, body, supporting text, labels, table values, numeric emphasis (tabular figures), code/reference — with weight, line height, and responsive behavior. Arabic typically needs more vertical room than Latin (deep descenders, stacked diacritics) and has no native italic convention — plan a taller line height, choose a non-slanting emphasis strategy (weight, color role), and verify every text style in both scripts, not just the Latin specimen.
- Set spacing and layout rules. One base rhythm, component and page spacing derived from it, dense and comfortable modes for operational screens, content widths, and the grid. Every value earns a rationale.
- Organize the component taxonomy — primitives, form controls, feedback, navigation, data display, overlays, page patterns, domain compositions — and classify each proposal as a primitive, a variant of an existing component, a composition, or a feature-specific component that stays local. Three real usages before promotion; premature abstraction is how systems rot.
- Write component contracts (see Example) — purpose, anatomy, props concept, variants, states, content rules, accessibility and RTL requirements, responsive behavior, and explicit misuse examples. Use the WAI-ARIA APG pattern for each interactive component as the design reference and carry its keyboard map and state semantics as acceptance criteria — the Radix primitives under shadcn/ui are built to follow those practices and expose state as data-state/ARIA attributes, so define states in that vocabulary, lean on the primitive for focus trap, dismissal and arrow-key behavior, and verify the specific widget rather than assuming full coverage.
- Codify shared patterns — page headers, filter bars, forms, tables, detail screens, status communication, empty states, errors, destructive confirmation, background jobs, permission-denied, search, navigation, dashboard shells — so modules assemble from patterns instead of reinventing.
- Govern. Proposal and review process, ownership, naming rules, test and documentation requirements per component, versioning, deprecation with a migration path, an exceptions register, and duplicate detection in review.
- Hand implementation to
tailwind-shadcn— the @theme OKLCH variables, cva variants, shared component code, and their tests. Definitions live here; code lives there; neither duplicates the other.
Example
# Component contract — StatusBadge (shared primitive, data-display)
purpose one consistent way to show a record's lifecycle state across all modules
anatomy container · optional leading dot · label (text always present, never dot alone)
props status (semantic) · size (sm | md) · optional count
variants neutral | info | success | warning | danger ← semantic roles, not per-feature
states default · with-count · truncated (full text on hover/focus)
content one or two words, from an i18n key — no free prose, no raw backend enums
a11y meaning never carried by color alone — the label is the meaning (WCAG 1.4.1)
rtl leading dot flips with dir via logical margins
misuse ✗ a new InvoiceBadge/PayrollBadge per module — add a variant here instead
✗ danger for "important but fine" — danger means loss or blocked work
implement tailwind-shadcn — cva variants over the semantic tokens defined aboveAdapt to your repo
Audit before adopting — the token roles above are a starting vocabulary, and your product may genuinely need more chart-series or elevation roles (each addition needs the same rationale). Confirm the primitive library (Radix under shadcn/ui here) so contracts can lean on its keyboard and focus behavior instead of restating it. Scale governance to team size: a solo team needs the naming rules and duplicate check, not a committee. Keep dense mode real — measure it on actual operational screens, not specimen pages.
Gotchas
- A design system without governance is a component collection with a README. Steps 9–10 are the system.
- Duplicates are a discoverability failure, not a discipline failure — if finding the existing table pattern takes longer than building a new one, people will build. Naming and documentation are the countermeasure.
- Feature-named tokens (
invoice-red,payroll-green) recreate the drift the system exists to end. Semantic roles only. - Promoting a component after one usage bakes accidental requirements into a shared contract; wait for three real call sites.
- Deprecation without a migration path is a permanent fork — every removal ships with its replacement mapping and a deadline.
- An exceptions register beats silent exceptions: a team that cannot get a ruling will fork quietly.
- Consumer-app spacing imported into ERP screens breaks the "dense but readable" contract operators depend on — density modes are part of the system, not per-team taste.
- This skill defining CSS variables or cva code is a boundary violation —
decide here, implement in
tailwind-shadcn, audit accessibility inaccessibility.
See also
tailwind-shadcnvisual-ui-designproduct-ux-designdashboard-data-designaccessibilityi18n-rtl
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
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.

