swift-64-concurrency
Skill8 starsChanged 6 days agoApache-2.0View on GitHub
Use when Swift 6.4 concurrency APIs appear: async defer, withTaskCancellationShield, Continuation / withContinuation, ~Sendable, unused throwing Task warnings, async Result, UnownedTaskExecutor Hashable. Do not invoke for ordinary actor/Sendable work that swift-concurrency-63 already covers.
In this repository18 other files it gives its agents.
- codebase-designSkill
- principle-type-system-disciplineSkill
- swift-adversarial-pr-reviewSkill
- swift-api-design-guidelinesSkill
- swift-concurrencySkill
- swift-evaluate-paritySkill
- swift-functional-architectureSkill
- swift-functional-coreSkill
- swift-hexagonal-spmSkill
- swift-hook-xpcSkill
- swift-pr-orchestrationSkill
- swift-protocol-boundariesSkill
- swift-pr-reviewSkill
- swift-systems-safetySkill
- swift-testing-proSkill
- swift-thermo-nuclear-reviewSkill
- swift-type-system-architectureSkill
- swift-value-semanticsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Test success, throw, cancel, and double-resume / drop-without-resume paths.
- Very specific: line 27
Prefer Continuation / withContinuation(of:) when resume-once is a compile-time invariant.
- Very specific: line 28
Write ~Sendable on the type declaration.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Swift 6.4 concurrency
Prove isolation and lifetime first (swift-concurrency-63). This skill only
covers APIs that shipped in 6.4.
Procedure
- Confirm Swift 6.4 (
swift --version). Stop if the project is on 6.3 or Xcode's/usr/bin/swift. - Classify the work: cleanup-on-exit, resume-once bridge, Sendable audit, unstructured task, or storing an outcome.
- Pick the 6.4 tool from the table in references/concurrency-64.md.
- Compile the smallest example. Treat new warnings on unused throwing
Task { }as real bugs, not noise. - Test success, throw, cancel, and double-resume / drop-without-resume paths.
Guardrails
defer { await … }still observes cancellation. Wrap teardown inwithTaskCancellationShieldwhen the work must finish after cancel.withTaskCancellationShieldis for short cleanup. Do not hide a long operation from cancellation.- Prefer
Continuation/withContinuation(of:)when resume-once is a compile-time invariant. Convert toCheckedContinuationonly when two escaping callbacks may fire and the library promises exactly one. - Write
~Sendableon the type declaration. Do not combine it withSendableon the same type. A subclass may still opt in. _ = Task { try await … }is allowed but means "ignore failure on purpose." Prefer handling inside the task.await Result { try await … }is for storing an outcome. Do not wrap everytry await.
Completion contract
Report isolation domains, which 6.4 API was chosen and why, cancel/resume proof, and compiler evidence under Swift 6.4.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

