一键导入
ios-developer
Comprehensive iOS development guidance covering SwiftUI, Swift Concurrency, Core Data, and Swift Testing
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Comprehensive iOS development guidance covering SwiftUI, Swift Concurrency, Core Data, and Swift Testing
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SQLiteData persistence library (Point-Free) - a fast SwiftData alternative using SQLite/GRDB. Use when working with SQLiteData, GRDB, type-safe SQL queries, @Table macro, @FetchAll/@FetchOne property wrappers, or migrating from SwiftData to SQLite-based persistence.
Technical blog writing with engaging hooks, progressive complexity, and code-first explanations
Comprehensive code review for quality, security, performance, and best practices across any language
Designs comprehensive implementation plans for new features with architecture considerations
Creates distinctive, production-grade frontend interfaces with high design quality, avoiding generic AI aesthetics
Comprehensive React development with performance, design, composition, and React Native patterns
基于 SOC 职业分类
| name | ios_developer |
| description | Comprehensive iOS development guidance covering SwiftUI, Swift Concurrency, Core Data, and Swift Testing |
You are an iOS development expert. This skill aggregates best practices from specialized agent skills for comprehensive iOS app development.
| Need | Reference |
|---|---|
| SwiftUI views, state, modern APIs | → swiftui.md |
| What's new in SwiftUI by iOS version | → whats-new-swiftui/ |
| What's new in Swift by version | → whats-new-swift/ |
| async/await, actors, Sendable | → swift-concurrency.md |
| Core Data persistence, threading | → core-data.md |
| Swift Testing, migration from XCTest | → swift-testing.md |
| General Swift patterns and practices | → swift.md |
@Observable over ObservableObject, NavigationStack over NavigationView@MainActor and custom actors for thread safetyTask.detached when possibleNSManagedObject across Core Data contexts#expect and #require over XCTest assertions@Observable
@MainActor
final class ViewModel {
var items: [Item] = []
func load() async {
items = await fetchItems()
}
}
struct ContentView: View {
@State private var viewModel = ViewModel()
var body: some View {
List(viewModel.items) { item in
Text(item.name)
}
.task {
await viewModel.load()
}
}
}
// Structured concurrency with task group
func fetchAllData() async throws -> [Data] {
try await withThrowingTaskGroup(of: Data.self) { group in
for url in urls {
group.addTask { try await fetch(url) }
}
return try await group.reduce(into: []) { $0.append($1) }
}
}
// Actor for shared state
actor DataStore {
private var cache: [String: Data] = [:]
func get(_ key: String) -> Data? { cache[key] }
func set(_ key: String, _ value: Data) { cache[key] = value }
}
// Safe background processing
func importData(_ items: [ImportItem]) async throws {
let context = container.newBackgroundContext()
try await context.perform {
for item in items {
let entity = Entity(context: context)
entity.configure(from: item)
}
try context.save()
}
}
// Pass IDs, not objects
let objectID = managedObject.objectID
Task.detached {
let context = container.newBackgroundContext()
let object = try context.existingObject(with: objectID)
// Work with object safely
}
import Testing
@Test("User login succeeds with valid credentials")
func loginSuccess() async throws {
let auth = AuthService()
let user = try #require(await auth.login(email: "test@example.com", password: "valid"))
#expect(user.isAuthenticated)
}
@Test(arguments: ["admin", "user", "guest"])
func rolePermissions(role: String) {
let permissions = Permissions(role: role)
#expect(permissions.canRead)
}
For more reference, use these open-source agent skills and documentation services:
developer.apple.com with sosumi.ai in URLs (e.g., https://sosumi.ai/documentation/swiftui/view)https://sosumi.ai/mcp with tools: searchAppleDocumentation, fetchAppleDocumentation, fetchAppleVideoTranscript