swift-conventions
✓Claude 不会本能地做出专家 Swift 决策:结构与类的权衡、@MainActor 放置、async/await 与组合选择、内存管理陷阱以及 iOS 特定的反模式。在为 iOS/tvOS 应用程序编写 Swift 代码、审查 Swift 架构决策或调试内存/并发问题时使用。触发关键字:Swift、iOS、tvOS、actor、async、Sendable、retain Cycle、内存泄漏、struct、class、protocol、generic
SKILL.md
Expert decision frameworks for Swift choices that require experience. Claude knows Swift syntax — this skill provides the judgment calls.
The non-obvious trade-off: Structs with reference-type properties (arrays, classes inside) lose copy-on-write benefits. A struct containing [UIImage] copies the array reference, not images — mutations affect all "copies."
When Combine still wins: Multiple publishers needing combineLatest, merge, or debounce. Converting this to pure async/await requires manual coordination that Combine handles elegantly.
Claude 不会本能地做出专家 Swift 决策:结构与类的权衡、@MainActor 放置、async/await 与组合选择、内存管理陷阱以及 iOS 特定的反模式。在为 iOS/tvOS 应用程序编写 Swift 代码、审查 Swift 架构决策或调试内存/并发问题时使用。触发关键字:Swift、iOS、tvOS、actor、async、Sendable、retain Cycle、内存泄漏、struct、class、protocol、generic 来源:kaakati/rails-enterprise-dev。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/kaakati/rails-enterprise-dev --skill swift-conventions- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-13
- 更新时间
- 2026-02-18
快速解答
什么是 swift-conventions?
Claude 不会本能地做出专家 Swift 决策:结构与类的权衡、@MainActor 放置、async/await 与组合选择、内存管理陷阱以及 iOS 特定的反模式。在为 iOS/tvOS 应用程序编写 Swift 代码、审查 Swift 架构决策或调试内存/并发问题时使用。触发关键字:Swift、iOS、tvOS、actor、async、Sendable、retain Cycle、内存泄漏、struct、class、protocol、generic 来源:kaakati/rails-enterprise-dev。
如何安装 swift-conventions?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/kaakati/rails-enterprise-dev --skill swift-conventions 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/kaakati/rails-enterprise-dev
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-13