·swift-concurrency
</>

swift-concurrency

解決 Swift 並發編譯器錯誤,採用 Swift 6.2 平易近人的同時 (SE-0466),並編寫資料爭用安全的非同步程式碼。在修復 Sendable 一致性錯誤、參與者隔離警告或嚴格並發診斷時使用;當採用預設的 MainActor 隔離、@concurrent、nonisolated(nonsending) 或 Task.immediate 時;在設計基於參與者的架構、與任務組的結構化並發或後台工作卸載時;或從 @preconcurrency 遷移到完整的 Swift 6 時。

78安裝·27熱度·@dpearson2699

安裝

$npx skills add https://github.com/dpearson2699/swift-ios-skills --skill swift-concurrency

如何安裝 swift-concurrency

透過命令列快速安裝 swift-concurrency AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/dpearson2699/swift-ios-skills --skill swift-concurrency
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:dpearson2699/swift-ios-skills。

SKILL.md

查看原文

Review, fix, and write concurrent Swift code targeting Swift 6.2+. Apply actor isolation, Sendable safety, and modern concurrency patterns with minimal behavior changes.

Prefer edits that preserve existing behavior while satisfying data-race safety.

| UI-bound type | Annotate the type or relevant members with @MainActor. | | Protocol conformance on MainActor type | Use an isolated conformance: extension Foo: @MainActor Proto. | | Global / static state | Protect with @MainActor or move into an actor. | | Background work needed | Use a @concurrent async function on a nonisolated type. |

解決 Swift 並發編譯器錯誤,採用 Swift 6.2 平易近人的同時 (SE-0466),並編寫資料爭用安全的非同步程式碼。在修復 Sendable 一致性錯誤、參與者隔離警告或嚴格並發診斷時使用;當採用預設的 MainActor 隔離、@concurrent、nonisolated(nonsending) 或 Task.immediate 時;在設計基於參與者的架構、與任務組的結構化並發或後台工作卸載時;或從 @preconcurrency 遷移到完整的 Swift 6 時。 來源:dpearson2699/swift-ios-skills。

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill swift-concurrency
分類
</>開發工具
認證
收錄時間
2026-03-08
更新時間
2026-03-10

Browse more skills from dpearson2699/swift-ios-skills

快速解答

什麼是 swift-concurrency?

解決 Swift 並發編譯器錯誤,採用 Swift 6.2 平易近人的同時 (SE-0466),並編寫資料爭用安全的非同步程式碼。在修復 Sendable 一致性錯誤、參與者隔離警告或嚴格並發診斷時使用;當採用預設的 MainActor 隔離、@concurrent、nonisolated(nonsending) 或 Task.immediate 時;在設計基於參與者的架構、與任務組的結構化並發或後台工作卸載時;或從 @preconcurrency 遷移到完整的 Swift 6 時。 來源:dpearson2699/swift-ios-skills。

如何安裝 swift-concurrency?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/dpearson2699/swift-ios-skills --skill swift-concurrency 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/dpearson2699/swift-ios-skills