What problem does it solve?
This Skill helps you build reliable iOS/macOS networking layers that correctly handle HTTP errors, decoding failures, cancellation, retries, and reachability instead of producing brittle or hard-to-debug network code.
Core Features & Use Cases
- Modern URLSession + async/await: Uses the iOS-native async/await URLSession APIs (no completion handlers) and enforces response validation before decoding.
- Production-ready request architecture: Supports protocol-based clients, endpoint modeling, JSON encoding/decoding strategies, and request middleware/interceptors for auth/logging concerns.
- Safety and resiliency patterns: Provides structured error types, token refresh retry flows, exponential backoff with cancellation awareness, cursor/offset pagination via AsyncSequence, and reachability monitoring via Network.framework (NWPathMonitor).
Quick Start
Ask the assistant to review your Swift networking layer and return a corrected version that validates HTTP status codes, decodes Codable responses safely, respects Task cancellation, and includes retry/backoff plus reachability handling.