·swift-best-practices
</>

swift-best-practices

sammcj/agentic-coding

在为 iOS 或 macOS 项目编写或审查 Swift 代码时应使用此技能。应用现代 Swift 6+ 最佳实践、并发模式、API 设计指南和迁移策略。涵盖 async/await、actors、MainActor、Sendable、类型化抛出和 Swift 6 重大更改。

0安装·0热度·@sammcj

安装

$npx skills add https://github.com/sammcj/agentic-coding --skill swift-best-practices

SKILL.md

Apply modern Swift development best practices focusing on Swift 6+ features, concurrency safety, API design principles, and code quality guidelines for iOS and macOS projects targeting macOS 15.7+.

Swift 6 enables complete concurrency checking by default with region-based isolation (SE-0414). The compiler now proves code safety, eliminating many false positives whilst catching real concurrency issues at compile time.

Must Explicitly Mark Types with @MainActor (SE-0401) Property wrappers no longer infer actor isolation automatically.

在为 iOS 或 macOS 项目编写或审查 Swift 代码时应使用此技能。应用现代 Swift 6+ 最佳实践、并发模式、API 设计指南和迁移策略。涵盖 async/await、actors、MainActor、Sendable、类型化抛出和 Swift 6 重大更改。 来源:sammcj/agentic-coding。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/sammcj/agentic-coding --skill swift-best-practices
分类
</>开发工具
认证
收录时间
2026-02-09
更新时间
2026-02-18

快速解答

什么是 swift-best-practices?

在为 iOS 或 macOS 项目编写或审查 Swift 代码时应使用此技能。应用现代 Swift 6+ 最佳实践、并发模式、API 设计指南和迁移策略。涵盖 async/await、actors、MainActor、Sendable、类型化抛出和 Swift 6 重大更改。 来源:sammcj/agentic-coding。

如何安装 swift-best-practices?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/sammcj/agentic-coding --skill swift-best-practices 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/sammcj/agentic-coding

详情

分类
</>开发工具
来源
user
收录时间
2026-02-09