An Agent Skill for production-oriented iOS, Swift, and SwiftUI development.
Helps AI coding assistants generate safer Swift code, follow modern Apple APIs, and work inside existing Xcode projects.
This repository tracks public adoption evidence in ADOPTION.md, including repository metrics, public mentions, user feedback, and projects built with the skill.
If you use this skill in a public project, tutorial, or workflow, please open an issue or discussion so it can be listed as community evidence.
This skill generates Swift files, not a full Xcode project. You must create the Xcode project first, then use your AI agent to build features inside it.
- Open Xcode (macOS only โ required for iOS development)
- Click File โ New โ Project (or press
Cmd + Shift + N) - Select App under iOS (or Multiplatform for cross-platform)
- Fill in the project details:
- Product Name:
YourAppName - Team: Select your Apple Developer account (or Personal Team)
- Organization Identifier:
com.yourname(e.g.,com.nagarjuna) - Interface: SwiftUI
- Language: Swift
- Storage: SwiftData (or None if you don't need persistence)
- Product Name:
- Click Next โ Choose a folder โ Click Create
- Xcode creates the full project structure:
YourAppName/ โโโ YourAppName.xcodeproj โ Xcode project file โโโ YourAppName/ โ โโโ YourAppNameApp.swift โ App entry point โ โโโ ContentView.swift โ Main view โ โโโ Assets.xcassets โ App icons, colors, images โ โโโ Preview Content/ โ Preview assets โ โโโ Info.plist โ (if visible) โโโ YourAppNameTests/ โโโ ...
cd /path/to/YourAppName
git clone https://github.com/Nagarjuna2997/ios-agent-skill.git .ios-skillNow open your project folder in your preferred AI coding tool:
# Claude Code
cd /path/to/YourAppName && claude
# Codex
cd /path/to/YourAppName && codex
# Cursor โ just open the folder in Cursor
# Any other tool โ open the folder in your IDEThe AI will create/modify .swift files inside your Xcode project:
"Add a login screen with email and password fields"
"Create a settings page with dark mode toggle"
"Add a tab bar with Home, Search, and Profile tabs"
"Implement a networking layer to fetch data from my API"
Go back to Xcode โ Press Cmd + R (or click the Play button) to build and run on the simulator.
Why this workflow? AI agents generate Swift source files (
.swift), but iOS apps need a proper Xcode project (.xcodeproj) with build settings, signing, asset catalogs, and simulator configuration. Xcode is the only tool that can compile, sign, and run iOS apps. Your AI agent writes the code โ Xcode builds and runs it.
If you want to skip Xcode project creation, copy our ready-made template files into a new Xcode project:
# After creating Xcode project, copy template files
cp ios-agent-skill/templates/ios-app/*.swift /path/to/YourAppName/YourAppName/
cp -r ios-agent-skill/templates/ios-app/Views/ /path/to/YourAppName/YourAppName/Views/
cp -r ios-agent-skill/templates/ios-app/ViewModels/ /path/to/YourAppName/YourAppName/ViewModels/
cp -r ios-agent-skill/templates/ios-app/Models/ /path/to/YourAppName/YourAppName/Models/Then open Xcode โ Right-click the project โ Add Files to "YourAppName" โ Select the new folders.
curl -sL https://raw.githubusercontent.com/Nagarjuna2997/ios-agent-skill/main/install.sh | bash๐ท Claude Code
git clone https://github.com/Nagarjuna2997/ios-agent-skill.git && cd ios-agent-skill && claudeAuto-reads CLAUDE.md
๐ข OpenAI Codex CLI
git clone https://github.com/Nagarjuna2997/ios-agent-skill.git ~/.codex/skills/ios-agent-skillAuto-reads AGENTS.md
๐ต Gemini CLI / Antigravity
git clone https://github.com/Nagarjuna2997/ios-agent-skill.git && cd ios-agent-skillAuto-reads GEMINI.md and AGENTS.md
๐ฃ Cursor
cp ios-agent-skill/.cursorrules /path/to/your/project/
# Or use modern format:
cp -r ios-agent-skill/.cursor /path/to/your/project/Auto-reads .cursor/rules/ios-skill.md or .cursorrules
GitHub Copilot
Auto-reads .github/copilot-instructions.md when repo is cloned.
๐ Windsurf (Codeium)
Auto-reads .windsurf/rules/ios-skill.md or .windsurfrules
๐ง JetBrains AI / Junie
Auto-reads .aiassistant/rules/ios-skill.md or .junie/guidelines.md
๐ 15+ More Platforms
| Platform | File | Auto-detected |
|---|---|---|
| Zed AI | .rules |
โ |
| Trae (ByteDance) | .trae/rules/ios-skill.md |
โ |
| Amazon Q Developer | .amazonq/rules/ios-skill.md |
โ |
| Cline | .clinerules |
โ |
| Roo Code | .roo/rules/ios-skill.md |
โ |
| KiloCode | .kilocode/rules/ios-skill.md |
โ |
| Continue.dev / PearAI | .continue/rules/ios-skill.md |
โ |
| Augment Code | .augment/rules/ios-skill.md |
โ |
| Tabnine | .tabnine/guidelines/ios-skill.md |
โ |
| Aider | CONVENTIONS.md |
โ |
| Sourcegraph Amp | AGENTS.md |
โ |
| Replit Agent | replit.md |
โ |
| Lovable | AGENTS.md |
โ |
| OpenCode / OpenHands | AGENTS.md |
โ |
| Bolt.new | CLAUDE.md |
โ |
CLAUDE.md/SKILL.md/AGENTS.md/GEMINI.mdโ all identical
- โ Zero-error Swift code generation rules
- โ Framework selection guide (SwiftUI vs UIKit, SwiftData vs CoreData)
- โ MVVM project structure with naming conventions
- โ Platform-specific guidance (iOS, macOS, watchOS, tvOS, visionOS)
- โ UI design standards (colors, typography, spacing, animations)
- โ Top 10 pitfalls and how to avoid them
| File | Topics | |
|---|---|---|
| ๐ค | swift-language.md | Types, protocols, generics, property wrappers, result builders, macros, pattern matching |
| ๐ | swift-concurrency.md | async/await, Task, actors, @MainActor, Sendable, AsyncSequence, continuations |
| ๐ฆ | swift-standard-library.md | Collections, String, Codable, Result, Regex, Clock/Duration |
| File | Topics | |
|---|---|---|
| ๐งฉ | views-and-controls.md | Text, Image, Button, List, ScrollView, Form, Menu, ViewModifier, lifecycle |
| ๐พ | state-and-data-flow.md | @State, @Binding, @Observable, @Environment, @Query |
| ๐งญ | navigation.md | NavigationStack, sheets, TabView, deep linking, iOS 18 zoom transitions |
| ๐ | layout.md | Stacks, Grid, GeometryReader, LazyVGrid, custom Layout protocol |
| โจ | animations.md | Spring, transitions, matchedGeometry, PhaseAnimator, MeshGradient, TextRenderer |
| ๐ | gestures.md | Tap, drag, magnify, rotate, gesture composition |
| File | Topics | |
|---|---|---|
| ๐๏ธ | uikit-essentials.md | UIViewController, Auto Layout, diffable data sources, compositional layout |
| ๐ | uikit-swiftui-interop.md | UIViewRepresentable, UIHostingController, Coordinator pattern |
| ๐ฅ | animations.md | UIViewPropertyAnimator, custom VC transitions, Core Animation, CAShapeLayer |
| File | Topics | |
|---|---|---|
| ๐จ | color-system.md | 5 color palettes, hex codes, 10 gradient recipes, materials, dark mode |
| ๐ | typography-system.md | Text styles, SF Symbols, Dynamic Type, gradient/animated text effects |
| ๐ | stunning-ui-patterns.md | 20+ UI patterns: glassmorphism, neumorphism, parallax, shimmer, card stacks |
| ๐น๏ธ | interaction-standards.md | Animation curves, haptics, button styles, states, localization, privacy manifest |
| โ๏ธ | fonts-catalog.md | Every iOS font, 100+ Google Fonts, 15 pairings, variable fonts, international |
| ๐ฌ | third-party-animations.md | Lottie integration, Rive state machines, decision table |
| File | Includes | |
|---|---|---|
| ๐๏ธ | design-system.swift | 5 themes, spacing/radius/shadow tokens, 6 ButtonStyles, ViewState, AnimationStandard |
| ๐งฑ | ui-components.swift | GradientButton, GlassCard, AvatarView, StatCard, RatingView, CircularProgress, ToastView, SearchBar + 9 more |
| File | Framework | |
|---|---|---|
| ๐ | foundation.md | URLSession, FileManager, Codable, NotificationCenter |
| ๐ | combine.md | Publishers, operators, error handling |
| ๐พ | core-data.md | NSManagedObject, fetch requests, migration |
| โ๏ธ | swiftdata.md | @Model, @Query, #Predicate, History API, custom DataStore |
| ๐ก | networking.md | API client, auth tokens, WebSocket |
| ๐ | core-location.md | GPS, geofencing, iBeacon |
| ๐บ๏ธ | mapkit.md | Map views, annotations, directions, LookAround |
| ๐ฝ๏ธ | avfoundation.md | Audio/video playback, camera capture |
| ๐ณ | storekit.md | In-app purchases, subscriptions, EU marketplace |
| โ๏ธ | cloudkit.md | iCloud sync, CKSyncEngine, sharing |
| ๐ | usernotifications.md | Local/remote notifications, actions |
| ๐๏ธ | widgetkit.md | Widgets, Live Activities, Control Center |
| โฟ | accessibility.md | VoiceOver, Dynamic Type, contrast |
| ๐ฑ | arkit.md | World/face/body/image/object/geo tracking, mesh, anchors |
| ๐ | realitykit.md | ECS, RealityView, ARView, PBR materials, physics, USDZ |
| File | Framework | |
|---|---|---|
| ๐ง | coreml.md | Model loading, prediction, Neural Engine |
| ๐๏ธ | vision.md | OCR, face detection, barcode, segmentation |
| ๐ฌ | natural-language.md | Tokenization, sentiment, embeddings |
| ๐ค | speech.md | Speech-to-text, live transcription |
| ๐ฎ | on-device-ai.md | Foundation Models, MLX Swift, on-device LLM |
| File | Framework | |
|---|---|---|
| ๐ข | activitykit.md | Live Activities, Dynamic Island |
| ๐ | app-intents.md | Siri, Shortcuts, Spotlight, Apple Intelligence |
| ๐ก | tipkit.md | Feature discovery tooltips |
| โ๏ธ | app-clips.md | App Clips, NFC/QR triggers |
| ๐ท | photosui.md | PhotosPicker, custom camera, PiP |
| File | Framework | |
|---|---|---|
| ๐ถ | core-bluetooth.md | BLE scanning, connecting |
| โค๏ธ | healthkit.md | Health data, workouts |
| ๐ | core-motion.md | Accelerometer, pedometer |
| ๐ณ | core-nfc.md | NFC tag reading/writing |
| ๐ | homekit.md | Home automation, Matter |
| File | Framework | |
|---|---|---|
| ๐ฐ | passkit.md | Apple Pay, Wallet passes |
| โ | weatherkit.md | Weather forecasts, alerts |
| ๐ | eventkit.md | Calendar, reminders |
| ๐ฅ | contacts.md | Contact access, picker |
| File | Framework | |
|---|---|---|
| ๐ | cryptokit.md | SHA256, AES-GCM, Secure Enclave |
| ๐ | oslog.md | Logger, MetricKit diagnostics |
| โณ | background-tasks.md | BGTaskScheduler |
| โ | device-integrity.md | DeviceCheck, AppAttest |
| File | Platform | |
|---|---|---|
| ๐ฑ | ios.md | iOS โ lifecycle, deep linking, extensions |
| ๐ป | macos.md | macOS โ menu bar, toolbar, sandboxing |
| โ | watchos.md | watchOS โ complications, workouts |
| ๐บ | tvos.md | tvOS โ focus engine, Siri Remote |
| ๐ | visionos.md | visionOS โ spatial computing, RealityKit |
templates/ios-app/
|- App.swift # @main with SwiftData
|- ContentView.swift # TabView (Home, Profile, Settings)
|- Models/Item.swift # Data model
|- Views/ # HomeView, ProfileView, SettingsView
|- ViewModels/ # @Observable view models
|- Tests/ # Swift Testing + XCTest examples
|- Info.plist
templates/multiplatform-app/
|- Shared/ # NavigationSplitView, shared logic
|- iOS/ # iOS-specific (haptics, etc.)
|- macOS/ # Menu commands, window styling
|- watchOS/ # Compact layouts
| File | What It Does | |
|---|---|---|
| ๐ก | networking-layer.swift | Actor-based API client, auth tokens |
| ๐พ | persistence-layer.swift | SwiftData setup, @Query, previews |
| ๐ | auth-flow.swift | AuthManager, Keychain, Sign in with Apple |
| ๐งญ | navigation-router.swift | Type-safe router, deep linking |
| ๐ | dependency-injection.swift | Protocol-based DI, Environment |
| Pattern | Guide | |
|---|---|---|
| ๐ | MVVM | @Observable, DI, testing |
| ๐งฑ | Clean Architecture | Domain/Data/Presentation layers |
| ๐งญ | Coordinator | NavigationPath, deep linking |
| ๐๏ธ | Repository | Offline-first, caching |
| Error Handling | Custom errors, retry, circuit breaker | |
| โ๏ธ | TCA | Composable Architecture, TestStore |
| File | What It Does | |
|---|---|---|
| github-actions.yml | Build, test, TestFlight deploy, SPM cache | |
| ๐ | Fastfile | Test, beta, release lanes, match signing |
| Checklist | When to Use | |
|---|---|---|
| ๐ | App Store Submission | Before submitting โ metadata, privacy, entitlements |
| ๐๏ธ | Performance | Instruments, SwiftUI perf, image optimization |
| ๐ก๏ธ | Security | Keychain, pinning, biometrics, encryption |
| ๐งช | Testing | XCTest, Swift Testing, UI tests, CI/CD |
| Category | Technology | Version | |
|---|---|---|---|
| ๐ค | Language | Swift 5.9+ | Xcode 15+ |
| ๐จ | UI (primary) | SwiftUI | iOS 15+ |
| ๐ฑ | UI (interop) | UIKit / AppKit | iOS 13+ |
| ๐พ | Persistence | SwiftData | iOS 17+ |
| ๐ | Concurrency | async/await, actors | iOS 15+ |
| ๐ | State | @Observable | iOS 17+ |
| ๐๏ธ | Architecture | MVVM / TCA | All |
| ๐ | Spatial | RealityKit + ARKit | visionOS 1.0+ |
| ๐ง | AI/ML | CoreML + Vision | iOS 15+ |
| What You Want | What to Ask | |
|---|---|---|
| ๐ฑ | New app | "Create a SwiftUI habit tracker with SwiftData persistence" |
| ๐ | Push notifications | "Add local and remote notification support" |
| ๐ | Fix a bug | "My NavigationStack isn't preserving state on back" |
| ๐ก | Networking | "Create a REST API client that fetches user data" |
| ๐ | visionOS | "Build a visionOS app with 3D models in immersive space" |
| โ | watchOS | "Add a watchOS companion that syncs with iPhone" |
| ๐๏ธ | Widget | "Create a home screen widget showing today's tasks" |
| ๐ณ | In-app purchase | "Add a subscription paywall with StoreKit 2" |
| ๐ | Stunning UI | "Build onboarding with gradient glass cards and animations" |
| ๐จ | Design system | "Apply Ocean Blue theme across the entire app" |
| ๐ | Dashboard | "Add stat cards with circular progress and animated counters" |
| ๐ง | ML feature | "Add on-device text recognition with Vision framework" |
| โค๏ธ | Health app | "Read step count data from HealthKit and display weekly chart" |
- ๐ด Fork this repository
- โ๏ธ Add or update documentation in
docs/ - ๐ ๏ธ Add new templates or patterns
โคด๏ธ Submit a pull request
MIT License | Copyright (c) 2026 Nagarjuna Reddy
95+ files | 50,000+ lines | 25+ AI platforms | All Apple frameworks