Skip to main content
skill CX Codex

ios-networking — Claude Code skill: Swift URLSession networking

A skill that guides your coding agent through Swift networking on iOS and macOS: URLSession with async/await, error handling, retries and pagination.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill ios-networking -a claude-code
Open on GitHub

What ios-networking does

This skill shapes how the agent writes networking code in Swift apps. It covers async/await in URLSession, a protocol-based API client, error handling, pagination, reachability checks, session configuration, App Transport Security, a list of common mistakes and a review checklist.

One point drives the rest: URLSession throws only on transport failures, never on a 4xx or 5xx reply. So the status code gets checked before decoding, and a retry is allowed only for requests that are safe, idempotent or explicitly replayable. Token refresh must not loop. Durable background transfers skip the async conveniences and go through task creation plus delegate callbacks. Large downloads stream to disk via download(for:) instead of filling memory.

Network policy can be validated locally with fake URLProtocol setup: a clean 2xx, a malformed 2xx, a single 401 refresh, bounded 429 and 5xx retries, timeout and offline cases, cancellation, and a 4xx that must not be retried. If the app needs a predictable API client with clear error classes, this is the part worth reading first.

What it helps with

  • build an API client on protocols instead of raw URLSession calls
  • separate transport failures from 4xx and 5xx responses
  • retry idempotent requests only
  • stream big downloads to disk
  • wire durable transfers through delegates

Example prompts for the agent

  • Write an API client on URLSession with async/await and a dedicated error type
  • Review the retry logic here so token refresh cannot loop
  • Stream a response with bytes(for:) and parse it line by line

How to install ios-networking

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill ios-networking -a claude-code

2Manually: put the files in place

~/.claude/skills/ios-networking/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ios-networking/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about ios-networking

How do I install ios-networking in Claude Code?

Run npx skills add dpearson2699/swift-ios-skills --skill ios-networking -a claude-code. The skill lands in ~/.claude/skills/ios-networking/SKILL.md.

What does ios-networking do?

It helps the agent write and review Swift networking for iOS and macOS: URLSession requests, uploads and downloads, streaming, error handling and pagination.

Do background transfers work with the async APIs?

The skill says no. Background sessions are driven by delegates, so you create tasks with downloadTask(with:) or uploadTask(with:fromFile:) and handle the callbacks.

Similar skills

Everything for Mobile →

From the same set86

ios-accessibility Guides accessibility reviews and code adjustments for Apple user interfaces. Helps configure screen reader flows, font scaling, and assistive focus states across devices. CX Codex +1 4,900installs swiftui-performance Diagnoses slow SwiftUI rendering, scroll hitches, and unnecessary view updates. Use it to review code and investigate measurements in Instruments. CX Codex +1 4,600installs app-store-review Catches App Store rejection risks before submission. Audits privacy manifests, StoreKit purchase compliance, and review access blockers. CX Codex +1 4,500installs swiftui-patterns Guides SwiftUI view work around state, composition, environment wiring, and isolated previews. Use it when refactoring a screen or sorting out @Observable ownership. CX Codex +1 4,500installs swift-concurrency Fixes Sendable errors and actor isolation diagnostics in Swift 6.2+ while adopting approachable concurrency features. CX Codex +1 4,300installs ios-localization Guides localization work for iOS and macOS apps, from String Catalogs and plural forms to locale formatting and RTL layouts. CX Codex +1 4,300installs swift-testing Writes Swift Testing unit tests and converts existing XCTest assertions, flagging which checks belong in XCTest or XCUITest. CX Codex +1 4,300installs swiftui-navigation Provides SwiftUI navigation architectures, covering typed stacks, multi-column layouts, sheets, and tabs. Useful when structuring navigation state across iOS and macOS apps. CX Codex +1 4,400installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor