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.
npx skills add tmj-90/gaffer --skill design-systemgit clone --depth 1 https://github.com/tmj-90/gafferWrote 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.
[](https://agentmods.dev/skills/tmj-90/gaffer/design-system)<a href="https://agentmods.dev/skills/tmj-90/gaffer/design-system"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/design-system/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/tmj-90/gaffer/design-system"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/design-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00122 | $0.01686 |
| Opus 5.5 | $0.00049 | $0.00674 |
| Sonnet 5.5 | $0.00024 | $0.00337 |
| Haiku 4.5 | $0.00012 | $0.00169 |
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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Build a systematic design system
The brand skill decides the identity; the frontend-design skill decides how a surface
looks. This pack decides how that look is structured so it scales: a three-layer
token architecture with one source of truth, component specs that cover every state, and
checks that stop raw values leaking back in. Load a reference when you need depth:
| Topic | Reference |
|---|---|
| Layers, naming, dark mode, DTCG JSON, migration from flat tokens | references/token-architecture.md |
| Variants, sizes and state matrices for button/input/card/badge/alert/dialog/table | references/component-specs.md |
| State priority, focus rings, error/loading patterns, ARIA per state | references/states-and-variants.md |
The architecture in one breath
/* PRIMITIVE — raw values, no meaning. Change rarely. */
--blue-600: oklch(55% 0.2 264);
/* SEMANTIC — purpose. The theme seam: light/dark/brand override only this layer. */
--color-primary: var(--blue-600);
/* COMPONENT — per-component knobs, referencing semantic tokens. */
--button-bg: var(--color-primary);
Components consume component or semantic tokens — never a primitive, never a literal. Themes (dark, high contrast, a second brand) re-point semantic tokens and nothing else.
Source of truth. If the repo keeps tokens as W3C Design Tokens Community Group
(DTCG) JSON — the format reached its first stable version, 2025.10, in October 2025 —
those files are the source: tokens carry $value and $type, aliases are written
{color.blue.600}, and a build tool (Style Dictionary or the repo's equivalent)
generates CSS variables, Tailwind theme and native values. Edit the JSON and regenerate;
never hand-edit generated output. If the repo has only CSS custom properties, those are
the source. Do not introduce a second source.
Steps
- Read what exists.
search_lorefor design-system ADRs; find token files (*.tokens.json,tokens/,theme.ts,:rootblocks, Tailwind config), the build command that generates outputs, and two sibling components. Extend the existing system in its idiom; never add a competing one. - Audit before adding. Count literals in component styles (commands below). Every leak you touch is either replaced by an existing token or justifies a new one.
- Place each new token in its layer. Primitive only for a genuinely new raw value;
semantic for a new purpose (
--color-surface-raised,--space-section); component only when one component must diverge. Names describe purpose, not appearance (--color-danger, not--color-red). Colour primitives inoklch(house idiom), type in aclamp()fluid scale, spacing on one base unit (4px or 8px). - Theme at the semantic seam. Dark mode and other themes override semantic tokens in
one block (
[data-theme="dark"],.darkor@media (prefers-color-scheme: dark), per the repo) and setcolor-schemeso native controls and scrollbars follow. A theme that overrides a primitive or a component token means the seam is in the wrong place. - Verify contrast per theme. For every foreground/background semantic pair actually
used (text on surface, text on primary, border on surface, focus ring on surface),
compute the WCAG contrast ratio in each theme: 4.5:1 for body text, 3:1 for large text,
UI boundaries and focus indicators.
oklchlightness is not the WCAG ratio — compute it (a script, the repo's checker, or a test). Record the table. - Specify components fully. Variants, sizes (explicit height, padding, font token),
and the state matrix — default, hover, focus-visible, active, disabled, loading, error,
plus selected/checked where relevant — with the ARIA each state exposes. Priority when
several apply: disabled > loading > error > active > focus > hover > default. Focus is
always visible (
:focus-visiblering from--color-ring, neveroutline: nonealone). Details: the references. - Recommending a system for a new product: reason from the product, not a kit —
(a) pattern and density (marketing, data-dense dashboard, transactional flow),
(b) direction (defer to
brand), (c) palette posture (semantic roles incl. success/ warning/danger/info; dark mode only if users need it), (d) accessibility and performance targets stated up front. Output a short rationale plus the token and component scaffold; hand visual execution tofrontend-design. - Verify and evidence. Regenerate token outputs if the repo builds them and confirm
the diff is only what you intended; run lint, type-check and tests; run the leak
checks; render the changed components in every theme through the repo's component or
screenshot tests where they exist. Record per-AC evidence with the
record-evidenceskill (leak count before/after, contrast table), then stop.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago Changed · -24 lines · +16 tokens per session d2655377fd3c
- 3mo ago First seen · 132 lines · 106 tokens per session scan A 4e1131425f79
design-system is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 122 tokens to every session and 1,686 once invoked, about $0.0005 per session on Opus 5.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-08-31.
design-system compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| design-systemtmj-90/gaffer | Skill | 1 | 4d ago | Apache-2.0 | A | 122 | Claude Code, Codex |
| maintaining-dev-playgrounddork-labs/dorkos | Skill | 11 | today | MIT | A | 95 | Claude Code |
| sota-frontend-designmartinholovsky/SOTA-skills | Skill | 31 | yesterday | CC-BY-4.0 | A | 164 | Claude Code |
| design-systemnicohodt/claude-code-ui-ux-skill | Skill | 19 | 3mo ago | MIT | A | 52 | Claude Code |
| ui-stylingnicohodt/claude-code-ui-ux-skill | Skill | 19 | 3mo ago | MIT | A | 90 | Claude Code |
| css-expertginkida/rustyhand | Skill | 21 | 2mo ago | MIT | A | 21 | Claude Code, Codex |
| frontend-aestheticsnek1987/auto-agent-harness | Skill | 4 | 8mo ago | none | A | 47 | Claude Code |