solo-swiftui-design-system

solo-swiftui-design-system is a skill for Claude Code from fortunto2/solo-factory. It costs 155 tokens per session (4,127 once invoked), scanned A, original, MIT.

A SwiftUI design-system guide covering reusable rules for layout, spacing, typography, corners, animation, surfaces, and components. SwiftUI is Apple's framework for building app interfaces.

In plain words
What is it for?
Use it to establish a 12-column layout grid, define design tokens, build a component gallery, and check that the system stays consistent.
Why use it?
It keeps interface elements aligned and prevents scattered one-off values from making the design inconsistent.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Part of the solo plugin — 45 skills, 2 commands, 3 agents, 3 hooks shipped together

Good fit Use it to establish a 12-column layout grid, define design tokens, build a component gallery, and check that the system stays consistent.

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

Made for: Claude Code.

Or install solo, the plugin that ships this one along with the rest of its 45 skills, 2 commands, 3 agents, 3 hooks.

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 solo-swiftui-design-system

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fortunto2/solo-factory/swiftui-design-system"><img src="https://agentmods.dev/badge/skills/fortunto2/solo-factory/swiftui-design-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 155 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,127 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.00155 $0.04127
Opus 5 $0.00077 $0.02063
Sonnet 5 $0.00031 $0.00825
Haiku 4.5 $0.00015 $0.00413

Measured today against content hash 135cfff67eaf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

solo-swiftui-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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/design_migrate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/swiftui-design-system/SKILL.md · 305 lines

How it starts

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

swiftui-design-system — one scale, and the guards that keep it

A design system is not a colour file. It is four scales, one grid, one catalogue and one tripwire — and the tripwire is what makes it survive the next feature. Everything here is native SwiftUI: no design-system framework is worth taking on, because the platform is already built for this (Environment + style protocols + containerRelativeFrame).

Apple ships its own SwiftUI skills inside Xcode 27 — invalidation, ForEach identity, @Observable, Liquid Glass — as plain markdown any agent can read with no Xcode running. On anything about correctness or update cost they outrank this file, and they say so in their own header. Where they are, what they cover, and the rules that most often hit real code: references/apple-xcode-skills.md.

Reach for this when the symptom is "the screens look related and never line up". Measure before you believe it — see step 1.

Workflow

1. Count what is actually there

Never start from taste. Start from the inventory, because the number is the argument:

V=path/to/Views
grep -rhoE '\.padding\((\.[a-z]+, )?[0-9]+(\.[0-9])?\)' $V | grep -oE '[0-9.]+' | sort -n | uniq -c | sort -rn
grep -rhoE 'spacing: [0-9]+(\.[0-9])?' $V | sort | uniq -c | sort -rn
grep -rhoE 'cornerRadius: [0-9]+(\.[0-9])?' $V | sort | uniq -c | sort -rn
grep -rhoE '\.font\(\.[a-zA-Z0-9]+\)|\.font\(\.system\([^)]*\)\)' $V | sort | uniq -c | sort -rn
grep -rhoE '\.spring\(response: [0-9.]+, dampingFraction: [0-9.]+\)' $V | sort -u | wc -l

A real app measured this way: 27 padding values, 19 spacings, 23 radii, 48 font spellings, 21 springs — including .system(size: 17.5), 13.5, 12.5. Half a point is invisible alone and lethal in a set: it is exactly the amount by which two labels fail to look like the same label.

2. Write the scales — namespace enums, one file each

Views/Design/
  Space.swift       4-point steps: hair(2) xs sm md lg xl xxl xxxl huge + touchTarget(44)
  Grid.swift        12 columns, gutter, margin, gridSpan(_:), gridMargins(), GridOverlay
  Typography.swift  8 steps, each a platform TextStyle + Metric for sizes a font can't set
  Radii.swift       5 radii + shape(_:) — .continuous, always
  Motion.swift      6 curves + the never-repeatForever rule
  Surface.swift     3–4 levels (console/panel/inset/field), one recipe each

Read the full file on GitHub · 305 lines

Files

What ships with it

4 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. today Changed · +44 lines 135cfff67eaf
  2. 12d ago First seen · 261 lines · 155 tokens per session scan A 73373535e4e6

Subscribe to this mod's changes

solo-swiftui-design-system is a skill published in the GitHub repository fortunto2/solo-factory (18 stars, last pushed yesterday), licensed MIT. It adds 155 tokens to every session and 4,127 once invoked, about $0.0008 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-30.

Related

Other skills, from other repositories

ui-mobile

Mobile UI patterns - React Native, iOS/Android, touch targets.

alinaqi/maggy · 17 tokens

app-ui-design

Mobile app UI design expert for iOS and Android. Use when designing app interfaces, creating design systems, ensuring accessibility, or following platform guidelines. Covers Material Design 3, Human Interface Guidelines, color theory, typography, and 2025 trends.

majiayu000/spellbook · 54 tokens

hig

Applies Human Interface Guidelines (HIG) principles — Hierarchy, Harmony, and Consistency — to UI/UX designs to ensure intuitive and cohesive interfaces / Menerapkan prinsip Human Interface Guidelines (HIG) — Hierarchy, Harmony, dan Consistency — pada desain UI/UX untuk memastikan antarmuka yang intuitif dan kohesif.

roedyrustam/vibes-plug · 74 tokens

designmatch

Use when matching a React Native screen to a Claude Design HTML canonical at ≥95% visual parity on real Android/iOS hardware — closes the loop with a VQA stub mode, Playwright canonical renderer at 1080×2444, and a dual-metric pixelmatch + SSIM diff harness producing composite triptychs.

randomittin/heimdall · 69 tokens

axiom-hig-ref

Reference — Comprehensive Apple Human Interface Guidelines covering colors (semantic, custom, patterns), backgrounds (material hierarchy, dynamic), typography (built-in styles, custom fonts, Dynamic Type), SF Symbols (rendering modes, color, axiom-localization), Dark Mode, accessibility, and platform-specific…

ComeOnOliver/skillshub · 64 tokens

axiom-accessibility-diag

Use when fixing VoiceOver issues, Dynamic Type violations, color contrast failures, touch target problems, keyboard navigation gaps, or Reduce Motion support - comprehensive accessibility diagnostics with WCAG compliance, Accessibility Inspector workflows, and App Store Review preparation for iOS/macOS.

ComeOnOliver/skillshub · 57 tokens