Skill · em Construir interface
swift-concurrency-expert
Review and fix Swift concurrency issues such as actor isolation and Sendable violations.
Procedência
- Origem: davila7/claude-code-templates
- Caminho:
cli-tool/components/skills/development/swift-concurrency-expert - Versão fixada:
57f899e5394bb8ca166f38eacae8f0853cbfe033 - Licença: MIT
- Espelhado em 25/09/2026
- 2 downloads no Claude Code Templates (lido em 25/09/2026)
Antes de instalar
5 arquivos · 18,9 KB · só texto, nenhum script
Instalar na sua CLI
O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.
Claude Code
Neste projeto: instala em .claude/skills/swift-concurrency-expert/.
d=".claude/skills/swift-concurrency-expert" u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/development/swift-concurrency-expert" curl -fsSL --create-dirs \ -o "$d/SKILL.md" "$u/SKILL.md" \ -o "$d/agents/openai.yaml" "$u/agents/openai.yaml" \ -o "$d/references/approachable-concurrency.md" "$u/references/approachable-concurrency.md" \ -o "$d/references/swift-6-2-concurrency.md" "$u/references/swift-6-2-concurrency.md" \ -o "$d/references/swiftui-concurrency-tour-wwdc.md" "$u/references/swiftui-concurrency-tour-wwdc.md" \ -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"
Global: instala em ~/.claude/skills/swift-concurrency-expert/.
d="$HOME/.claude/skills/swift-concurrency-expert" u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/development/swift-concurrency-expert" curl -fsSL --create-dirs \ -o "$d/SKILL.md" "$u/SKILL.md" \ -o "$d/agents/openai.yaml" "$u/agents/openai.yaml" \ -o "$d/references/approachable-concurrency.md" "$u/references/approachable-concurrency.md" \ -o "$d/references/swift-6-2-concurrency.md" "$u/references/swift-6-2-concurrency.md" \ -o "$d/references/swiftui-concurrency-tour-wwdc.md" "$u/references/swiftui-concurrency-tour-wwdc.md" \ -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"
Codex
Neste projeto: instala em .agents/skills/swift-concurrency-expert/.
d=".agents/skills/swift-concurrency-expert" u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/development/swift-concurrency-expert" curl -fsSL --create-dirs \ -o "$d/SKILL.md" "$u/SKILL.md" \ -o "$d/agents/openai.yaml" "$u/agents/openai.yaml" \ -o "$d/references/approachable-concurrency.md" "$u/references/approachable-concurrency.md" \ -o "$d/references/swift-6-2-concurrency.md" "$u/references/swift-6-2-concurrency.md" \ -o "$d/references/swiftui-concurrency-tour-wwdc.md" "$u/references/swiftui-concurrency-tour-wwdc.md" \ -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"
Global: instala em ~/.agents/skills/swift-concurrency-expert/.
d="$HOME/.agents/skills/swift-concurrency-expert" u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/development/swift-concurrency-expert" curl -fsSL --create-dirs \ -o "$d/SKILL.md" "$u/SKILL.md" \ -o "$d/agents/openai.yaml" "$u/agents/openai.yaml" \ -o "$d/references/approachable-concurrency.md" "$u/references/approachable-concurrency.md" \ -o "$d/references/swift-6-2-concurrency.md" "$u/references/swift-6-2-concurrency.md" \ -o "$d/references/swiftui-concurrency-tour-wwdc.md" "$u/references/swiftui-concurrency-tour-wwdc.md" \ -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"
Antigravity
Neste projeto: instala em .agents/skills/swift-concurrency-expert/.
d=".agents/skills/swift-concurrency-expert" u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/development/swift-concurrency-expert" curl -fsSL --create-dirs \ -o "$d/SKILL.md" "$u/SKILL.md" \ -o "$d/agents/openai.yaml" "$u/agents/openai.yaml" \ -o "$d/references/approachable-concurrency.md" "$u/references/approachable-concurrency.md" \ -o "$d/references/swift-6-2-concurrency.md" "$u/references/swift-6-2-concurrency.md" \ -o "$d/references/swiftui-concurrency-tour-wwdc.md" "$u/references/swiftui-concurrency-tour-wwdc.md" \ -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"
Global: instala em ~/.gemini/antigravity-cli/skills/swift-concurrency-expert/.
d="$HOME/.gemini/antigravity-cli/skills/swift-concurrency-expert" u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/development/swift-concurrency-expert" curl -fsSL --create-dirs \ -o "$d/SKILL.md" "$u/SKILL.md" \ -o "$d/agents/openai.yaml" "$u/agents/openai.yaml" \ -o "$d/references/approachable-concurrency.md" "$u/references/approachable-concurrency.md" \ -o "$d/references/swift-6-2-concurrency.md" "$u/references/swift-6-2-concurrency.md" \ -o "$d/references/swiftui-concurrency-tour-wwdc.md" "$u/references/swiftui-concurrency-tour-wwdc.md" \ -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"
Peça ao Rook
Já usa o Rook Labs? Cole no chat do Rook: instale a skill https://rooklabs.sh/marketplace/cct.swift-concurrency-expert
Prévia do SKILL.md
---
name: swift-concurrency-expert
description: Review and fix Swift concurrency issues such as actor isolation and Sendable violations.
risk: safe
source: "Dimillian/Skills (MIT)"
date_added: "2026-03-25"
---
# Swift Concurrency Expert
## 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.
## When to Use
- When the user asks to review Swift concurrency usage or fix compiler diagnostics.
- When you need guidance on actor isolation, `Sendable`, `@MainActor`, or async migration.
## Workflow
### 1. Triage the issue
- Capture the exact compiler diagnostics and the offending symbol(s).
- Check project concurrency settings: Swift language version (6.2+), strict concurrency level, and whether approachable concurrency (default actor isolation / main-actor-by-default) is enabled.
- 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.
### 3. Verify the fix
…