소스 정보
- 저장소
- ffsshhttiikk/opencode-agents-skills
- 최근 소스 활동
- 2026년 2월 28일 22:52
- 감지된 SKILL.md 언어
- 영어
- 스타
- 2
- 포크
- 2
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill swift명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | swift |
| description | Apple's powerful and intuitive programming language |
| tags | ["swift","ios","macos","apple","programming-language","xcode"] |
I provide guidance for programming in Swift, Apple's modern programming language. I cover language fundamentals, advanced features (generics, protocols, result builders), memory management, concurrency with async/await and actors, and Swift Package Manager for dependency management.
Use me when developing iOS, macOS, watchOS, or tvOS applications in Swift, writing performant and safe code leveraging Swift-specific features, or integrating Swift packages into Apple platform projects.
Swift type system with value types (structs, enums) and reference types (classes). Protocol-oriented programming with protocol extensions and associated types. Generics with type constraints and where clauses. Property wrappers for reusable property logic. Result builders for DSL-like syntax. Structured concurrency with async/await and Task groups. Actor isolation for thread-safe state access. Memory management with ARC and weak/unowned references.
Protocol-oriented design with generics:
import Foundation
protocol Identifiable {
associatedtype ID: Hashable
var id: ID { get }
}
struct User: Identifiable, Hashable {
let id: UUID
let name: String
let email: String
}
struct Product: Identifiable, Hashable {
let id: String
let name: String
let price: Decimal
}
final class Cache<T: Identifiable> where T.ID == UUID {
private var storage: [UUID: T] = [:]
private let lock = NSLock()
func insert(_ item: T) {
lock.lock()
defer { lock.unlock() }
storage[item.id] = item
}
func retrieve(id: UUID) -> T? {
lock.lock()
defer { lock.unlock() }
return storage[id]
}
func allItems() -> [T] {
lock.lock()
defer { lock.unlock() }
return Array(storage.values)
}
}
extension Cache: Sequence where T: Identifiable, T.ID == UUID {
func makeIterator() -> AnyIterator<T> {
let items = allItems()
var index = 0
return AnyIterator {
defer { index += 1 }
return index < items.count ? items[index] : nil
}
}
}
Async/await with actors:
import Foundation
actor ImageProcessor {
private var cache: [URL: Data] = [:]
private let networkManager: NetworkManager
init(networkManager: NetworkManager = .shared) {
self.networkManager = networkManager
}
func processImage(from url: URL) async throws -> UIImage {
if let cached = cache[url] {
return try await decodeImage(from: cached)
}
let data = try await networkManager.download(from: url)
cache[url] = data
let image = try await decodeImage(from: data)
return image
}
private func decodeImage(from data: Data) async throws -> UIImage {
try await withCheckedThrowingContinuation { continuation
.global(qos: .userInitiated).async {
image (data: data) {
continuation.resume(throwing: .decodingFailed)
}
continuation.resume(returning: image)
}
}
}
}
: {
decodingFailed
invalidData
}
{
shared ()
( : ) -> {
(data, response) .shared.data(from: url)
httpResponse response ,
().contains(httpResponse.statusCode) {
.invalidResponse
}
data
}
}
Prefer structs and protocols over classes for value semantics and safer code. Use final classes only when inheritance is truly needed. Leverage protocol extensions for default implementations. Use Result type for error handling in completion handlers. Adopt async/await for asynchronous code. Use actors for protecting mutable state across threads. Utilize generics for type-safe, reusable code. Use @MainActor to ensure UI updates happen on the main thread.
Protocol-oriented programming with protocol extensions for default implementations. Builder pattern using memberwise initializers and default parameters. Factory pattern with static factory methods. Strategy pattern with closures or protocol implementations. Observer pattern with Combine publishers or NotificationCenter. Singleton pattern with static constants. Decorator pattern with protocol composition.