Add expert Swift Concurrency guidance to your AI coding tool (Agent Skills open format): safe concurrency, performance optimization, and Swift 6 migration.
See the codeExpert 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.
This repository is packaged as a portable Agent Plugin (spec 1.0.0): compatible clients discover the skill automatically from the root plugin.json manifest and the skills/ directory. Client-specific manifests for Claude Code, Cursor, Codex, and pi are included as well, and the plugin is published in the OpenAI Plugins Directory for ChatGPT and Codex.
Install this skill with a single command:
npx skills@latest add https://github.com/avdlee/swift-concurrency-agent-skill --skill swift-concurrency
For more information, visit the skills.sh platform page.
Installed before the Agent Plugins migration? Run
npx skills@latest updateusing skills CLI 1.5.24 or newer. It migrates the saved skill path without treating the skill as deleted.
Then use the skill in your AI agent, for example:
Use the swift concurrency skill and analyze the current project for Swift Concurrency improvements
This plugin is published in the universal OpenAI Plugins Directory shared by ChatGPT and Codex:
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.
Load the plugin from a local clone by placing it in ~/.cursor/plugins/local, or install it from the Cursor Marketplace once listed. Cursor supports both the portable Agent Plugins manifest (plugin.json) and the Cursor Plugin manifest (.cursor-plugin/plugin.json) included in this repository.
See INSTALLATION.md for all other installation options: pi, Gemini CLI, Autohand Code, and manual installation.
How to verify:
Your agent should reference the triage/playbook in skills/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.
skills/swift-concurrency/
├── SKILL.md # Main skill file with decision trees
└── references/
├── _index.md # Quick navigation index for all reference files
├── actors.md # Actor isolation, global actors, reentrancy
├── async-algorithms.md # AsyncAlgorithms operators: debounce, merge, zip, Combine migration
├── 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
├── observation.md # @Observable isolation, observation tracking, Sendable snapshots
├── 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.
Add expert Swift Concurrency guidance to your AI coding tool (Agent Skills open format): safe concurrency, performance optimization, and Swift 6 migration.
See the codeExpert 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.
This repository is packaged as a portable Agent Plugin (spec 1.0.0): compatible clients discover the skill automatically from the root plugin.json manifest and the skills/ directory. Client-specific manifests for Claude Code, Cursor, Codex, and pi are included as well, and the plugin is published in the OpenAI Plugins Directory for ChatGPT and Codex.
Install this skill with a single command:
npx skills@latest add https://github.com/avdlee/swift-concurrency-agent-skill --skill swift-concurrency
For more information, visit the skills.sh platform page.
Installed before the Agent Plugins migration? Run
npx skills@latest updateusing skills CLI 1.5.24 or newer. It migrates the saved skill path without treating the skill as deleted.
Then use the skill in your AI agent, for example:
Use the swift concurrency skill and analyze the current project for Swift Concurrency improvements
This plugin is published in the universal OpenAI Plugins Directory shared by ChatGPT and Codex:
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.
Load the plugin from a local clone by placing it in ~/.cursor/plugins/local, or install it from the Cursor Marketplace once listed. Cursor supports both the portable Agent Plugins manifest (plugin.json) and the Cursor Plugin manifest (.cursor-plugin/plugin.json) included in this repository.
See INSTALLATION.md for all other installation options: pi, Gemini CLI, Autohand Code, and manual installation.
How to verify:
Your agent should reference the triage/playbook in skills/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.
skills/swift-concurrency/
├── SKILL.md # Main skill file with decision trees
└── references/
├── _index.md # Quick navigation index for all reference files
├── actors.md # Actor isolation, global actors, reentrancy
├── async-algorithms.md # AsyncAlgorithms operators: debounce, merge, zip, Combine migration
├── 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
├── observation.md # @Observable isolation, observation tracking, Sendable snapshots
├── 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.