Community程式設計與開發github.com

dimillian/swift-concurrency-expert

Swift 並發性審查與修正,適用於 Swift 6.2+。當要求審查 Swift 並發性使用、改善並發性合規性或修正 Swift 並發性編譯器錯誤時使用。具體操作包括添加 Sendable 一致性、應用 @MainActor 註解、解決 Actor 隔離警告、修復數據競爭診斷,以及將 completion handler 遷移至 async/await。

swift-concurrency-expert 是什麼?

此技能專為審查及修復 Swift 6.2+ 專案中的並發性問題而設計。它能自動識別並修正常見的 Swift 並發性編譯錯誤,例如遺失的 Sendable 一致性、不正確的 Actor 隔離、數據競爭以及錯誤的 MainActor 使用。它還支援將基於 completion handler 的舊式非同步程式碼遷移至現代的 async/await 語法,從而提高程式碼安全性與可讀性。此技能可整合至 AI 編碼助手(如 Claude Code、Cursor 或 Codex),為開發者提供即時的並發性合規性審查與自動修復,大幅降低手動排查錯誤的時間。其操作基於 SKILL.md 文件定義的具體規則與模式,能準確解析 Swift 原始碼並套用最佳實踐。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/dimillian/skills/tree/main/skills/swift-concurrency-expert

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

swift-concurrency-expert 是做什麼的?

Swift 並發性審查與修正,適用於 Swift 6.2+。當要求審查 Swift 並發性使用、改善並發性合規性或修正 Swift 並發性編譯器錯誤時使用。具體操作包括添加 Sendable 一致性、應用 @MainActor 註解、解決 Actor 隔離警告、修復數據競爭診斷,以及將 completion handler 遷移至 async/await。

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

dimillian/app-store-changelog

Create user-facing App Store release notes by collecting and summarizing all user-impacting changes since the last git tag (or a specified ref). Use when asked to generate a comprehensive release changelog, App Store "What's New" text, or release notes based on git history or tags.

dimillian/ios-debugger-agent

Use XcodeBuildMCP to build, run, launch, and debug the current iOS project on a booted simulator. Trigger when asked to run an iOS app, interact with the simulator UI, inspect on-screen state, capture logs/console output, or diagnose runtime behavior using XcodeBuildMCP tools.

dimillian/macos-spm-app-packaging

Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project. Use when you need a from-scratch macOS app layout, SwiftPM targets/resources, a custom .app bundle assembly script, or signing/notarization/appcast steps outside Xcode.

dimillian/swiftui-liquid-glass

Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in new SwiftUI UI, refactor an existing feature to Liquid Glass, or review Liquid Glass usage for correctness, performance, and design alignment.

dimillian/swiftui-performance-audit

Audit and improve SwiftUI runtime performance from code review and architecture. Use for requests to diagnose slow rendering, janky scrolling, high CPU/memory usage, excessive view updates, or layout thrash in SwiftUI apps, and to provide guidance for user-run Instruments profiling when code review alone is insufficient.

dimillian/swiftui-ui-patterns

Best practices and example-driven guidance for building SwiftUI views and components, including navigation hierarchies, custom view modifiers, and responsive layouts with stacks and grids. Use when creating or refactoring SwiftUI UI, designing tab architecture with TabView, composing screens with VStack/HStack, managing @State or @Binding, building declarative iOS interfaces, or needing component-specific patterns and examples.

dimillian/swiftui-view-refactor

Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage. Use when cleaning up a SwiftUI view, splitting long bodies, removing inline actions or side effects, reducing computed `some View` helpers, or standardizing `@Observable` and view model initialization patterns.

相關技能