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 duongductrong/cursor-kit --skill swiftui-designgit clone --depth 1 https://github.com/duongductrong/cursor-kitWrote 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/duongductrong/cursor-kit/swiftui-design)<a href="https://agentmods.dev/skills/duongductrong/cursor-kit/swiftui-design"><img src="https://agentmods.dev/badge/skills/duongductrong/cursor-kit/swiftui-design/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/duongductrong/cursor-kit/swiftui-design"><img src="https://agentmods.dev/badge/skills/duongductrong/cursor-kit/swiftui-design.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.00058 | $0.00593 |
| Opus 5.5 | $0.00023 | $0.00237 |
| Sonnet 5.5 | $0.00012 | $0.00119 |
| Haiku 4.5 | $0.00006 | $0.00059 |
Grade A, and why
SwiftUI Design 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 3mo 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.
What it actually says
SwiftUI Design Thinking & Architecture
1. Core Philosophy: The Declarative Mindset
You are an expert SwiftUI Engineer. When generating code, you must adhere to these core principles:
- View = f(State): Never mutate UI directly. Mutate state, let UI react.
- Single Source of Truth: Data must have ONE owner. Use
@Bindingor@Environmentfor passing data, never duplicate it. - Composition over Complexity: Break views down. If a
bodyexceeds 50 lines, extract subviews. - Modern Concurrency: Prefer the Observation framework (
@Observable) over genericObservableObject(unless supporting iOS 16-).
2. Platform Context Awareness
Before writing code, analyze the user's prompt to determine the target platform.
- If iOS/Mobile: Apply rules from
references/ios.md. - If macOS/Desktop: Apply rules from
references/macos.md. - If Cross-platform: Use
#if os(iOS)or responsive design techniques (ViewThatFits) to adapt.
3. Data Flow Standards
- State Ownership:
- Use
@Statefor local, view-specific ephemeral state (toggles, text input). - Use
@State+@Observable classfor Feature/Screen Logic (ViewModels). - Use
@Environmentfor global dependencies (DI).
- Use
- Avoid:
@StateObject/@ObservedObject(Legacy).- Passing huge ViewModels into small leaf views (Pass only the necessary data or binding).
4. Coding Style & Aesthetics
- Avoid "AI Slop": Do not use generic, unstyled lists or default blue buttons unless requested. Apply thoughtful padding, corner radius, and typography.
- Hardcoded Values: Isolate colors, fonts, and dimensions in constants or extensions (
Color+Design.swift). - Previewability: Every View MUST have a
#Preview. Mock data must be realistic, not "Lorem Ipsum".
5. Performance Guardrails
- Identifiable: Always ensure data in
ForEachisIdentifiable. - Lazy Loading: Use
LazyVStack/LazyHStackfor unbounded lists. - Stable Views: Ensure
structviews are cheap to init. Put heavy initialization logic in.taskor ViewModelinit.
What ships with it
2 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.
- 3mo ago First seen · 39 lines · 58 tokens per session scan A 230762c3cddc
SwiftUI Design is a skill published in the GitHub repository duongductrong/cursor-kit (23 stars, last pushed 8mo ago), licensed MIT. It adds 58 tokens to every session and 593 once invoked, about $0.0002 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.
SwiftUI Design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| SwiftUI Designduongductrong/cursor-kit | Skill | 23 | 8mo ago | MIT | A | 58 | Claude Code, Codex |
| maui-themingrootcastleco/rei-skills | Skill | 11 | 7d ago | none | A | 157 | Claude Code, Codex |
| themed-color-pickerrootcastleco/rei-skills | Skill | 11 | 7d ago | none | A | 36 | Claude Code, Codex |
| cometchat-flutter-v6-customizationcometchat/cometchat-skills | Skill | 182 | 17d ago | MIT | A | 89 | Claude Code |
| sleek-design-mobile-appssleekdotdesign/agent-skills | Skill | 604 | 1mo ago | MIT | A | 30 | Claude Code, Codex |
| compose-uiMeet-Miyani/compose-skill | Skill | 306 | 22d ago | MIT | A | 148 | Claude Code |
| swiftui-animation-matchRayFernando1337/rayfernando-skills | Skill | 132 | yesterday | Apache-2.0 | A | 73 | Claude Code |