基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill ios命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | ios |
| description | Apple's mobile operating system and development platform |
| tags | ["ios","iphone","ipad","swift","xcode","apple"] |
I provide comprehensive guidance for developing applications for Apple's iOS platform, including iPhone and iPad devices. I cover Swift and Objective-C programming, Xcode IDE, UIKit and SwiftUI frameworks, App Store submission, and platform-specific patterns and best practices.
Use me when building native iOS applications, optimizing for iPhone and iPad, integrating Apple frameworks (ARKit, CoreML, SwiftUI), submitting to the App Store, or adopting iOS-specific design patterns like MVVM and coordinator pattern.
Swift programming language fundamentals and advanced features including protocols, generics, and property wrappers. UIKit view controller lifecycle and navigation patterns. SwiftUI declarative UI development. Auto Layout and modern layout techniques using SwiftUI and UIKit. Grand Central Dispatch for concurrency. Core Data for local persistence. Network requests using URLSession and Combine framework.
SwiftUI view with state management:
import SwiftUI
struct ContentView: View {
@State private var count = 0
@EnvironmentObject var userSession: UserSession
var body: some View {
NavigationView {
VStack(spacing: 20) {
Text("Count: \(count)")
.font(.largeTitle)
Button(action: { count += 1 }) {
Text("Increment")
.padding()
.background(Color.blue)
.foregroundColor(.white)
.cornerRadius(10)
}
if userSession.isAuthenticated {
Text("Welcome, \(userSession.username)")
.foregroundColor(.green)
}
}
.navigationTitle("Counter")
}
}
}
Network layer with async/await:
import Foundation
actor NetworkService {
private let session: URLSession
init(session: URLSession = .shared) {
self.session = session
}
func fetch<T: Decodable>(_ type: T.Type, from url: URL) async throws -> T {
let (data, response) = try await session.data(from: url)
guard let httpResponse = response as? HTTPURLResponse,
(200...299).contains(httpResponse.statusCode) else {
throw NetworkError.invalidResponse
}
let decoder = JSONDecoder()
return try decoder.decode(T.self, from: data)
}
}
enum NetworkError: Error {
case invalidResponse
decodingError()
}
Use SwiftUI for new projects and adopt it incrementally in UIKit apps. Implement proper memory management with ARC and avoid retain cycles using weak references. Structure apps using MVVM with dependency injection for testability. Handle async operations with async/await or Combine publishers. Optimize app launch time by deferring non-essential initialization. Implement proper error handling and logging for production apps. Use App Groups for data sharing between apps and extensions.
Coordinator pattern for navigation decoupling from view controllers. Repository pattern for data layer abstraction. Dependency injection using protocols for testability. MVVM architecture with Combine or async/await for reactive bindings. Strategy pattern for runtime behavior changes. Observer pattern with NotificationCenter or Combine for cross-component communication.