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.
npx claudepluginhub marsolab/skills --plugin apple-devThis skill uses the workspace's default tool permissions.
Expert-level guidance for building native Apple applications with Swift and
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
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.