design-system

design-system is a skill for Claude Code, Codex from WrongStack/WrongStack. It costs 248 tokens per session (3,740 once invoked), scanned A, original, MIT.

A workflow for choosing and applying a design system before building a user interface. A design system is a shared set of rules for colors, spacing, typography, shapes, and motion.

In plain words
What is it for?
Use it to select a visual kit, turn its settings into theme files, build against those settings, and check for styling drift.
Why use it?
It prevents interfaces from becoming a collection of inconsistent, hand-picked styles with no shared source of truth.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/wrongstack/wrongstack/design-system
Any agent
npx skills add WrongStack/WrongStack --skill design-system
Clone the repo
git clone --depth 1 https://github.com/WrongStack/WrongStack

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-system

README.md
[![agentmods](https://agentmods.dev/badge/skills/wrongstack/wrongstack/design-system.svg)](https://agentmods.dev/skills/wrongstack/wrongstack/design-system)
Your own site
<a href="https://agentmods.dev/skills/wrongstack/wrongstack/design-system"><img src="https://agentmods.dev/badge/skills/wrongstack/wrongstack/design-system.svg" alt="Measured on agentmods" height="20"></a>
Per session 248 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,740 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00248 $0.03740
Opus 5 $0.00124 $0.01870
Sonnet 5 $0.00050 $0.00748
Haiku 4.5 $0.00025 $0.00374

Measured 2d ago against content hash 583341d17145, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

design-system scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/core/skills/design-system/SKILL.md · 321 lines

How it starts

The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Design System Engine — WrongStack

The contract

Default-framework UI is a failure, not a neutral starting point. Unstyled shadcn, bg-blue-500, stock Bootstrap gray, or "I'll pick colors as I go" all produce the same forgettable result and leave the codebase with no source of truth.

WrongStack ships a Design Studio: 50+ curated kits, each a complete design system — not a palette. Every kit carries its own radius scale, spacing rhythm, type ramp, motion curves, and elevation steps. The job here is to commit to ONE kit before any markup exists, push its tokens into a real file the build reads, and then write UI that only ever references those tokens.

Tokens in a file beat design intentions in a prompt. That is the whole idea.


The loop (never reorder; skip only explicit exceptions)

list → use → tune → materialize → BUILD → verify → fix drift

Steps 1–3 are cheap and happen before the first line of JSX/Dart/Swift. tune is optional when the chosen kit already fits; otherwise keep the order intact. If a UI file has already been written without a committed kit, stop, run the loop, and restyle against the tokens rather than patching colors by hand.


Step 1 — Commit to a kit

design {action:"list"}                      # browse available kits
design {action:"foundations"}               # read the stack-agnostic baseline
design {action:"use", kit:"<id>", stack:"web|react-native|flutter|swiftui|compose"}

use loads the kit's full spec for that stack — pass the right stack or the materialized output will be the wrong shape.

Target stack
Next.js, Vite, Remix, any Tailwind v4 / shadcn web app web
Expo / bare React Native react-native
Flutter (any platform) flutter
iOS native swiftui
Android native compose

Picking the kit

If the user pinned one with /design <kit-id>, that decision is final — use it and move on. Otherwise:

  1. Run design {action:"list"} and read the kit descriptions. Do not pick from memory; the roster changes.
  2. Match the kit to the product's tone, not to personal taste. Useful signals to reason from: audience (consumer vs. operator vs. developer), information density (marketing page vs. data table), emotional register (playful, editorial, clinical, brutalist, corporate-trustworthy), and any brand assets the user already has.
  3. If two or three kits genuinely fit, name them with a one-line rationale each and ask. A ten-second question beats a full rebuild.
  4. If the user gives zero signal and does not want to choose, pick the kit that best fits the product archetype, say which one and why in one sentence, and continue. Silence is not permission to fall back to defaults.

Read the full file on GitHub · 321 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 321 lines · 248 tokens per session scan A 583341d17145

Subscribe to this mod's changes

design-system is a skill published in the GitHub repository WrongStack/WrongStack (284 stars, last pushed today), licensed MIT. It adds 248 tokens to every session and 3,740 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

research-repository

Build a repository that makes findings findable, reusable, and cumulative across teams. Use when the same research keeps getting redone. For synthesising one study, use affinity-diagram.

Owl-Listener/designer-skills · 43 tokens

peak-end-rule

Apply the Peak-End Rule — a flow is remembered by its most intense moment and its last. Use when designing completion, celebration, or cancellation moments. For sustaining engagement mid-flow, use zeigarnik-effect.

Owl-Listener/designer-skills · 47 tokens

form-design

Design a form end to end — field order, grouping, validation, and completion. Use when the artifact is a form. For product-wide error strategy use error-handling-ux; for first-run signup use onboarding-design.

Owl-Listener/designer-skills · 51 tokens

law-of-common-region

Apply the Law of Common Region — a shared container, background, or border groups elements regardless of spacing. Use when grouping must survive a tight layout. For grouping by spacing alone, use law-of-proximity.

Owl-Listener/designer-skills · 48 tokens

readable-measure

Set line length and measure for comfortable reading across type sizes and breakpoints. Use when tuning body text. Covers measure only — for the full size and weight scale, use typography-scale.

Owl-Listener/designer-skills · 44 tokens

critique-visual-hierarchy

Critique a rendered screen's hierarchy — entry point, eye flow, weight distribution, and emphasis. Use when attention lands in the wrong place. For establishing hierarchy in new work, use visual-hierarchy (ui-design).

Owl-Listener/designer-skills · 53 tokens