design-system-audit

design-system-audit is a skill for Claude Code from HalidSaglam/saglitzdesign-mcp. It costs 93 tokens per session (1,075 once invoked), scanned A, original, MIT.

A codebase review that checks whether a user interface follows a shared design system—a set of agreed colors, sizes, spacing, corners, and shadows. It counts repeated values and identifies near-duplicates.

In plain words
What is it for?
Use it when taking over a codebase, preparing a redesign, or investigating why screens feel inconsistent. It helps audit styles, group similar values, and move the interface toward shared tokens.
Why use it?
It reveals visual inconsistency that can be hard to describe by eye, such as many slightly different greys or spacing values. This gives a measurable basis for consolidating styles into reusable design tokens.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the saglitzdesign plugin — 9 skills, 10 commands, 2 MCP servers shipped together

Good fit Use it when taking over a codebase, preparing a redesign, or investigating why screens feel inconsistent. It helps audit styles, group similar values, and move the interface toward shared tokens.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/halidsaglam/saglitzdesign-mcp/design-system-audit
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.

Any agent
npx skills add HalidSaglam/saglitzdesign-mcp --skill design-system-audit
Clone the repo
git clone --depth 1 https://github.com/HalidSaglam/saglitzdesign-mcp

Made for: Claude Code.

Or install saglitzdesign, the plugin that ships this one along with the rest of its 9 skills, 10 commands, 2 MCP servers.

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-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/halidsaglam/saglitzdesign-mcp/design-system-audit/github.svg)](https://agentmods.dev/skills/halidsaglam/saglitzdesign-mcp/design-system-audit)
Your own site
<a href="https://agentmods.dev/skills/halidsaglam/saglitzdesign-mcp/design-system-audit"><img src="https://agentmods.dev/badge/skills/halidsaglam/saglitzdesign-mcp/design-system-audit/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.

agentmods 80×15 button for design-system-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/halidsaglam/saglitzdesign-mcp/design-system-audit"><img src="https://agentmods.dev/badge/skills/halidsaglam/saglitzdesign-mcp/design-system-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,075 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00093 $0.01075
Opus 5 $0.00046 $0.00537
Sonnet 5 $0.00019 $0.00215
Haiku 4.5 $0.00009 $0.00108

Measured 10d ago against content hash 9c713b3a2dbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

design-system-audit 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 10d 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.

skills/design-system-audit/SKILL.md · 58 lines

How it starts

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

Design System Audit

A UI rarely looks accidental because any one screen is bad. It looks accidental because the values drift: nineteen greys that should be four, a radius per component, a shadow authored inline every time someone needed a card. Each decision was locally reasonable; the sum is incoherent.

This is measurable. Do not argue about it — count it.

The full audit is one call in the SaglitzDesign MCP (npx saglitzdesign-mcp): audit_design_system(code) returns a consistency score, the value counts per dimension, the near-duplicate colors with the survivor named, off-grid spacing, and token adoption. Then create_design_system, generate_color_system, generate_type_scale, generate_elevation_system and generate_layout_system produce the target scales, and design_lint catches regressions.

Method

  1. Concatenate the real styles. Every stylesheet, theme file, and component with inline styles. Audit the whole surface at once — drift only shows up across files.
  2. Count distinct values per dimension, then compare against a budget:
Dimension Healthy budget Why
Colors ≤ 14 One brand ramp + one neutral ramp + semantic roles. Everything else is derived.
Font sizes ≤ 9 A modular scale has ~8–9 steps. More means sizes were chosen per component.
Border radii ≤ 4 Small, medium, large, pill. Mixed radii are the most common reason a UI reads as accidental.
Shadows ≤ 6 Elevation is a ramp of named levels, not a shadow per component.
Spacing values ≤ 12 One 4/8pt scale.
  1. Collapse near-duplicates. Two colors closer than roughly ΔRGB 12 are the same color to every human being who will ever use the product. Keep the most-used one; replace the rest. This single step usually removes a third of a sprawling palette.
  2. Snap the off-grid values. Anything that isn't a multiple of 4px breaks vertical rhythm. It is felt even when it isn't noticed.
  3. Measure token adoption. Count var(--…) references against raw literals. 0% adoption with a "design system" in the repo means the system exists as documentation, not as code.
  4. Migrate, then lock. Generate the target scales, replace literals with tokens, and add a lint rule so the next hardcoded hex fails review instead of quietly landing.

Read the full file on GitHub · 58 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. 10d ago First seen · 58 lines · 93 tokens per session scan A 9c713b3a2dbf

Subscribe to this mod's changes

design-system-audit is a skill published in the GitHub repository HalidSaglam/saglitzdesign-mcp (5 stars, last pushed 8d ago), licensed MIT. It adds 93 tokens to every session and 1,075 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

logo-creator

Create logos using AI image generation. Discuss style/ratio, generate variations, iterate with user feedback, crop, remove background, and export as SVG. Use when user wants to create a logo, icon, favicon, brand mark, mascot, emblem, or design a logo.

ReScienceLab/opc-skills · 59 tokens

conversational-ux

Design voice and conversational interfaces — dialog flows, error recovery, and persona. Use when the interface speaks and listens rather than being tapped. For graphical input collection, use form-design.

Owl-Listener/designer-skills · 43 tokens

platform-conventions

Design to iOS and Android conventions — what each OS mandates, where they diverge, and when to unify. Use when shipping native apps. For breakpoint adaptation use responsive-design; for matching competitor patterns use jakobs-law (interaction-design).

Owl-Listener/designer-skills · 55 tokens

design-debt-audit

Inventory and prioritise accumulated design inconsistencies across a product. Use when drift has built up over time. For token coverage specifically use design-token-audit (designer-toolkit); for WCAG gaps use accessibility-audit (design-systems).

Owl-Listener/designer-skills · 59 tokens

design-impact-reporting

Communicate design's contribution to business and user outcomes in stakeholder language. Use when reporting results upward. For choosing the metrics in the first place, use metrics-definition (ux-strategy).

Owl-Listener/designer-skills · 44 tokens

design-system-governance

Define how the system evolves — contribution model, versioning, deprecation, and change management. Use when multiple teams contribute. For driving uptake use design-system-adoption (designer-toolkit); for design file history use version-control-strategy (design-ops).

Owl-Listener/designer-skills · 62 tokens