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 | $0.00029 | $0.00296 |
| Sonnet 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 8d 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.
- 8d 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 (22 stars, last pushed 5mo ago), licensed MIT. It adds 58 tokens to every session and 593 once invoked, about $0.0003 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.
Other skills, from other repositories
vibe-to-ui
Design systems, motion, mood boards, spatial layout, visual assets, Design Context profiles, and a global Inspiration Library from screenshots, website URLs, inspiration images, music, or fuzzy aesthetic intent. Classifies page archetype, explores 3 product-aware directions before locking tokens (unless exact…
app-icon-studio
Apple app icons: create, generate, evaluate, export, install, or debug iOS AppIcon.appiconset and macOS .icns assets for small-size clarity.
macos-window-architect
Use SwiftUI scene/window modifiers first; switch to macos-appkit-bridge only when SwiftUI cannot express the behavior.
ios-liquid-glass-designer
Implement, refactor, or review iOS 26+ SwiftUI Liquid Glass with native glassEffect, GlassEffectContainer, button styles, availability gates, and non-glass fallbacks.
ios-agent-skill
Expert iOS/Swift developer behavior for AI coding agents. Use when writing, reviewing, or refactoring Swift, SwiftUI, UIKit, or SwiftData code; when designing iOS app architecture (MVVM, Clean Architecture, coordinators, routing); when building UI that must meet Apple's Human Interface Guidelines, contrast, dark-mode…
figma-create-design-system-rules
Generates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design rules", "customize design system guidelines", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server…