Trademarks of their respective owners. KissMySkills is not affiliated with or endorsed by them.
How it works
Ask it something hard.
📎 ai-skill-for-swift.txtLOADED ✓
Swift 6 gives me 'Sending self.image risks causing data races' in my image loader class. How do I fix it?
CLAUDE · WITH THIS SKILLYou get: the cause in one line (a non-isolated class passing mutable state across an async boundary) -> a swift code block rewriting the loader as an actor with a private cache and an async throwing image(for:) method -> how to call it with try await from a Task and why returning UIImage is fine -> a one-line why about actors serialising access -> the next action: replace the class, build, and paste any remaining Sendable warnings.
Questions before you buy? A person answers, usually the same day: hello@kissmyskills.com
// the file itself
Read it before you buy it.
The first lines of the file your AI will read, exactly as delivered. Nothing rewritten for the page.
Use the name Once the file is loaded, talk to it by name: “Serge, check this page.” That is what the name is for. It also keeps several skills apart in one chat.
// the skill your AI runs on
You are a senior Swift developer sitting next to the user in Xcode as their pair programmer, across async await and actors, Sendable, SwiftUI and UIKit. You have been activated to write Swift that compiles clean and stays tested.
KissMySkills.com | Install: paste this whole file into Claude Projects (Project instructions), a custom GPT (Instructions), a Gemini Gem, or your AI's system prompt. Then just ask questions the way you normally would. You are a senior Swift developer acting as the user's pair programmer: you know the language, the standard library, Swift concurrency, the Apple frameworks that Swift code usually touches (Foundation, SwiftUI, UIKit, Combine), Swift Package Manager and Xcode tooling, and you review code the way a careful colleague would. You are not a job-role persona; you sit next to the user inside Xcode and the terminal. You optimise for safe, readable, idiomatic Swift that compiles without warnings and is tested. Tone: direct, practical, code first, explanation second. · Language core: value types (struct, enum) vs reference types (class, actor), let vs var, optionals and unwrapping (if let, guard let, ??, optional chaining), enums with associated values and pattern matching, protocols with associated types and extensions, generics and where clauses, opaque types (some) and existentials (any), property wrappers, result builders, closures and capture lists ([weak self]), error handling with throws, do/catch, Result, typed throws in Swift 6, access control (private, fileprivate, internal, public, open). · Concurrency: async/await, Task and TaskGroup, structured concurrency and cancellation, actors and @MainActor, Sendable, isolation checking, AsyncSequence and AsyncStream, Swift 6 strict concurrency mode and the migration issues it raises, bridging from completion handlers with withCheckedContinuation, Dispatch and OperationQueue for legacy code. · Memory: ARC, strong reference cycles, weak and unowned, copy-on-write collections, the Instruments Leaks and Allocations templates, ownership modifiers (borrowing, consuming) and non-copyable types (~Copyable) in recent versions. · Standard library and Foundation: String and its Unicode behaviour, Array, Dictionary, Set, Sequence and Collection protocols, map, compactMap, flatMap, reduce, lazy, Codable with custom CodingKeys and decoding strategies, Date and Calendar, URL and URLSession, FileManager, JSONDecoder and JSONEncoder, NumberFormatter and the newer format styles, Measurement, Regex and RegexBuilder (Swift 5.7+). · Tooling: Xcode (schemes, targets, build settings, Instruments, Previews), Swift Package Manager (Package.swift, targets, products, dependencies, swift build, swift test, swift run), swiftc, the Swift REPL, xcodebuild, swiftlint and swift-format, Xcode Cloud, fastlane at the edges. · Testing: XCTest (XCTAssert family, expectations, async tests, XCTMeasure), the Swift Testing framework (@Test, #expect, #require, parameterised tests, traits) in recent Xcode versions, test plans, UI tests with XCUITest, snapshot testing libraries. · Frameworks Swift code commonly touches: SwiftUI (State, Binding, Observable and ObservableObject, Environment, navigation stacks, lists, modifiers), UIKit (view controllers, Auto Layout, diffable data sources), Combine (Publisher, sink, assign, operators), SwiftData and Core Data, CloudKit, Core Location, AVFoundation, WidgetKit, App Intents; Swift on the server with Vapor and Hummingbird; Swift on Linux differences (Foundation coverage, no UIKit). · Interop: Objective-C bridging headers, @objc and dynamic, NS types, C libraries via module maps, Swift and C++ interoperability in recent versions. · Common gotchas: force unwraps crashing in production, retain cycles in closures stored on self, blocking the main thread, misuse of unowned, integer overflow traps, String indexing by Int not allowed, Codable failing silently on optional fields, Sendable warnings when moving to Swift 6, slow compile times from complex type inference in long expressions, Xcode build cache issues (clean build folder, derived data). · Style: Swift API Design Guidelines (clarity at the point of use, argument labels that read as phrases), lowerCamelCase for members, UpperCamelCase for types, prefer structs and protocols, avoid abbreviations, mark mutating and throwing clearly. · Swift version and Xcode version, and whether Swift 6 strict concurrency is enabled, because concurrency advice depends on it. · Platform target (iOS, macOS, watchOS, visionOS, Linux server) and minimum deployment version, because API availability differs.
86 lines · .txt · instant download
// what's inside
What's inside this skill
Idiomatic Swift types and extensions with XCTest or Swift Testing cases
Compiler error fixes, including Swift 6 Sendable and isolation warnings
async/await migrations with actors, @MainActor and continuation bridges
Codable models, URLSession calls, Package.swift and Instruments guidance
iOS, macOS and server-side developers who write Swift in Xcode or SwiftPM every day.
// two ways to get it
Use it inside your AI, or download it once.
Library plan
This skill and 2,500+ others, inside your chat
$9/mocancel anytime, or $59 a year
All 2,500+ skills, prompt packs and agents, loaded the moment you ask
Nothing to download or paste: connect once in Claude, ChatGPT, Claude Code or Cursor
New skills every week and 10 catalog files a month to download
Trademarks of their respective owners. KissMySkills is not affiliated with or endorsed by them.
// ask your assistant
Or let your AI set up this skill for you.
Go to kissmyskills.com/pages/connector and set up the "AI Skill for Swift" skill (handle: ai-skill-for-swift) for me
Paste it into Claude, ChatGPT, Claude Code, Cursor or Codex. Your AI walks you through connecting KissMySkills (about 3 minutes, 7-day free trial) and loads the skill. What your AI will read →
What you're actually buying
This Claude/ChatGPT skill gives you a Swift AI pair programmer for the code you write every day: idiomatic types and extensions with the matching XCTest or Swift Testing test, plain-language fixes for compiler errors and Sendable data race warnings, async/await migrations with actors and @MainActor, Codable models with CodingKeys plus the URLSession call, Package.swift setups that build on Linux, and reviews that catch force unwraps and retain cycles.
It knows value vs reference semantics, optionals, generics, opaque and existential types, structured concurrency and Swift 6 strict concurrency mode, ARC and Instruments, Foundation, SwiftUI, UIKit and Combine as far as Swift code touches them, and Swift Package Manager and Xcode tooling. It is a language helper, not a job-role persona. It does not build or run anything; it writes the code, the test and the command, and you run them.
Works the same way in Claude, ChatGPT and Gemini. One purchase, download the file, install in under 2 minutes, then paste your Swift the way you would show it to a senior colleague. Pairs with Indira, iOS Developer, the persona skill; this one is the helper inside Swift.
// how to install
Under 2 minutes
Four steps. Any AI chat.
01
Download the file
After checkout, the download link lands in your inbox. Save the .txt file anywhere on your device.
02
Open your AI chat
Any AI chat you already use: Claude, ChatGPT, Gemini, Grok, Copilot or another.
03
Paste the prompt
Open the .txt file, copy the prompt section and paste it into Claude or ChatGPT - or add it to a Project so it is always there.
04
Start working
Your AI is now configured as a specialist. Ask it anything inside its domain.
No technical knowledge required.
With Library there is nothing to download. Connect your AI once, then ask for any skill by name.
It turns Claude or ChatGPT into a Swift AI pair programmer that writes idiomatic Swift, explains and fixes compiler errors, migrates callback code to async/await and actors, builds Codable models and networking, sets up Swift packages, reviews your files for optionals, retain cycles and isolation issues, and writes XCTest or Swift Testing cases.
Does it build or run my Swift code for me?+
No. It does not open Xcode, run swift build or execute your tests. It writes the Swift code, the test and the exact command, and you run them yourself. Anything that migrates a data store, deletes user data or touches production endpoints comes with a backup or staging warning first.
Does it handle Swift 6 strict concurrency?+
Yes. Tell it your Swift and Xcode versions and whether strict concurrency is on, and it rewrites code with actors, @MainActor, Sendable conformances and continuation bridges for legacy completion handlers, explaining each isolation decision so the warnings go away for a reason and not by suppression.
Is this the same as an iOS Developer role skill, and does it cover SwiftUI?+
No. This is a Swift language helper: syntax, stdlib, concurrency, packages, testing and reviews for any Swift code, including SwiftUI and UIKit as far as the Swift in front of you touches them. An iOS Developer role skill plays a full app-developer persona for product and architecture decisions.
Ready to give your AI a specialist?
This one and 2,500+ others, inside Claude, ChatGPT, Claude Code, Codex or Cursor. Cancel anytime.