[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-75153":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":10,"languages":10,"totalLinesOfCode":10,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":15,"starSnapshotCount":15,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},75153,"Swift-Concurrency-Agent-Skill","AvdLee\u002FSwift-Concurrency-Agent-Skill","AvdLee","Add expert Swift Concurrency guidance to your AI coding tool (Agent Skills open format): safe concurrency, performance optimization, and Swift 6 migration.","https:\u002F\u002Fwww.swiftconcurrencycourse.com",null,1535,96,13,5,0,9,17,38,27,18.96,"MIT License",false,"main",[25,26,27,28,29],"agent-skills","async-await","swift","swift-actor","swift-concurrency","2026-06-12 02:03:33","\u003Cp align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fwww.swiftconcurrencycourse.com?utm_source=github&utm_medium=agent-skill&utm_campaign=swift-concurrency-skill\">\n        \u003Cimg width=\"900px\" src=\"assets\u002Fgithub_readme_banner.jpg\" alt=\"Swift Concurrency Agent Skill banner\">\n    \u003C\u002Fa>\n\u003C\u002Fp>\n\n# Swift Concurrency Agent Skill\n\nExpert guidance for any AI coding tool that supports the [Agent Skills open format](https:\u002F\u002Fagentskills.io\u002Fhome) — safe concurrency, performance, and Swift 6+ migration.\n\nBased on the comprehensive [Swift Concurrency Course](https:\u002F\u002Fwww.swiftconcurrencycourse.com?utm_source=github&utm_medium=agent-skill&utm_campaign=swift-concurrency-skill), distilled into actionable, concise references for agents.\n\n## Who this is for\n- Teams migrating to Swift 6 \u002F strict concurrency who need safe defaults and quick triage.\n- Developers debugging data races, isolation errors, or flaky async tests.\n- Anyone wanting performance-minded concurrency patterns (actors, tasks, Sendable, async streams).\n\n## See also my other skills:\n- [SwiftUI Expert](https:\u002F\u002Fgithub.com\u002FAvdLee\u002FSwiftUI-Agent-Skill)\n- [Core Data Expert](https:\u002F\u002Fgithub.com\u002FAvdLee\u002FCore-Data-Agent-Skill)\n- [Swift Testing Expert](https:\u002F\u002Fgithub.com\u002FAvdLee\u002FSwift-Testing-Agent-Skill)\n\n## How to Use This Skill\n\n### Option A: Using skills.sh (recommended)\nInstall this skill with a single command:\n```bash\nnpx skills add https:\u002F\u002Fgithub.com\u002Favdlee\u002Fswift-concurrency-agent-skill --skill swift-concurrency\n```\n\nFor more information, visit the [skills.sh platform page](https:\u002F\u002Fskills.sh\u002Favdlee\u002Fswift-concurrency-agent-skill\u002Fswift-concurrency).\n\nThen use the skill in your AI agent, for example:  \n> Use the swift concurrency skill and analyze the current project for Swift Concurrency improvements\n\n### Option B: Claude Code Plugin\n\n#### Personal Usage\n\nTo install this Skill for your personal use in Claude Code:\n\n1. Add the marketplace:\n   ```bash\n   \u002Fplugin marketplace add AvdLee\u002FSwift-Concurrency-Agent-Skill\n   ```\n\n2. Install the Skill:\n   ```bash\n   \u002Fplugin install swift-concurrency@swift-concurrency-agent-skill\n   ```\n\n#### Project Configuration\n\nTo automatically provide this Skill to everyone working in a repository, configure the repository's `.claude\u002Fsettings.json`:\n\n```json\n{\n  \"enabledPlugins\": {\n    \"swift-concurrency@swift-concurrency-agent-skill\": true\n  },\n  \"extraKnownMarketplaces\": {\n    \"swift-concurrency-agent-skill\": {\n      \"source\": {\n        \"source\": \"github\",\n        \"repo\": \"AvdLee\u002FSwift-Concurrency-Agent-Skill\"\n      }\n    }\n  }\n}\n```\n\nWhen team members open the project, Claude Code will prompt them to install the Skill.\n\n### Option C: Using pi package manager\n\nInstall via [pi](https:\u002F\u002Fgithub.com\u002Fmariozechner\u002Fpi-mono):\n```bash\npi install https:\u002F\u002Fgithub.com\u002FAvdLee\u002FSwift-Concurrency-Agent-Skill\n```\n\nThe skill will be available automatically in pi sessions.\n\n### Option D: Manual install\n1) **Clone** this repository.  \n2) **Install or symlink** the `swift-concurrency\u002F` folder following your tool’s official skills installation docs (see links below).  \n3) **Use your AI tool** as usual and ask it to use the “swift-concurrency” skill for Swift Concurrency tasks.\n\n#### Where to Save Skills\n\nFollow your tool’s official documentation, here are a few popular ones:\n- **Codex:** [Where to save skills](https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fskills\u002F#where-to-save-skills)\n- **Claude:** [Using Skills](https:\u002F\u002Fdocs.claude.com\u002Fen\u002Fdocs\u002Fagents-and-tools\u002Fagent-skills\u002Foverview)\n- **Cursor:** [Enabling Skills](https:\u002F\u002Fcursor.com\u002Fdocs\u002Fcontext\u002Fskills#enabling-skills)\n\n**How to verify**: \n\nYour agent should reference the triage\u002Fplaybook in `swift-concurrency\u002FSKILL.md` and jump into the relevant reference file for your error or task.\n\n## What This Skill Offers\n\nThis skill gives your AI coding tool comprehensive Swift Concurrency guidance. It can:\n\n### Guide Your Concurrency Decisions\n- Choose the right tool for the job (async\u002Fawait, actors, tasks, task groups)\n- Understand when to use `@MainActor`, custom actors, or `nonisolated`\n- Navigate isolation domains and prevent data races at compile time\n- Apply `Sendable` conformance correctly for value and reference types\n\n### Write Safe Concurrent Code\n- Avoid common pitfalls like actor reentrancy and retain cycles\n- Prevent data races with proper isolation\n- Handle task cancellation and error propagation correctly\n- Manage memory safely in concurrent contexts\n\n### Optimize Performance\n- Choose between serialized, asynchronous, and parallel execution\n- Reduce actor contention and unnecessary suspension points\n- Understand the tradeoffs of parallelism\n\n### Migrate to Swift 6\n- Step-by-step migration strategies for existing codebases\n- Enable strict concurrency checking incrementally\n- Rewrite closure-based code to async\u002Fawait\n- Migrate from Combine\u002FRxSwift to Swift Concurrency\n- Use migration tooling for upcoming Swift features\n\n### Test Concurrent Code\n- Write reliable tests using Swift Testing (recommended) or XCTest\n- Handle `@MainActor` isolation in tests\n- Use `withMainSerialExecutor` for deterministic testing\n- Avoid flaky tests with proper async handling\n\n### Integrate with Core Data\n- Safely pass data between isolation domains using `NSManagedObjectID`\n- Implement the Data Access Object (DAO) pattern\n- Use custom actor executors when needed\n- Avoid common Core Data concurrency pitfalls\n\n## What Makes This Skill Different\n\n**Expert Knowledge**: Based on real-world experience migrating large production codebases to Swift 6, distilled from the comprehensive [Swift Concurrency Course](https:\u002F\u002Fwww.swiftconcurrencycourse.com?utm_source=github&utm_medium=agent-skill&utm_campaign=swift-concurrency-skill).\n\n**Non-Opinionated**: Focuses on industry-standard best practices and compile-time safety, not architectural preferences. Works with any Swift project, coding style, or architecture.\n\n**Swift 6.2 Ready**: Covers the latest Swift Concurrency features including:\n- Default Actor Isolation\n- `isolated deinit`\n- Global Actor Conformance for protocols\n- `nonisolated(nonsending)` and `@concurrent`\n- Approachable Concurrency build settings\n- Concurrency-safe notifications (iOS 26+)\n\n**Practical & 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.\n\n## See it in action\n[![Youtube Video](assets\u002Fagent_skills_watch_on_youtube.png)](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=khekVi1PK3o)\n\n\n## Skill Structure\n\n```\nswift-concurrency\u002F\n├── SKILL.md                # Main skill file with decision trees\n└── references\u002F\n    ├── _index.md               # TODO: Add description\n    ├── actors.md               # Actor isolation, global actors, reentrancy\n    ├── async-algorithms.md     # TODO: Add description\n    ├── async-await-basics.md   # Fundamentals of async\u002Fawait syntax\n    ├── async-sequences.md      # AsyncSequence and AsyncStream patterns\n    ├── core-data.md            # Core Data integration patterns\n    ├── glossary.md             # Terms & concepts for Swift Concurrency\n    ├── linting.md              # Linting rules for strict concurrency\n    ├── memory-management.md    # Retain cycles, weak self, isolated deinit\n    ├── migration.md            # Step-by-step Swift 6 migration guide\n    ├── performance.md          # Optimization with Xcode Instruments\n    ├── sendable.md             # Isolation domains and Sendable conformance\n    ├── tasks.md                # Task lifecycle, cancellation, priorities\n    ├── testing.md              # Testing concurrent code\n    └── threading.md            # Threads vs tasks, suspension points\n```\n\n## Contributing\n\nContributions are welcome! This repository follows the [Agent Skills open format](https:\u002F\u002Fagentskills.io\u002Fhome), which has specific structural requirements.\n\n**We strongly recommend using AI assistance for contributions:**\n- Use the [skill-creator skill](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fskills\u002Ftree\u002Fmain\u002Fskills\u002Fskill-creator) with Claude to ensure proper formatting\n- This helps maintain the Agent Skills format and ensures your contribution works correctly with AI agents\n\n**Please read [CONTRIBUTING.md](CONTRIBUTING.md) for:**\n- How to use the skill-creator skill for contributions\n- Agent Skills format requirements\n- Quality standards and best practices\n- Pull request process\n\nThis skill is maintained to reflect the latest Swift Concurrency best practices and will be updated as the language evolves.\n\n## About the Author\n\nCreated by [Antoine van der Lee](https:\u002F\u002Fwww.avanderlee.com), a Swift Concurrency expert and creator of the [Swift Concurrency Course](https:\u002F\u002Fwww.swiftconcurrencycourse.com?utm_source=github&utm_medium=agent-skill&utm_campaign=swift-concurrency-skill). 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](https:\u002F\u002Fwww.avanderlee.com\u002Fcategory\u002Fconcurrency\u002F) on his blog called SwiftLee.\n\n## License\n\nThis skill is open-source and available under the MIT License. See [LICENSE](LICENSE) for details.\n\n\n\n","该项目为支持Agent Skills开放格式的AI编码工具提供了专业的Swift并发指导，包括安全并发、性能优化及向Swift 6迁移。其核心功能涵盖解决数据竞争、隔离错误或不稳定异步测试等问题，并提供高效的并发模式（如actor、任务、Sendable和异步流）。特别适合正在迁移到Swift 6并需要安全默认设置和快速诊断的团队，以及追求高性能并发模式的开发者。项目采用MIT许可证，具备广泛的兼容性和易用性，能够通过多种方式轻松集成到现有的开发环境中。",2,"2026-06-11 03:52:33","high_star"]