swift
Swift development — writing, reviewing, and rating Swift code for iOS/macOS. Trigger keywords: swift, iOS, macOS, xcode, swiftui, uikit, swift code review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Swift development — writing, reviewing, and rating Swift code for iOS/macOS. Trigger keywords: swift, iOS, macOS, xcode, swiftui, uikit, swift code review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Git workflows — branching, committing, worktrees, branch isolation, merge strategies. Trigger keywords: git, commit, branch, merge, rebase, worktree, pull, push, cherry-pick.
Testing — writing and running tests with bun:test, test patterns, validation. Trigger keywords: test, testing, unit test, integration test, bun test, spec, assertion.
Pre-commit verification — tsc type checking, test suite, spec invariant checks. Trigger keywords: verify, validate, check, tsc, typecheck, spec check, pre-commit.
Discord messaging — how to send and receive messages, bridge architecture, user identity, formatting. Trigger keywords: discord, discord message, discord reply, discord user, discord bridge, send discord.
Cross-channel messaging — routing rules, channel affinity, how to send messages on each channel, safety rules. Trigger keywords: message, send message, reply, respond, channel, routing, corvid_send_message.
Use this skill when you need to discover remote agents, fetch their capabilities via A2A Agent Cards, or invoke tasks on remote A2A-compatible agents. Triggers include "discover agent", "find agent", "agent card", "invoke remote agent", "send task to agent", "A2A", or any reference to inter-agent communication beyond simple messaging.
| name | swift |
| description | Swift development — writing, reviewing, and rating Swift code for iOS/macOS. Trigger keywords: swift, iOS, macOS, xcode, swiftui, uikit, swift code review. |
Guidelines for writing, reviewing, and rating Swift code.
UpperCamelCase — struct MessageView, class NetworkManagerlowerCamelCase — func fetchMessages(), var isLoadinglowerCamelCase — let maxRetries = 3Codable, Sendable, MessageHandlingstruct over class unless reference semantics are neededlet over var unless mutation is requiredasync/await over completion handlersActor for thread-safe mutable state@Observable (iOS 17+) or ObservableObject for state managementTaskGroup, async let) over DispatchQueueCodable for serializationResult type for error handling in non-async contextsstruct ContentView: View {
@State private var items: [Item] = []
var body: some View {
List(items) { item in
ItemRow(item: item)
}
.task {
items = await fetchItems()
}
}
}
body exceeds ~30 lines@State for local view state, @Binding for parent-owned state.task {} for async work on view appearNavigationStack over deprecated NavigationViewWhen reviewing or rating Swift code, check:
!) unless guaranteed — prefer guard let / if let[weak self] in closures that capture self@Sendable conformance, no data racesdo/catch with specific error types, not bare try?When asked to rate Swift code:
| Rating | Meaning |
|---|---|
| A | Production-ready, follows all conventions, well-tested |
| B | Good with minor issues — missing docs, small style inconsistencies |
| C | Functional but has code smells — force unwraps, retain cycles, unclear naming |
| D | Significant issues — race conditions, memory leaks, no error handling |
| F | Broken or dangerous — crashes, security vulnerabilities, undefined behavior |