·swift-concurrency
</>

swift-concurrency

解决 Swift 并发编译器错误,采用 Swift 6.2 平易近人的并发 (SE-0466),并编写数据争用安全的异步代码。在修复 Sendable 一致性错误、参与者隔离警告或严格并发诊断时使用;当采用默认的 MainActor 隔离、@concurrent、nonisolated(nonsending) 或 Task.immediate 时;在设计基于参与者的架构、与任务组的结构化并发或后台工作卸载时;或者从 @preconcurrency 迁移到完整的 Swift 6 严格并发时。

80安装·18热度·@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