मुख्य सामग्री पर जाएँ
Skillpedia
मोबाइल ऐप7.4k · #13248

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/steipete/agent-scripts/blob/main/skills/swift-concurrency-expert/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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 @MainActor or move into an actor.
  • Background work: move expensive work into a @concurrent async function on a nonisolated type or use an actor to guard mutable state.
  • Sendable errors: prefer immutable/value types; add Sendable conformance only when correct; avoid @unchecked Sendable unless you can prove thread safety.

Reference material

  • See references/swift-6-2-concurrency.md for Swift 6.2 changes, patterns, and examples.
  • See references/swiftui-concurrency-tour-wwdc.md for 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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

beeper

7.4k

आपके एजेंट को आपकी लोकल Beeper चैट हिस्ट्री में संदेश खोजने और यह पता करने में मदद करती है कि कोई अस्पष्ट संकेत किस चैट या संपर्क का है।

डेटाडेटाबेस

cloudflare-registrar

7.4k

आपके एजेंट को Cloudflare Registrar पर डोमेन की कीमत और उपलब्धता जाँचने, और पुष्टि के बाद डोमेन रजिस्टर या सूचीबद्ध करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

codexbar

7.4k

आपके एजेंट को Codex, Claude और Kimi जैसी AI सेवाओं पर आपका कितना उपयोग बचा है, यह जाँचने में मदद करती है, जिसमें सीमा, क्रेडिट और रीसेट का समय शामिल है।

AI और एजेंटएजेंट

create-cli

7.4k

आपके एजेंट को कमांड लाइन टूल के कमांड, फ़्लैग, हेल्प टेक्स्ट, आउटपुट और एरर इस तरह डिज़ाइन करने में मदद करती है कि वह लोगों और स्क्रिप्ट दोनों के लिए काम करे।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills