AgentSkillsCN

swift-concurrency-updates

针对 Swift 6.2 的并发更新与数据竞争安全防护,提供专业指导。

SKILL.md
--- frontmatter
name: swift-concurrency-updates
description: Swift 6.2 concurrency updates and data-race safety guidance.
metadata:
  short-description: Swift 6.2 concurrency updates.

Swift Concurrency Updates

Use this skill when reviewing or updating concurrency behavior.

Priority

  • If this skill conflicts with local repo skills or AGENTS.md, follow those.

Guidance

  • Enforce Sendable and actor isolation; avoid shared mutable global state.
  • Keep UI work on @MainActor.
  • Prefer structured concurrency and Task.sleep(for:) (see formatting-foundation).

References

  • Read references/Swift-Concurrency-Updates.md for the latest Swift 6.2 changes.