api-design
Design and review predictable public APIs for TypeScript, JavaScript, React, and React Native libraries. Use when shaping…
Design, implement, and review Swift APIs and Apple-platform code. Use when working on .swift files, Swift types, Foundation or AVFoundation APIs, DispatchQueue, async/await, Task, actors, MainActor, thread-affine state, or Swift-backed React Native Nitro Module implementations.
$ npx -y skills add margelo/react-native-skills --skill swift --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/swiftContext preview
The summary Claude sees to decide when to auto-load this skill.
Design, implement, and review Swift APIs and Apple-platform code. Use when working on .swift files, Swift types, Foundation or AVFoundation APIs, DispatchQueue, async/await, Task, actors, MainActor, thread-affine state, or Swift-backed React Native Nitro Module implementations.
name: swift description: Design, implement, and review Swift APIs and Apple-platform code. Use when working on .swift files, Swift types, Foundation or AVFoundation APIs, DispatchQueue, async/await, Task, actors, MainActor, thread-affine state, or Swift-backed React Native Nitro Module implementations.
Use this skill for Swift code that needs strong API boundaries, predictable threading, and idiomatic Apple-platform integration. When the code is part of a Nitro Module, pair this with `build-nitro-modules` for generated specs, Promise mapping, and HybridObject constraints.
1. Read the local Swift code, generated protocols, and surrounding API shape before editing. 2. Choose the public type model first: make invalid states unrepresentable where Swift can express them. 3. Choose one concurrency model for the feature before writing implementation code. 4. Keep synchronous properties and methods cheap, local, and nonblocking. 5. Make queue hops, hardware/session negotiation, I/O, and fallible async work explicit in the API.
// Avoid: the valid combinations are implicit and easy to misuse.
struct ScannedData {
let position: Point
let text: String?
let barcode: String?
let barcodeType: BarcodeType?
let face: Rect?
}
// Prefer: each state exposes the fields that are valid for that state.
protocol ScannedData {
var position: Point { get }
}
struct ScannedText: ScannedData {
let position: Point
let text: String
}
struct ScannedBarcode: ScannedData {
let position: Point
let barcode: String
let barcodeType: BarcodeType
}
struct ScannedFace: ScannedData {
let position: Point
let face: Rect
}The best react-native Agent Skills. Forget 10x, this is 100x.
Design and review predictable public APIs for TypeScript, JavaScript, React, and React Native libraries. Use when shaping…
Builds and designs React Native Nitro Modules with Nitrogen, HybridObject TypeScript specs, Nitro View components, generated…
Design, implement, and review modern C++ APIs and native implementation code. Use when working on .cpp, .hpp, CMake, RAII…
Design, implement, and review Kotlin and Android APIs. Use when working on .kt files, Kotlin nullability, sealed…
Fast synchronous key-value storage for React Native via react-native-mmkv (Nitro-backed). Covers creating and configuring MMKV…
Fast native networking primitives for React Native built on Nitro Modules — react-native-nitro-fetch,…