swift-concurrency-expert
यह क्या करती है
यह स्किल Swift concurrency से जुड़े कम्पाइलर errors का निदान करती है और actors, main-thread isolation और साझा डेटा के लिए सुरक्षित सुधार लगाती है। यह Swift 6 ऐप्स पर काम करने वाले डेवलपर्स के लिए है।
कब इस्तेमाल करें
- ✓जब Swift actors, isolation या Sendable types के बारे में errors दिखाए।
- ✓जब आपको बैकग्राउंड काम को सुरक्षित रूप से मेन थ्रेड से हटाना है।
- ✓जब आप मौजूदा Swift concurrency सेटअप की समीक्षा चाहते हैं।
Skill का लिंक
https://github.com/steipete/agent-scripts/blob/main/skills/swift-concurrency-expert/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Xcode कहता है कि मेरे view model में Sendable error है। सबसे छोटे सुरक्षित बदलाव से इसे ठीक कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट कम्पाइलर का सटीक संदेश लेता है, मौजूदा actor सेटिंग ढूँढता है, और ऐसा सबसे छोटा सुधार लगाता है जो व्यवहार वही रखे। बिना थ्रेड सुरक्षा दिखाए असुरक्षित शॉर्टकट से बचता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Swift Concurrency Expert
Attribution: copied from @Dimillian’s Dimillian/Skills (2025-12-31).
Overview
Review and fix Swift Concurrency issues in Swift 6.2+ codebases by applying actor isolation, Sendable safety, and modern concurrency patterns with minimal behavior changes.
Workflow
1. Triage the issue
- Capture the exact compiler diagnostics and the offending symbol(s).
- Identify the current actor context (
@MainActor,actor,nonisolated) and whether a default actor isolation mode is enabled. - Confirm whether the code is UI-bound or intended to run off the main actor.
2. Apply the smallest safe fix
Prefer edits that preserve existing behavior while satisfying data-race safety.
Common fixes:
- UI-bound types: annotate the type or relevant members with
@MainActor. - Protocol conformance on main actor types: make the conformance isolated (e.g.,
extension Foo: @MainActor SomeProtocol). - Global/static state: protect with
@MainActoror move into an actor. - Background work: move expensive work into a
@concurrentasync function on anonisolatedtype or use anactorto guard mutable state. - Sendable errors: prefer immutable/value types; add
Sendableconformance only when correct; avoid@unchecked Sendableunless you can prove thread safety.
Reference material
- See
references/swift-6-2-concurrency.mdfor Swift 6.2 changes, patterns, and examples. - See
references/swiftui-concurrency-tour-wwdc.mdfor SwiftUI-specific concurrency guidance.
अक्सर पूछे जाने वाले सवाल
क्या यह ऐप का व्यवहार बदलता है?
स्किल डेटा-रेस सुरक्षा नियम पूरे करते हुए व्यवहार में कम से कम बदलाव रखने का लक्ष्य रखती है।
अनचेक्ड Sendable कब अनुमत है?
स्किल के अनुसार केवल तब, जब थ्रेड सुरक्षा सिद्ध की जा सके।
कौन-से Swift वर्शन लक्षित हैं?
Swift 6.2 और उसके बाद के।
जानकारी
लेखक का मूल विवरण
Swift concurrency review/fix: compiler errors, Sendable, isolation, remediation.
repo: steipete/agent-scripts
लोकप्रियता
- GitHub स्टार
- 7.4k
- रैंकिंग में स्थान
- #13248
- लाइसेंस
- MIT
- अपडेट की गई
- 30/10/2026
कमेंट
- …
इस repository की और skills
beeper
7.4kआपके एजेंट को आपकी लोकल Beeper चैट हिस्ट्री में संदेश खोजने और यह पता करने में मदद करती है कि कोई अस्पष्ट संकेत किस चैट या संपर्क का है।
cloudflare-registrar
7.4kआपके एजेंट को Cloudflare Registrar पर डोमेन की कीमत और उपलब्धता जाँचने, और पुष्टि के बाद डोमेन रजिस्टर या सूचीबद्ध करने में मदद करती है।
codexbar
7.4kआपके एजेंट को Codex, Claude और Kimi जैसी AI सेवाओं पर आपका कितना उपयोग बचा है, यह जाँचने में मदद करती है, जिसमें सीमा, क्रेडिट और रीसेट का समय शामिल है।
create-cli
7.4kआपके एजेंट को कमांड लाइन टूल के कमांड, फ़्लैग, हेल्प टेक्स्ट, आउटपुट और एरर इस तरह डिज़ाइन करने में मदद करती है कि वह लोगों और स्क्रिप्ट दोनों के लिए काम करे।
मिलती-जुलती skills
android-clean-architecture
280kयह आपके एजेंट को Android projects को व्यवस्थित तरीके से संभालने देता है। यह code को ऐसा ढांचा देता है कि उसकी देखभाल और नए features जोड़ना आसान हो।
compose-multiplatform-patterns
280kKMP projects में Compose Multiplatform और Jetpack Compose patterns इस्तेमाल करने में आपके एजेंट की मदद करता है। इसमें state, navigation, theming और performance शामिल हैं।
dart-flutter-patterns
280kयह आपके एजेंट को Dart और Flutter apps के लिए code लिखने देता है। यह आधुनिक patterns इस्तेमाल करके मज़बूत और आसानी से संभलने वाले apps बनाता है।