Add expert Swift Concurrency guidance to your AI coding tool (Agent Skills open format): safe concurrency, performance optimization, and Swift 6 migration.
npx skills add https://github.com/avdlee/swift-concurrency-agent-skill --skill swift-concurrencyInstallez cette compétence avec la CLI et commencez à utiliser le flux de travail SKILL.md dans votre espace de travail.
Expert guidance for any AI coding tool that supports the Agent Skills open format — safe concurrency, performance, and Swift 6+ migration.
Based on the comprehensive Swift Concurrency Course, distilled into actionable, concise references for agents.
Install this skill with a single command:
npx skills add https://github.com/avdlee/swift-concurrency-agent-skill --skill swift-concurrency
For more information, visit the skills.sh platform page.
Then use the skill in your AI agent, for example:
Use the swift concurrency skill and analyze the current project for Swift Concurrency improvements
To install this Skill for your personal use in Claude Code:
Add the marketplace:
/plugin marketplace add AvdLee/Swift-Concurrency-Agent-Skill
Install the Skill:
/plugin install swift-concurrency@swift-concurrency-agent-skill
To automatically provide this Skill to everyone working in a repository, configure the repository's .claude/settings.json:
{
"enabledPlugins": {
"swift-concurrency@swift-concurrency-agent-skill": true
},
"extraKnownMarketplaces": {
"swift-concurrency-agent-skill": {
"source": {
"source": "github",
"repo": "AvdLee/Swift-Concurrency-Agent-Skill"
}
}
}
}
When team members open the project, Claude Code will prompt them to install the Skill.
Install via pi:
pi install https://github.com/AvdLee/Swift-Concurrency-Agent-Skill
The skill will be available automatically in pi sessions.
swift-concurrency/ folder following your tool’s official skills installation docs (see links below).Follow your tool’s official documentation, here are a few popular ones:
How to verify:
Your agent should reference the triage/playbook in swift-concurrency/SKILL.md and jump into the relevant reference file for your error or task.
This skill gives your AI coding tool comprehensive Swift Concurrency guidance. It can:
@MainActor, custom actors, or nonisolatedSendable conformance correctly for value and reference types@MainActor isolation in testswithMainSerialExecutor for deterministic testingNSManagedObjectIDExpert Knowledge: Based on real-world experience migrating large production codebases to Swift 6, distilled from the comprehensive Swift Concurrency Course.
Non-Opinionated: Focuses on industry-standard best practices and compile-time safety, not architectural preferences. Works with any Swift project, coding style, or architecture.
Swift 6.2 Ready: Covers the latest Swift Concurrency features including:
isolated deinitnonisolated(nonsending) and @concurrentPractical & Concise: Assumes your AI agent is already smart. Focuses on what developers need to know, not what they already understand. Includes code examples for every pattern.
swift-concurrency/
├── SKILL.md # Main skill file with decision trees
└── references/
├── _index.md # TODO: Add description
├── actors.md # Actor isolation, global actors, reentrancy
├── async-algorithms.md # TODO: Add description
├── async-await-basics.md # Fundamentals of async/await syntax
├── async-sequences.md # AsyncSequence and AsyncStream patterns
├── core-data.md # Core Data integration patterns
├── glossary.md # Terms & concepts for Swift Concurrency
├── linting.md # Linting rules for strict concurrency
├── memory-management.md # Retain cycles, weak self, isolated deinit
├── migration.md # Step-by-step Swift 6 migration guide
├── performance.md # Optimization with Xcode Instruments
├── sendable.md # Isolation domains and Sendable conformance
├── tasks.md # Task lifecycle, cancellation, priorities
├── testing.md # Testing concurrent code
└── threading.md # Threads vs tasks, suspension points
Contributions are welcome! This repository follows the Agent Skills open format, which has specific structural requirements.
We strongly recommend using AI assistance for contributions:
Please read CONTRIBUTING.md for:
This skill is maintained to reflect the latest Swift Concurrency best practices and will be updated as the language evolves.
Created by Antoine van der Lee, a Swift Concurrency expert and creator of the Swift Concurrency Course. With years of experience in Swift & Swift Concurrency, this skill distills practical knowledge into actionable guidance for AI assistants. He published tens of articles on Swift Concurrency on his blog called SwiftLee.
This skill is open-source and available under the MIT License. See LICENSE for details.