Skip to main content
skill CX Codex

ios-swift-development — Claude Code skill: native iOS apps in Swift

A skill for building native iOS apps in Swift: MVVM, SwiftUI, URLSession networking, Combine and Core Data persistence.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aj-geddes/useful-ai-prompts --skill ios-swift-development -a claude-code
Open on GitHub

What ios-swift-development does

This skill gives the agent a working frame for native iOS development in Swift. It covers MVVM architecture, declarative UI in SwiftUI, networking through URLSession, reactive streams with Combine, and persistence in Core Data. Async work is written with async/await.

Three reference guides sit in references/: MVVM setup, a network service on URLSession, and SwiftUI views. The main file holds a short example with a User model, an ObservableObject view model and a fetchUser method marked @MainActor. Full implementations live in the guides, so the agent has to open them separately.

A practice list ships with the skill too. Tokens belong in Keychain rather than UserDefaults, network calls stay off the main thread, and force unwrapping or hardcoded API URLs are out. If your project already carries UIKit patterns or keeps passwords in source files, that is worth checking — the agent may follow the old code instead of the guide.

What it helps with

  • build a SwiftUI screen backed by an MVVM view model
  • write a URLSession network layer with async/await
  • wire UI state to a Combine data stream
  • persist app entities with Core Data
  • move tokens and passwords out of UserDefaults into Keychain

Example prompts for the agent

  • Create a profile screen in SwiftUI with an MVVM view model
  • Write a network service on URLSession with async/await and error handling
  • Add Core Data persistence for users

How to install ios-swift-development

1Skills CLI (Vercel)

npx skills add aj-geddes/useful-ai-prompts --skill ios-swift-development -a claude-code

2Manually: put the files in place

~/.claude/skills/ios-swift-development/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ios-swift-development/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about ios-swift-development

How do I install ios-swift-development in Claude?

Run npx skills add aj-geddes/useful-ai-prompts --skill ios-swift-development -a claude-code. The skill lands in ~/.claude/skills/ios-swift-development/SKILL.md.

What does ios-swift-development do?

It hands the agent guides on MVVM, SwiftUI, URLSession, Combine and Core Data so it writes native iOS apps in Swift with a consistent structure.

What files come with the skill?

A main SKILL.md with a short example plus a references/ directory holding three guides: MVVM setup, a URLSession network service, and SwiftUI views.

Source text

SKILL.md · MIT
---
name: ios-swift-development
description: >
  Develop native iOS apps with Swift. Covers MVVM architecture, SwiftUI,
  URLSession for networking, Combine for reactive programming, and Core Data
  persistence.
---

# iOS Swift Development

## Table of Contents

- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)

## Overview

Build high-performance native iOS applications using Swift with modern frameworks including SwiftUI, Combine, and async/await patterns.

## When to Use

- Creating native iOS applications with optimal performance
- Leveraging iOS-specific features and APIs
- Building apps that require tight hardware integration
- Using SwiftUI for declarative UI development
- Implementing complex animations and transitions

## Quick Start

Minimal working example:

```swift
import Foundation
import Combine

struct User: Codable, Identifiable {
  let id: UUID
  var name: String
  var email: String
}

class UserViewModel: ObservableObject {
  @Published var user: User?
  @Published var isLoading = false
  @Published var errorMessage: String?

  private let networkService: NetworkService

  init(networkService: NetworkService = .shared) {
    self.networkService = networkService
  }

  @MainActor
  func fetchUser(id: UUID) async {
    isLoading = true
    errorMessage = nil

// ... (see reference guides for full implementation)
```

## Reference Guides

Detailed implementations in the `references/` directory:

| Guide | Contents |
|---|---|
| [MVVM Architecture Setup](references/mvvm-architecture-setup.md) | MVVM Architecture Setup |
| [Network Service with URLSession](references/network-service-with-urlsession.md) | Network Service with URLSession |
| [SwiftUI Views](references/swiftui-views.md) | SwiftUI Views |

## Best Practices

### ✅ DO

- Use SwiftUI for modern UI development
- Implement MVVM architecture
- Use async/await patterns
- Store sensitive data in Keychain
- Handle errors gracefully
- Use @StateObject for ViewModels
- Validate API responses properly
- Implement Core Data for persistence
- Test on multiple iOS versions
- Use dependency injection
- Follow Swift style guidelines

### ❌ DON'T

- Store tokens in UserDefaults
- Make network calls on main thread
- Use deprecated UIKit patterns
- Ignore memory leaks
- Skip error handling
- Use force unwrapping (!)
- Store passwords in code
- Ignore accessibility
- Deploy untested code
- Use hardcoded API URLs

© aj-geddes · MIT · aj-geddes/useful-ai-prompts

Similar skills

Everything for Mobile →

From the same set118

architecture-diagrams Generates system architecture diagrams, data flows, and C4 models using code formats like Mermaid and PlantUML. Useful when documenting service design directly inside your coding agent. CX Codex +1 2,000installs jenkins-pipeline A skill that helps write Jenkinsfiles: declarative and scripted pipelines with stages, agents, parameters and plugins. CX Codex +1 2,000installs ansible-automation An Ansible skill for your coding agent: write playbooks, roles and inventory, deploy apps and patch servers. CX Codex +1 1,800installs android-kotlin-development A skill that steers your coding agent through native Android work in Kotlin: MVVM, Compose, Retrofit, Room. CX Codex +1 1,500installs flask-api-development Builds modular Flask REST APIs using blueprints, SQLAlchemy ORM, and JWT authentication. It helps organize microservices and validate incoming request payloads. CX Codex +1 1,400installs wireframe-prototyping Sketch a UI and build a prototype before development starts. Useful when you need early feedback from a team or a client. CX Codex +1 1,400installs markdown-documentation A skill that gives the agent a fixed set of Markdown rules for READMEs, wikis and docs pages. Useful when the model writes the text and it has to look consistent. CX Codex +1 1,300installs terraform-infrastructure Guides the agent in configuring cloud infrastructure with Terraform modules and remote state. Useful when managing dev, staging, and prod environments. CX Codex +1 1,200installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor