christopherkarani/agent-skills/swift-concurrency-63

Claude Code and agent skill by christopherkarani/agent-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when Swift code crosses actors or tasks, handles `Sendable`/`sending`, async isolation, cancellation, `TaskGroup`, `Mutex`, atomics, or Swift 6 strict-concurrency diagnostics. Do not invoke for synchronous code with no shared state or isolation boundary.

Install

npx vskill@latest install christopherkarani/agent-skills/swift-concurrency-63

SKILL.md

Swift 6.3 concurrency

Prove isolation and transfer before choosing an annotation. The compiler's diagnostic is evidence about a boundary, not an invitation to suppress checking.

Procedure

  1. Draw the mutable state and its isolation domain: actor/global actor, task region, mutex/atomic, immutable value, or external synchronization.
  2. Identify every boundary and lifetime: await, task creation, detached task, closure capture, actor initializer, sending parameter/result, continuation, and callback.
  3. Prefer ownership transfer, immutable/sendable values, isolated parameters, or actor operations. Use sending when the value is intentionally disconnected/transferred and the API contract should say so.
  4. Choose execution semantics deliberately. Distinguish inherited task isolation from structured lifetime; do not add detached tasks or executor hops without a reason. Verify Swift 6.2/6.3 nonisolated async behavior in the target toolchain.
  5. Select synchronization by access pattern: actor for asynchronous isolated state, Mutex for short synchronous critical sections, atomics for a small formally reasoned state machine, immutable values for read sharing.
  6. Make cancellation cooperative and test it at suspension, retry, child-task, and cleanup boundaries. Test actor reentrancy and ordering around every await.

Read references/concurrency-guide.md for the boundary matrix and diagnostic playbook.

Guardrails

  • @unchecked Sendable requires a written invariant and independent synchronization proof; it is not a migration shortcut.
  • Task.detached discards useful inheritance and increases transfer obligations; use it only when independence is intentional.
  • A mutex critical section must not await, perform unbounded I/O, or call code that can re-enter a conflicting lock.
  • An actor prevents data races but does not preserve invariants across suspension points automatically.

Completion contract

Report isolation domains, transfer points, task lifetimes, cancellation behavior, synchronization choice, and compiler/test evidence under strict concurrency.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/christopherkarani/agent-skills/swift-concurrency-63/badge)](https://verified-skill.com/skills/christopherkarani/agent-skills/swift-concurrency-63)

Something wrong with this skill or its page? Tell us.