solo-swiftui-design-system

solo-swiftui-design-system is a skill for Claude Code from fortunto2/solo-factory. It costs 162 tokens per session (4,134 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 — 71 skills, 2 commands, 2 agents, 5 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 71 skills, 2 commands, 2 agents, 5 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 162 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,134 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.00162 $0.04134
Opus 5.5 $0.00065 $0.01654
Sonnet 5.5 $0.00032 $0.00827
Haiku 4.5 $0.00016 $0.00413

Measured 1mo ago against content hash 6917a8a37016, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo ago.

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. 1mo ago Changed · +7 tokens per session 6917a8a37016
  2. 2mo ago Changed · +44 lines 135cfff67eaf
  3. 3mo 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 (19 stars, last pushed today), licensed MIT. It adds 162 tokens to every session and 4,134 once invoked, about $0.0006 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-30.

Related

solo-swiftui-design-system compared with skills from other repositories

solo-swiftui-design-system next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
solo-swiftui-design-systemfortunto2/solo-factorySkill19todayMITA162Claude Code
hk-mobile-app-ui-validationdeepklarity/harness-kitSkill10823d agoMITA93Claude Code
hig-foundationssickn33/agentic-awesome-skillsSkill51ktodayMITA12Claude Code
hig-inputssickn33/agentic-awesome-skillsSkill51ktodayMITA32Claude Code
display-glasses-with-jetpack-compose-glimmerandroid/skillsSkill11k10d agoApache-2.0A112Claude Code
glance-canonical-layoutsandroid/skillsSkill11k10d agoApache-2.0A56Claude Code
expo-design-systemexpo/skillsSkill4.3ktodayMITA90Claude Code, Codex