networking-layer
Generates a protocol-based networking layer with async/await, error handling, and swappable implementations. Use when user wants to add API client, networking, or HTTP layer.
npx skills add rshankras/claude-code-apple-skills --skill networking-layer --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Networking Layer Generator Generate a modern, protocol-based networking layer using Swift's async/await concurrency, with proper error handling and easy testability. ## When This Skill Activates Use this skill when the user: - Asks to "add networking" or "create API client" - Mentions "HTTP layer" or "REST API" - Wants to "fetch data from API" - Asks about "URLSession wrapper" or "network requests" ## Pre-Generation Checks ### 1. Project Context Detection - [ ] Check Swift version (async/await requires Swift 5.5+) - [ ] Check deployment target (async/await requires iOS 15+ / macOS 12+) - [ ] Search for existing networking implementations - [ ] Identify source file locations ### 2. Conflict Detection Search for existing networking: ``` Glob: **/*API*.swift, **/*Network*.swift, **/*Client*.swift Grep: "URLSession" or "HTTPURLResponse" ``` If found, ask user: - Replace existing implementation? - Extend with new endpoints? ## Configuration Questions Ask user via AskUserQuestion: 1. **Authentication type?** - Bearer token - API key (header or query param) - None - Custom 2. **Base URL configuration?** - Single environment - Multiple environments (dev/staging/prod) 3. **Additional feat
- When This Skill Activates
- Pre-Generation Checks
- 1. Project Context Detection
- 2. Conflict Detection
- Configuration Questions
- Generation Process
- Step 1: Create Core Files
- Step 2: Optional Files
- Step 3: Determine File Location
- Swift 6.2 Concurrency Notes
- @concurrent for Background Work
- MainActor for UI Updates
- Output Format
- Files Created
What does the networking-layer skill do?
Generates a protocol-based networking layer with async/await, error handling, and swappable implementations. Use when user wants to add API client, networking, or HTTP layer.
How do I install it?
Run `npx skills add rshankras/claude-code-apple-skills --skill networking-layer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
