design-system

design-system is a skill for Claude Code from rshankras/claude-code-apple-skills. It costs 99 tokens per session (2,693 once invoked), scanned A, original, MIT.

Build-time design-system rules explain how to store an Apple app's colours, spacing, typography, components, loading states, and UI-test identifiers in shared code. A design system is a reusable set of visual rules and interface components.

In plain words
What is it for?
Use them when starting or reviewing SwiftUI interfaces, setting up style tokens and shared components, preparing for a redesign, or enforcing UI code-size and testability rules.
Why use it?
They reduce the amount of code that must change when an app is redesigned and make screens more consistent.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the apple-skills plugin — 182 skills shipped together , and of apple-skills

Good fit Use them when starting or reviewing SwiftUI interfaces, setting up style tokens and shared components, preparing for a redesign, or enforcing UI code-size and testability rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rshankras/claude-code-apple-skills/design-system
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 rshankras/claude-code-apple-skills --skill design-system
Clone the repo
git clone --depth 1 https://github.com/rshankras/claude-code-apple-skills

Made for: Claude Code.

Or install apple-skills, the plugin that ships this one along with the rest of its 182 skills.

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/rshankras/claude-code-apple-skills/design-system/github.svg)](https://agentmods.dev/skills/rshankras/claude-code-apple-skills/design-system)
Your own site
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/design-system"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/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.

agentmods 80×15 button for design-system

Your own site · 80×15
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/design-system"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/design-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,693 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.00099 $0.02693
Opus 5.5 $0.00040 $0.01077
Sonnet 5.5 $0.00020 $0.00539
Haiku 4.5 $0.00010 $0.00269

Measured 1mo ago against content hash 303be22a7af2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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/design-system/SKILL.md · 248 lines

How it starts

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

Design System (build-time rules)

How cheap a redesign is depends almost entirely on how styling was written, not on how big the app is. In a real ~45k-line SwiftUI app going through a full redesign, about a third of the estimate was pure restyling of screens that already worked — because of hand-set font sizes and colours, case applied at call sites, appearance-named tokens, per-screen loading/empty states, 3,000-line view files, and UI tests that matched visible text.

This skill is the set of rules that prevents that. design/typography covers choosing type and Dynamic Type; product/ux-spec writes a DESIGN_SYSTEM.md spec. This skill is about how the code is written so the look can change in one place.

When This Skill Activates

  • Starting the UI of a new app (before the first screen)
  • Setting up colour/spacing/type tokens, or adopting a designer's system
  • A redesign is coming, or restyling is taking longer than it should
  • Reviewing UI code for restyle cost

Styling

  1. No raw style values in views. Fonts, colours, spacing, radius and shadow come from tokens. Allowed: 0, and an icon-size token.
  2. Name tokens by role, mirroring the designer's variables. Text/Primary → textPrimary, Action/Primary/Background → actionPrimaryBackground. Never by appearance (label2, grey600, tagSemibold) — appearance names are exactly what a redesign changes.
  3. One text style = family + size + weight + line height + tracking + case, applied with one modifier. No .textCase, .tracking, .kerning or .uppercased() at call sites. User-generated text keeps its original case — provide an .original variant.
  4. Spacing and radius come from a scale (xxs…xxl, s/m/l/pill), not loose numbers.
  5. Custom fonts: verify registration at launch in debug builds, and scale with Dynamic Type via relativeTo:. A font declared in UIAppFonts but missing from the bundle silently falls back to the system font — teams have shipped that for months.
  6. Enforce 1–3 with SwiftLint (rules/swiftlint.yml), with a baseline that only shrinks (see Enforcement).

Read the full file on GitHub · 248 lines

Files

What ships with it

1 file 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. 1mo ago First seen · 248 lines · 99 tokens per session scan A 303be22a7af2

Subscribe to this mod's changes

design-system is a skill published in the GitHub repository rshankras/claude-code-apple-skills (927 stars, last pushed 26d ago), licensed MIT. It adds 99 tokens to every session and 2,693 once invoked, about $0.0004 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-11-05.

Related

design-system compared with skills from other repositories

design-system next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-systemrshankras/claude-code-apple-skillsSkill92726d agoMITA99Claude Code
scroll-craftnateherkai/scroll-craftSkill5.7k2mo agoMITA177Claude Code
interaction-skillcode-yeongyu/oh-my-openagentSkill71ktodaynoneA104Claude Code, Codex
ui-designmblode/agent-skillsSkill2372d agoMITA86Claude Code, Codex
vertical-site-conventionsrampstackco/claude-skillsSkill1.2k19d agoMITA190Claude Code
avoid-ai-designfunboy322/avoid-ai-designSkill18616d agoMITA176Claude Code, Codex
generic-design-systemtravisjneuman/.claudeSkill116yesterdayMITA60Claude Code