From apple-dev
Comprehensive macOS and iOS development expertise covering Swift best practices, SwiftUI design patterns, Human Interface Guidelines, Apple frameworks, and performance optimization. Use when developing native Apple applications, implementing SwiftUI interfaces, working with Apple frameworks (Foundation, UIKit, AppKit, Core Data, CloudKit, etc.), optimizing app performance, following HIG principles, or writing production-quality Swift code for iOS, macOS, watchOS, or tvOS platforms.
How this skill is triggered — by the user, by Claude, or both
Slash command
/apple-dev:apple-devThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Expert-level guidance for building native Apple applications with Swift and
Expert-level guidance for building native Apple applications with Swift and SwiftUI, following Apple's best practices and Human Interface Guidelines.
Write idiomatic, performant Swift code following modern best practices:
guard, if let,
nil coalescing; avoid force unwrappingstruct over class; use classes for reference
semantics and inheritanceWhen to consult references: For detailed patterns, advanced techniques, or
specific language features, read references/swift-best-practices.md
Build modern, declarative user interfaces following SwiftUI patterns:
When to consult references: For layout patterns, advanced state management,
or SwiftUI-specific techniques, read references/swiftui-patterns.md
Design interfaces that feel native and follow Apple's design principles:
When to consult references: For detailed HIG requirements, component
specifications, or platform-specific patterns, read
references/human-interface-guidelines.md
Leverage the full Apple ecosystem with deep framework knowledge:
When to consult references: For framework APIs, code samples, or integration
patterns, read references/apple-frameworks.md
Build fast, efficient applications with optimal resource usage:
When to consult references: For optimization techniques, profiling
workflows, or specific performance patterns, read
references/performance-optimization.md
@MainActor
class UserViewModel: ObservableObject {
@Published private(set) var users: [User] = []
@Published private(set) var isLoading = false
private let service: UserServiceProtocol
init(service: UserServiceProtocol = UserService()) {
self.service = service
}
func loadUsers() async {
isLoading = true
do {
users = try await service.fetchUsers()
} catch {
// Handle error
}
isLoading = false
}
}
struct UsersView: View {
@StateObject private var viewModel = UserViewModel()
var body: some View {
Group {
if viewModel.isLoading {
ProgressView()
} else {
List(viewModel.users) { user in
UserRow(user: user)
}
}
}
.task {
await viewModel.loadUsers()
}
}
}
func fetchUser(id: String) async throws -> User {
let url = URL(string: "https://api.example.com/users/\(id)")!
let (data, response) = try await URLSession.shared.data(from: url)
guard let httpResponse = response as? HTTPURLResponse,
(200...299).contains(httpResponse.statusCode) else {
throw NetworkError.serverError
}
return try JSONDecoder().decode(User.self, from: data)
}
@Observable
class ViewModel {
var items: [Item] = []
var isLoading = false
func loadItems() async {
isLoading = true
items = await fetchItems()
isLoading = false
}
}
// In SwiftUI - automatically observes changes
struct ContentView: View {
let viewModel = ViewModel()
var body: some View {
List(viewModel.items) { item in
Text(item.name)
}
}
}
Always implement:
This skill includes comprehensive reference documentation:
Complete Swift programming best practices covering code organization, type safety, optionals, protocol-oriented programming, modern Swift features, memory management, concurrency, and testing patterns.
SwiftUI design patterns including view composition, state management, MVVM architecture, layout techniques, navigation patterns, animations, performance optimization, and accessibility.
Apple's Human Interface Guidelines covering design principles, platform conventions, typography, color, layout, components, accessibility, gestures, and platform-specific patterns for iOS, macOS, iPad, watchOS, and tvOS.
Comprehensive reference for Apple frameworks including Foundation, UIKit, AppKit, networking, Core Data, SwiftData, Combine, CloudKit, StoreKit, Core Location, MapKit, HealthKit, AVFoundation, and Core Animation.
Performance optimization techniques covering app launch, memory management, CPU optimization, rendering, networking, battery efficiency, database performance, profiling with Instruments, and testing.
npx claudepluginhub marsolab/skills --plugin apple-devCoordinates iOS/SwiftUI workflows with best-practice guides, correctness checklists, topic routing, and Apple API references for building, reviewing, refactoring, and debugging apps.
Provides expert guidance for iOS/macOS development with Swift, SwiftUI, UIKit, Core Data, Combine, Xcode projects, app architectures, build errors, and performance optimization.
Develops native iOS applications with Swift/SwiftUI, covering iOS 18, UIKit integration, Core Data, networking, and App Store optimization.