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.
npx skills add fortunto2/solo-factory --skill swiftui-design-systemgit clone --depth 1 https://github.com/fortunto2/solo-factoryWrote 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.
[](https://agentmods.dev/skills/fortunto2/solo-factory/swiftui-design-system)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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
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.
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.
- 1mo ago Changed · +7 tokens per session 6917a8a37016
- 2mo ago Changed · +44 lines 135cfff67eaf
- 3mo ago First seen · 261 lines · 155 tokens per session scan A 73373535e4e6
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.
solo-swiftui-design-system compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| solo-swiftui-design-systemfortunto2/solo-factory | Skill | 19 | today | MIT | A | 162 | Claude Code |
| hk-mobile-app-ui-validationdeepklarity/harness-kit | Skill | 108 | 23d ago | MIT | A | 93 | Claude Code |
| hig-foundationssickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 12 | Claude Code |
| hig-inputssickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 32 | Claude Code |
| display-glasses-with-jetpack-compose-glimmerandroid/skills | Skill | 11k | 10d ago | Apache-2.0 | A | 112 | Claude Code |
| glance-canonical-layoutsandroid/skills | Skill | 11k | 10d ago | Apache-2.0 | A | 56 | Claude Code |
| expo-design-systemexpo/skills | Skill | 4.3k | today | MIT | A | 90 | Claude Code, Codex |