Builds or reviews Apple-platform networking with URLSession, async/await, and structured concurrency. Covers REST clients, uploads/downloads, WebSockets, pagination, retries, middleware, caching, background transfers, reachability, and error handling.
Ships in all-ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build and review Apple-platform networking using URLSession with native async/await, structured concurrency, and Network.framework. Targets Swift 6.4 / iOS 26+.
URLSession.shared.data(for:), download(for:), and bytes(for:) for all foreground network operations.URLSession only throws for transport-level failures (offline, DNS, timeout). It does not throw on 4xx or 5xx responses. Always validate (200..<300).contains(httpResponse.statusCode).let (data, response) = try await session.data(for: request)
guard let httpResponse = response as? HTTPURLResponse else {
throw NetworkError.invalidResponse
}
guard (200..<300).contains(httpResponse.statusCode) else {
throw NetworkError.httpError(statusCode: httpResponse.statusCode, data: data)
}
Differentiate error categories: transport errors (URLError), decoding errors (DecodingError), client errors (4xx), server errors (5xx), and cancellation (CancellationError).
| Transfer Mode | API Pattern | Session Configuration | Suspension Behavior |
|---|---|---|---|
| Foreground Data | try await session.data(for:) | .default or .ephemeral | Cancelled on app suspension |
| Foreground Download | try await session.download(for:) | .default | Pauses/cancels on suspension |
| Background Transfer | session.downloadTask(with:) with delegate | URLSessionConfiguration.background(withIdentifier:) | Managed out-of-process; relaunches app on finish |
| WebSocket | session.webSocketTask(with:) | .default | Reconnection required on resume |
NWPathMonitor, read Network Framework.URLSession.data(for:) throws on HTTP 404 or 500 responses instead of inspecting statusCode.URLSessionConfiguration, which requires delegate callbacks.NWPathMonitor instances or starting monitoring without setting a dispatch queue.urlSession(_:downloadTask:didFinishDownloadingTo:) (file is deleted upon return).evals/evals.json (opens in a new tab)references/api-client-and-request-building.md (opens in a new tab)references/background-transfers.md (opens in a new tab)references/file-storage-patterns.md (opens in a new tab)references/lightweight-clients.md (opens in a new tab)references/network-framework.md (opens in a new tab)references/pagination-and-urlprotocol-testing.md (opens in a new tab)references/resilience-security-and-streaming.md (opens in a new tab)references/uploads-and-downloads.md (opens in a new tab)references/websocket-networking.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/all-ios-skills:ios-networkingfrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skills95 skills in this plugin
/accessorysetupkitDiscover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions./activitykitBuild or review Live Activities and Dynamic Island experiences with ActivityKit, including lifecycle, layouts, push updates, and scheduled delivery. Use for time-sensitive Lock Screen or Dynamic Island state; route ordinary widgets to widgetkit./adattributionkitMeasure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement.Other plugins' skills for the same job