Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add koshkinvv/ios-agent-skills --skill ios-networkinggit clone --depth 1 https://github.com/koshkinvv/ios-agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/koshkinvv/ios-agent-skills/ios-networking)<a href="https://agentmods.dev/skills/koshkinvv/ios-agent-skills/ios-networking"><img src="https://agentmods.dev/badge/skills/koshkinvv/ios-agent-skills/ios-networking/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/koshkinvv/ios-agent-skills/ios-networking"><img src="https://agentmods.dev/badge/skills/koshkinvv/ios-agent-skills/ios-networking.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00174 | $0.02237 |
| Opus 5.5 | $0.00070 | $0.00895 |
| Sonnet 5.5 | $0.00035 | $0.00447 |
| Haiku 4.5 | $0.00017 | $0.00224 |
Grade A, and why
ios-networking scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.
iOS Networking Skill
Core Rules
- Always use async/await (NOT completion handlers) for new networking code. Completion handlers are legacy — Swift Concurrency is the standard since iOS 15.
- Build a generic APIClient with an Endpoint protocol for type-safe requests. Never scatter raw URLSession calls throughout the codebase.
- Use actor-based TokenManager for thread-safe OAuth2 token refresh with deduplication. Never allow multiple simultaneous refresh requests.
- Handle ALL HTTP status codes properly:
- 401 → refresh token, retry original request
- 429 → respect Retry-After header, exponential backoff
- 5xx → retry with exponential backoff + jitter
- 4xx (other) → client error, do not retry
- Use URLProtocol mocking for tests (NOT mocking URLSession itself). URLProtocol intercepts at the transport layer and tests real serialization paths.
- Reuse URLSession instances — creating a session per request prevents HTTP/2 connection multiplexing and wastes memory.
- Use URLCache with
.useProtocolCachePolicyas the default cache policy. Configure cache size explicitly for production apps. - NWPathMonitor for connectivity awareness, NOT pre-flight checks. Never gate a request on reachability — just make the request and handle the error.
- Codable with
.convertFromSnakeCaseand custom date strategies. Avoid manual CodingKeys when snake_case conversion handles it. - Keep ATS enabled. Use domain-specific exceptions in Info.plist only when absolutely necessary. Never disable ATS globally.
Decision Guide
| Task | Solution | Reference |
|---|---|---|
| Simple GET/POST | URLSession.shared.data(for:) |
urlsession.md |
| Multiple endpoints | Generic APIClient + Endpoint protocol | api-client.md |
| Auth with token refresh | Actor-based TokenManager | error-retry.md |
| Real-time data | URLSessionWebSocketTask | advanced.md |
| Large file download | URLSession download task | urlsession.md |
| Background upload | Background URLSession configuration | urlsession.md |
| Offline support | URLCache + .returnCacheDataElseLoad |
advanced.md |
| Network status | NWPathMonitor | advanced.md |
| File upload | MultipartFormData builder | advanced.md |
| Dynamic JSON | JSONValue enum | api-client.md |
| Certificate pinning | URLSessionDelegate | advanced.md |
| GraphQL | Apollo iOS 2.0 | advanced.md |
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 210 lines · 174 tokens per session scan A aa7fa643dde6
ios-networking is a skill published in the GitHub repository koshkinvv/ios-agent-skills (6 stars, last pushed 8mo ago), licensed MIT. It adds 174 tokens to every session and 2,237 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
ios-networking compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ios-networkingkoshkinvv/ios-agent-skills | Skill | 6 | 8mo ago | MIT | A | 174 | Claude Code, Codex |
| flutterericrisco/rsc-harness | Skill | 691 | 5d ago | MIT | A | 91 | Claude Code, Codex |
| compose-multiplatformericrisco/rsc-harness | Skill | 691 | 5d ago | MIT | A | 80 | Claude Code, Codex |
| react-nativeericrisco/rsc-harness | Skill | 691 | 5d ago | MIT | A | 90 | Claude Code, Codex |
| ios-accessibilityrusel95/ios-agent-skills | Skill | 14 | 1mo ago | MIT | A | 253 | Claude Code |
| ios-localizationrusel95/ios-agent-skills | Skill | 14 | 1mo ago | MIT | A | 265 | Claude Code |
| ios-loggingrusel95/ios-agent-skills | Skill | 14 | 1mo ago | MIT | A | 183 | Claude Code |