Skip to content
ย 
ย 

Latest commit

ย 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Swift SwiftUI iOS visionOS AI Agents Lines

ios-agent-skill

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.

Author GitHub License Stars Release


Adoption and Community Usage

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.


โš ๏ธ Important: Create Your Xcode Project FIRST

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.

Step 1: Create the Xcode Project

  1. Open Xcode (macOS only โ€” required for iOS development)
  2. Click File โ†’ New โ†’ Project (or press Cmd + Shift + N)
  3. Select App under iOS (or Multiplatform for cross-platform)
  4. 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)
  5. Click Next โ†’ Choose a folder โ†’ Click Create
  6. 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/
        โ””โ”€โ”€ ...
    

Step 2: Clone This Skill Into Your Project

cd /path/to/YourAppName
git clone https://github.com/Nagarjuna2997/ios-agent-skill.git .ios-skill

Step 3: Open Your AI Agent and Start Building

Now 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 IDE

Step 4: Ask the AI to Build Features

The 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"

Step 5: Run in Xcode

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.

Alternative: Use the Template

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.


โšก One-Line Install

curl -sL https://raw.githubusercontent.com/Nagarjuna2997/ios-agent-skill/main/install.sh | bash

๐Ÿค– Works With Every AI Coding Agent

๐Ÿ”ท Claude Code
git clone https://github.com/Nagarjuna2997/ios-agent-skill.git && cd ios-agent-skill && claude

Auto-reads CLAUDE.md

๐ŸŸข OpenAI Codex CLI
git clone https://github.com/Nagarjuna2997/ios-agent-skill.git ~/.codex/skills/ios-agent-skill

Auto-reads AGENTS.md

๐Ÿ”ต Gemini CLI / Antigravity
git clone https://github.com/Nagarjuna2997/ios-agent-skill.git && cd ios-agent-skill

Auto-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

:octocat: 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 โœ…

๐Ÿง  What's Inside

โš™๏ธ The Skill Brain

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

๐Ÿ“š Documentation Reference

๐Ÿ“™ Swift Language โ€” docs/swift/

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

๐ŸŽจ SwiftUI โ€” docs/swiftui/

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

๐Ÿ“ฑ UIKit โ€” docs/uikit/

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

๐ŸŒˆ Design System โ€” docs/design/

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

๐Ÿ”ง Drop-In Components โ€” templates/common-patterns/

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

โš™๏ธ Apple Frameworks โ€” docs/frameworks/

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

๐Ÿค– AI & Machine Learning โ€” docs/frameworks/ml/

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

๐Ÿš€ Advanced App Experience

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

๐Ÿ”Œ Hardware โ€” docs/frameworks/hardware/

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

๐Ÿ’ผ Services โ€” docs/frameworks/services/

File Framework
๐Ÿ’ฐ passkit.md Apple Pay, Wallet passes
โ›… weatherkit.md Weather forecasts, alerts
๐Ÿ“† eventkit.md Calendar, reminders
๐Ÿ‘ฅ contacts.md Contact access, picker

๐Ÿ›ก๏ธ Security & Engineering

File Framework
๐Ÿ”’ cryptokit.md SHA256, AES-GCM, Secure Enclave
๐Ÿ” oslog.md Logger, MetricKit diagnostics
โณ background-tasks.md BGTaskScheduler
โœ… device-integrity.md DeviceCheck, AppAttest

๐ŸŒŽ Platform Guides โ€” docs/platforms/

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

๐Ÿ—๏ธ Code Templates

๐Ÿ“ฑ iOS App Template

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

๐ŸŒ Multiplatform Template

templates/multiplatform-app/
 |- Shared/                # NavigationSplitView, shared logic
 |- iOS/                   # iOS-specific (haptics, etc.)
 |- macOS/                 # Menu commands, window styling
 |- watchOS/               # Compact layouts

๐Ÿงฐ Common Patterns

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

๐Ÿ›๏ธ Architecture Patterns

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

๐Ÿš€ CI/CD Templates

File What It Does
:octocat: github-actions.yml Build, test, TestFlight deploy, SPM cache
๐Ÿ’Ž Fastfile Test, beta, release lanes, match signing

๐Ÿ“‹ Quality Checklists

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

๐Ÿ“Š Tech Stack

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+

๐Ÿ’ฌ Example Prompts

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"

๐Ÿค Contributing

  1. ๐Ÿด Fork this repository
  2. โœ๏ธ Add or update documentation in docs/
  3. ๐Ÿ› ๏ธ Add new templates or patterns
  4. โคด๏ธ Submit a pull request

๐Ÿ“œ License

MIT License | Copyright (c) 2026 Nagarjuna Reddy


95+ files | 50,000+ lines | 25+ AI platforms | All Apple frameworks

LinkedIn GitHub

About

Production-ready iOS SwiftUI guidance for AI coding agents.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages