SwiftUI Agent Skills Guide
Two popular iOS AI coding libraries take very different approaches: one turns Apple documentation inside Xcode into a source of truth, while the other splits modern Apple development into 84 independently installable skills.
If you only choose one: pick ameyalambat128/swiftui-skills for Apple-authored guidance and fewer API hallucinations; pick dpearson2699/swift-ios-skills for broad iOS engineering coverage and precise framework routing. The strongest combination: use the first as your source-of-truth layer and install only the 5–10 specialized skills your project needs from the second.
The most common problem with AI-generated SwiftUI is not invalid syntax, but code that merely looks correct: unclear state ownership, outdated navigation patterns, fuzzy concurrency boundaries, or an API that does not exist. Agent Skills turn a general model into a collaborator with explicit Apple-platform engineering constraints.
What exactly is an Agent Skill?
A Skill is typically a directory containing a SKILL.md file. It tells coding agents such as Codex, Claude Code, and Cursor when to activate a capability, which references to read first, what rules to follow, and how to format the result. It is neither an Xcode extension nor a Swift package; think of it as a team engineering handbook plus a focused knowledge pack for AI.
Unlike one enormous prompt containing every rule, Skills can load only when relevant. Animation guidance appears for SwiftUI animation work, StoreKit purchase and verification rules appear for commerce tasks, and performance guidance loads when debugging scrolling. This task-specific context is usually more accurate and token-efficient.
The two approaches at a glance
| Dimension | ameyalambat128/swiftui-skills | dpearson2699/swift-ios-skills |
|---|---|---|
| Format | One aggregate Skill | 84 independent Skills in 9 categories |
| Primary source | Apple AdditionalDocumentation extracted from local Xcode | Maintainer-authored guidance, examples, and references |
| Coverage | SwiftUI and new Apple platform capabilities | End-to-end iOS engineering, from SwiftUI and data to AI, hardware, and release |
| Updates | Re-extract local Xcode documentation | Update individual Skills from the repository |
| Best for | Teams prioritizing Apple-authored guidance, availability, and review evidence | Teams that want framework-specific capabilities across the full development lifecycle |
| License | MIT | PolyForm Perimeter 1.0.0 |
Approach one: turn Xcode documentation into an AI source of truth
Repository 01
ameyalambat128/swiftui-skills
An aggregate Skill that extracts Apple AdditionalDocumentation from Xcode 26 or later during setup. The repository does not redistribute Apple documentation; the reference files are generated locally on the user’s Mac.
MITmacOSXcode 26+local-firstIts most valuable design choice is the explicit rule that every factual claim and API must be grounded in local /docs. The agent selects documentation before coding and cites the files used during review. If a type or API is absent, it should acknowledge uncertainty instead of inventing a plausible name.
The extracted material goes beyond SwiftUI layout. It includes App Intents, AlarmKit, StoreKit, WebKit, SwiftData inheritance, Swift Concurrency, Liquid Glass, visionOS widgets, and low-level performance primitives such as InlineArray and Span.
Its advantage is source quality, not Skill count. If your main problem is outdated modifiers, missing availability checks, or view structures that do not follow Apple conventions, this approach addresses it directly.
Limitations to keep in mind
- Requires macOS and Xcode 26 or later. The Skill should not provide SwiftUI guidance until the documentation directory has been populated.
- It is a broad entry point. Complex projects still need a focused request, such as “review state ownership and navigation against Apple documentation.”
- The local Xcode version determines the reference version, so teams should align their toolchains to avoid conflicting availability conclusions.
Approach two: 84 composable iOS Skills
Repository 02
dpearson2699/swift-ios-skills
A collection of independent Skills targeting iOS 26+ and Swift 6.3. Every Skill is self-contained, so you can install only what your project actually uses.
84 skills9 categoriesAgent Skills standardPolyForm PerimeterThis repository excels at precise routing. You do not need the entire Apple development corpus in every context: a subscription app using SwiftData, StoreKit 2, App Intents, and WidgetKit can install those Skills alongside SwiftUI patterns, Swift Concurrency, testing, and accessibility.
Below is the complete 84-Skill catalog as of this article’s update. Expand each group to check coverage against your project stack.
SwiftUI 10 skills
- focus-engine — Focus and tvOS/iPad keyboard navigation
- swiftui-animation — Springs, keyframes, and geometry animations
- swiftui-gestures — Gesture composition and conflict handling
- swiftui-layout-components — Grid, Layout, and adaptive layouts
- swiftui-liquid-glass — iOS 26 Liquid Glass
- swiftui-navigation — Navigation stacks, split views, and deep links
- swiftui-patterns — Observation, state, and composition patterns
- swiftui-performance — Updates, layout, and Instruments
- swiftui-uikit-interop — UIKit interoperability and incremental migration
- swiftui-webkit — WebView and WebPage
Core Swift 10 skills
- swift-api-design-guidelines — Naming and API design
- swift-architecture — Architecture decisions across MV, MVVM, TCA, and more
- swift-codable — JSON encoding and decoding
- swift-charts — 2D and 3D charts
- swift-concurrency — Actors, Sendable, and data races
- swift-formatstyle — Dates, numbers, and custom formatting
- swift-language — Swift 6.3 language idioms
- swift-testing — Swift Testing
- core-data — Core Data and migrations
- swiftdata — Models, queries, migrations, and sync
App Experience Frameworks 15 skills
- activitykit — Live Activities and Dynamic Island
- adattributionkit — Privacy-preserving attribution
- alarmkit — System alarms and countdowns
- app-clips — App Clips
- app-intents — Siri, Shortcuts, and Spotlight
- avkit — Video playback, Picture in Picture, and AirPlay
- carplay — CarPlay templates
- mapkit — Maps, location, and directions
- paperkit — PaperKit markup
- pdfkit — PDF viewing and editing
- photokit — Photos, camera, and permissions
- push-notifications — APNs and notification extensions
- storekit — StoreKit 2
- tipkit — Feature discovery tips
- widgetkit — Widgets and controls
Data & Service Frameworks 8 skills
- cloudkit — Records, subscriptions, and sync
- contacts-framework — Contacts
- eventkit — Calendars and reminders
- financekit — Wallet transactions and accounts
- healthkit — Health and workout data
- musickit — Music catalog and playback
- passkit — Apple Pay and Wallet
- weatherkit — Weather and attribution rules
AI & Machine Learning 5 skills
- apple-on-device-ai — Foundation Models and on-device LLMs
- coreml — Model loading, MLTensor, and inference
- natural-language — Tokenization, sentiment, and translation
- speech-recognition — On-device speech recognition
- vision-framework — OCR, detection, and scanning
iOS Engineering 14 skills
- app-store-optimization — ASO
- app-store-review — App Review and privacy manifests
- authentication — Sign in with Apple, passkeys, and biometrics
- background-processing — Background tasks and transfers
- cryptokit — Hashing, encryption, and Secure Enclave
- debugging-instruments — Debugger and Instruments
- device-integrity — DeviceCheck and App Attest
- ios-accessibility — VoiceOver and Dynamic Type
- ios-localization — String Catalogs and right-to-left layouts
- ios-networking — URLSession, WebSockets, and caching
- swift-security — Keychain and security practices
- ios-simulator — simctl and automation
- metrickit — Crash, hang, and energy metrics
- swiftlint — Rules, baselines, and CI
Hardware & Device Integration 8 skills
- accessorysetupkit — Accessory discovery
- core-bluetooth — BLE
- core-motion — Motion sensors
- core-nfc — NFC reading and writing
- dockkit — Smart docks and framing
- pencilkit — Apple Pencil drawing
- realitykit — AR and spatial scenes
- sensorkit — Research-grade sensor data
Platform Integration 10 skills
- appmigrationkit — Cross-platform data migration
- audioaccessorykit — Audio accessories
- browserenginekit — Alternative browser engines
- callkit — Calling and VoIP
- cryptotokenkit — Smart cards and certificate authentication
- energykit — Grid and load insights
- homekit — HomeKit and Matter
- permissionkit — Child communication safety
- relevancekit — Widget relevance
- shareplay-activities — GroupActivity and synchronized experiences
Gaming 4 skills
- gamekit — Game Center and multiplayer
- scenekit — 3D scenes
- spritekit — 2D scenes and physics
- tabletopkit — visionOS spatial tabletop games
How to choose: start with the task, not the count
Scenario A: starting to use AI for SwiftUI
Install swiftui-skills first for Apple documentation constraints, then add swiftui-patterns, swiftui-navigation, swift-concurrency, swift-testing, and ios-accessibility from the 84-Skill collection. These five cover the most common failure points in new projects.
Scenario B: building a feature in an existing product
Choose by current technology, not by what might be useful someday. Add storekit for subscriptions; app-intents and widgetkit for system surfaces; swiftdata or core-data for data-heavy apps; and apple-on-device-ai for on-device AI products.
Scenario C: code review and reliability work
Prioritize swiftui-performance, debugging-instruments, metrickit, swift-security, ios-accessibility, and app-store-review. This set acts more like a release gatekeeper than a code generator.
Recommended starting point: one source-of-truth Skill plus five specialized Skills. Expand only when a real project task requires it. Installing all 84 does not automatically improve quality and may add routing and context noise.
Installation: general agents and Codex
Install the local Apple documentation Skill
# Install directly and extract documentation from Xcode
curl -fsSL https://swiftui-skills.ameyalambat.com/install | bash
# Or use the skills CLI
npx skills add ameyalambat128/swiftui-skills
Before piping a remote script into your shell, review the installer in the repository. After installation, run setup.sh from the installed Skill directory and restart the agent session so it can discover the new Skill.
Interactively select from the 84-Skill collection
# Open the interactive picker and choose Skills and target agents
npx skills add dpearson2699/swift-ios-skills
# Install selected capabilities only
npx skills add dpearson2699/swift-ios-skills \
--skill swiftui-patterns \
--skill swift-concurrency \
--skill swift-testing
# Check and update
npx skills check
npx skills update
Install a single Skill in Codex
$skill-installer install \
https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/swiftui-patterns
Replace the final directory with any Skill name from the catalog. Project-specific rules belong in project scope; reusable SwiftUI and engineering guidance belongs in personal shared scope.
A more reliable combined workflow
- Declare the goal and deployment target. Tell the agent whether the task is a feature, refactor, or review, and specify the minimum iOS version so new APIs are not used unconditionally.
- Let the source-of-truth layer select documentation first. Ask
swiftui-skillsto list the Apple documents and availability constraints used for the task. - Load only task-specific Skills. Use
swiftui-navigationfor navigation andstorekitfor purchases instead of adding the entire catalog to one task. - Require complete validation. Ask the agent to build the target, run tests, and check Dynamic Type, VoiceOver, and dark mode for UI changes.
- Capture decisions in project rules. Repeated architecture decisions should live in a project Skill or AGENTS.md instead of being renegotiated for every task.
A reusable task prompt can begin like this:
Use local Apple documentation as the API source of truth,
and use swiftui-patterns, swift-concurrency, and swift-testing.
Goal: implement a testable asynchronous loading screen for an iOS 26 app.
List the selected documentation and state ownership first, then modify the code, build, and run tests.
Do not introduce an architecture that the project does not already use.
Versions and licensing: two final checks
Apple platform APIs move quickly. This article was checked against a July 6, 2026 swiftui-skills commit and a July 4, 2026 swift-ios-skills commit. Repository content, supported versions, and Skill counts may change. Always verify beta frameworks against the current Xcode SDK.
The licenses also differ: swiftui-skills uses MIT, while swift-ios-skills uses PolyForm Perimeter 1.0.0. It allows app development and closed-source commercial workflows but restricts repackaging the content as a competing product. Read the upstream LICENSE before team distribution, modification, or commercial integration.
Frequently asked questions
Do SwiftUI Agent Skills replace official Apple documentation?
No. A Skill helps an agent load and apply rules at the right time. Final API availability, platform behavior, and review requirements should still be verified against the current Xcode SDK and official Apple material.
Can I install both Skill libraries?
Yes. They complement each other: one provides a local Apple documentation source of truth, while the other provides focused framework and engineering workflows. Select Skills per project instead of installing everything by default.
Is installing all 84 Skills better?
Not necessarily. Teams maintaining many Apple-platform projects may benefit, but a single product is usually clearer with five to ten frequently used Skills and can more easily trace where guidance came from.
Are these Skills only for Codex?
No. Both repositories support multiple agents, including Codex, Claude Code, and Cursor. Installation paths and discovery mechanisms depend on the current version of each agent.
Primary sources: ameyalambat128/swiftui-skills and dpearson2699/swift-ios-skills. This is an independent guide and does not represent Apple or the repository authors.