networking-auditor
Automatically scans for deprecated networking APIs and anti-patterns that cause App Store rejections.
How to Use This Agent
Natural language (automatic triggering):
- "Can you check my networking code for deprecated APIs?"
- "Review my code for Network.framework best practices"
- "I'm getting App Store review warnings about networking"
- "Scan for networking anti-patterns before submission"
Explicit command:
bash
/axiom:audit-networkingWhat It Checks
Deprecated APIs
- SCNetworkReachability (HIGH) — Race conditions, App Store concern
- CFSocket (MEDIUM) — 30% CPU penalty, no smart connection
- NSStream / CFStream (MEDIUM) — No TLS integration
- NSNetService (LOW) — Legacy API
- Manual DNS (MEDIUM) — getaddrinfo, gethostbyname
Anti-Patterns
- Reachability Before Connect (HIGH) — Race condition
- Hardcoded IP Addresses (MEDIUM) — Breaks VPN/proxy
- Missing [weak self] (MEDIUM) — Memory leaks in callbacks
- Blocking Socket Calls (HIGH) — ANR risk
- Not Handling Waiting State (LOW) — Poor UX
Model & Tools
- Model: haiku
- Tools: Glob, Grep, Read
- Color: blue
Related Skills
- networking skill — Network.framework patterns (NWConnection, NetworkConnection)
- networking-diag skill — Systematic networking troubleshooting
- network-framework-ref skill — Complete API reference