design-system

design-system is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 106 tokens per session (1,849 once invoked), scanned A, original, Apache-2.0.

A method for organizing a frontend’s colors, spacing, components, and interaction states into reusable rules.

In plain words
What is it for?
Use it to define design tokens, component variants, loading and error states, focus behavior, dark mode, and accessibility details.
Why use it?
It prevents each screen or component from developing its own styling and helps the interface stay consistent as it grows.

Skill for Claude CodeCodex

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/tmj-90/gaffer/design-system
Any agent
npx skills add tmj-90/gaffer --skill design-system
Clone the repo
git clone --depth 1 https://github.com/tmj-90/gaffer

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/tmj-90/gaffer/design-system.svg)](https://agentmods.dev/skills/tmj-90/gaffer/design-system)
Your own site
<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="Measured on agentmods" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,849 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 $0.00106 $0.01849
Opus 5 $0.00053 $0.00924
Sonnet 5 $0.00021 $0.00370
Haiku 4.5 $0.00011 $0.00185

Measured 4d ago against content hash 4e1131425f79, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

runner/skills/design-system/SKILL.md · 132 lines

How it starts

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

Build a systematic design system

frontend-design decides how the product should look; this pack decides how that look is structured so it scales. A design system is the disciplined layer underneath the aesthetic: a three-tier token architecture, component specs that cover every interactive state, and a deliberate match between the product's needs and the system it gets. Get this right and every later surface reuses tokens instead of re-inventing styling per component.

Keep SKILL.md lean — the depth lives in the references; load the one you need on demand:

Topic Reference
Three-layer token architecture (primitive → semantic → component), dark mode, naming references/token-architecture.md
Component specs — variants, sizes, full state matrices for button/input/card/etc. references/component-specs.md
Interactive states + variant patterns — state priority, focus rings, error/loading, a11y references/states-and-variants.md

The token architecture in one breath

Three layers, each referencing the one below — never skip a layer:

/* PRIMITIVE — raw values, no meaning. Change rarely. */
--blue-600: oklch(55% 0.20 264);
/* SEMANTIC — purpose aliases. This is the theme-switch seam. */
--color-primary: var(--blue-600);
/* COMPONENT — per-component knobs. Change freely. */
--button-bg: var(--color-primary);

Why it matters: theming happens at the semantic layer (override --color-primary, every component follows). Per-component tweaks happen at the component layer without disturbing anyone else. Components reference component or semantic tokens — never a primitive directly, and never a raw hex/px. See references/token-architecture.md.

House idiom: Gaffer uses oklch for colour and clamp() for fluid type at the primitive layer (perceptual uniformity, predictable contrast). Adapt the references' hex examples to oklch to stay consistent with brand and frontend-design.

Read the full file on GitHub · 132 lines

Files

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.

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. 4d ago First seen · 132 lines · 106 tokens per session scan A 4e1131425f79

Subscribe to this mod's changes

design-system is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 4d ago), licensed Apache-2.0. It adds 106 tokens to every session and 1,849 once invoked, about $0.0005 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-08-31.

Related

Other skills, from other repositories

frontend-aesthetics

Use when creating UI designs to avoid generic "AI slop" aesthetics. Enforces distinctive typography, cohesive color systems, purposeful motion, and atmospheric backgrounds. Critical for landing pages, dashboards, and branded interfaces.

nek1987/auto-agent-harness · 47 tokens

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI).…

nek1987/auto-agent-harness · 77 tokens

color-contrast-checker

Validate color contrast checker operations. Auto-activating skill for Frontend Development. Triggers on: color contrast checker, color contrast checker Part of the Frontend Development skill category. Use when working with color contrast checker functionality. Trigger with phrases like "color contrast checker", "color…

nek1987/auto-agent-harness · 67 tokens

css-module-generator

Generate css module generator operations. Auto-activating skill for Frontend Development. Triggers on: css module generator, css module generator Part of the Frontend Development skill category. Use when working with css module generator functionality. Trigger with phrases like "css module generator", "css generator"…

nek1987/auto-agent-harness · 65 tokens

dashboard-creator

Create HTML dashboards with KPI metric cards, bar/pie/line charts, progress indicators, and data visualizations. Use when users request dashboards, metrics displays, KPI visualizations, data charts, or monitoring interfaces.

nek1987/auto-agent-harness · 47 tokens

css-colors

Instructions on how to add new colors for CSS rules.

nek1987/auto-agent-harness · 14 tokens