用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill swift命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | Swift |
| slug | swift |
| version | 1.0.1 |
| description | Write safe Swift code avoiding memory leaks, optional traps, and concurrency bugs. |
| metadata | {"clawdbot":{"emoji":"🦅","requires":{"bins":["swift"]},"os":["darwin","linux"]}} |
| Topic | File |
|---|---|
| Optionals, nil safety, force unwrap | optionals.md |
| Retain cycles, weak refs, closures | memory.md |
| async/await, actors, Sendable, value types | concurrency.md |
| JSON encoding/decoding traps | codable.md |
| Protocols, collections, strings, errors, build | types.md |
| SwiftUI state (@State, @Binding, Combine) | swiftui.md |
| Property wrappers, actors, result builders, macros | advanced.md |
| XCTest pitfalls, SPM gotchas | testing.md |
! crashes on nil — use guard let or if let insteadself strongly create retain cycles — use [weak self] in escaping closuresweak — strong delegate = object never deallocatestry! crashes on any error — never use in production pathsremoveFirst() crashes on empty — use popFirst() for safetyasync let starts immediately — not when you awaitawait — state may change between suspension points@MainActor doesn't guarantee immediate main thread — it's queuedSendable conformance violations crash at runtime — compiler warnings are errorsarray[0].mutate() doesn't workString.Index from one string invalid on another — even if contents match@StateObject owns, @ObservedObject borrows — recreating view loses ObservedObject state@EnvironmentObject crashes if not injected — no compile-time check@State — changing ID loses stateprint() builds strings even in release — remove or use os_log