modern-swift
✓在编写异步/等待代码、启用严格并发、修复可发送错误、从完成处理程序迁移、管理与参与者的共享状态或使用任务/任务组进行并发时使用。
SKILL.md
Swift 6.2 introduces strict compile-time concurrency checking with async/await, actors, and Sendable constraints that prevent data races at compile time instead of runtime. This is the foundation of safe concurrent Swift.
Modern Swift replaces older concurrency patterns (completion handlers, DispatchQueue, locks) with compiler-enforced safety. The core principle: if it compiles with strict concurrency enabled, it cannot have data races.
| Async operation | async/await | Completion handlers | | Main thread work | @MainActor | DispatchQueue.main | | Shared mutable state | actor | Locks, serial queues | | Parallel tasks | TaskGroup | DispatchGroup | | Thread safety | Sendable | @unchecked everywhere |
在编写异步/等待代码、启用严格并发、修复可发送错误、从完成处理程序迁移、管理与参与者的共享状态或使用任务/任务组进行并发时使用。 来源:johnrogers/claude-swift-engineering。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/johnrogers/claude-swift-engineering --skill modern-swift- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 modern-swift?
在编写异步/等待代码、启用严格并发、修复可发送错误、从完成处理程序迁移、管理与参与者的共享状态或使用任务/任务组进行并发时使用。 来源:johnrogers/claude-swift-engineering。
如何安装 modern-swift?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/johnrogers/claude-swift-engineering --skill modern-swift 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/johnrogers/claude-swift-engineering
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01