Axiom Networking

CharlesWiltgen/Axiom/.claude-plugin/plugins/axiom/skills/axiom-networking

作者 CharlesWiltgen82c7feafae634a79b4336b3381289441886c122cMIT1.1K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库今天更新

Use when implementing or debugging ANY network connection, API call, or socket in an Apple app. Covers URLSession, Network.framework, NetworkConnection, connection diagnostics.

AI 生成的概览

指导 Apple 平台网络连接的实现与调试,涵盖 URLSession、Network.framework 和连接诊断。

功能
这是一个路由型技能,把代理指向 Apple 网络开发所需的对应参考文件:结构化并发下的 URLSession、Network.framework API(iOS 26+ 的 NetworkConnection、iOS 12-18 的 NWConnection)、TLV 分帧、监听器与浏览器,以及从 BSD socket 或 URLSession StreamTask 迁移。它还负责连接失败调试的分流,包括 DNS、TLS、ATS 和 App Store 被拒问题,并指向用于检查废弃 API 与反模式的 networking-auditor 流程。它产出的是指导与诊断方向,而非代码成品。
适用场景
适用于在 Apple 应用中实现或调试任何网络连接、API 调用或 socket 的场景。适合 HTTP 请求、WebSocket、TCP/UDP 连接、连接超时与 TLS 失败,以及废弃网络 API 的迁移。
运行要求
仅为说明文档,不附带脚本。代理需要文件搜索与读取权限以访问所引用的技能文件。部分需要 Bash、构建、测试、模拟器或崩溃符号化的审计流程被标注为仅限 Claude Code。

Networking

You MUST use this skill for ANY networking work including HTTP requests, WebSockets, TCP connections, or network debugging.

<!-- AXIOM_AUDITOR_INLINE_BEGIN — auto-maintained by scripts/build-inlined-auditors.ts; do not hand-edit -->

Not on Claude Code? Where this router says "Launch some-auditor agent", read that auditor's file in this suite and follow it inline — the same procedure, needing only file search and read.

Available here: skills/networking-auditor.md.

Agents that need Bash — builds, tests, simulators, crash symbolication — stay Claude Code-only; there is no inline equivalent for those.

<!-- AXIOM_AUDITOR_INLINE_END -->

Quick Reference

Symptom / TaskReference
URLSession with structured concurrencySee skills/networking-discipline.md
Network.framework anti-patternsSee skills/networking-discipline.md
Deprecated API migrationSee skills/networking-discipline.md
gRPC Swift — typed RPC, streaming, .proto codegen (WWDC 2026)See skills/networking-discipline.md
Pressure scenarios (reachability, sockets)See skills/networking-discipline.md
NetworkConnection (iOS 26+) API referenceSee skills/network-framework-ref.md
NWConnection (iOS 12-18) API referenceSee skills/network-framework-ref.md
TLV framing, Coder protocolSee skills/network-framework-ref.md
NetworkListener, NetworkBrowser, Wi-Fi AwareSee skills/network-framework-ref.md
Connection timeouts, TLS failuresSee skills/networking-diag.md
Data not arriving, connection dropsSee skills/networking-diag.md
ATS / HTTP / App Store rejectionSee skills/networking-diag.md
Production crisis diagnosisSee skills/networking-diag.md
NWConnection patterns (iOS 12-18)See skills/networking-legacy.md
UDP batch, NWListener, NWBrowserSee skills/networking-legacy.md
BSD sockets → NWConnection migrationSee skills/networking-migration.md
Push/calls on networks without internet (Local Push Connectivity, NEAppPushProvider)Use axiom-integration (skills/local-push-connectivity.md)
NWConnection → NetworkConnection migrationSee skills/networking-migration.md
URLSession StreamTask → NetworkConnectionSee skills/networking-migration.md

Decision Tree

dot
digraph networking {    start [label="Networking task" shape=ellipse];    what [label="What do you need?" shape=diamond];
    start -> what;    what -> "skills/networking-discipline.md" [label="implement patterns,\nanti-patterns,\npressure scenarios"];    what -> "skills/network-framework-ref.md" [label="API reference\n(iOS 26+ or 12-18)"];    what -> "skills/networking-diag.md" [label="debug connection\nfailures"];    what -> "skills/networking-legacy.md" [label="iOS 12-18\nNWConnection patterns"];    what -> "skills/networking-migration.md" [label="migrate from\nsockets/URLSession"];}
  1. URLSession with structured concurrency? → skills/networking-discipline.md
  2. Network.framework / NetworkConnection (iOS 26+)? → skills/network-framework-ref.md
  3. NWConnection (iOS 12-18)? → skills/networking-legacy.md
  4. Migrating from sockets/URLSession? → skills/networking-migration.md
  5. Connection issues / debugging? → skills/networking-diag.md
  6. Typed RPC / streaming against a service you control? → gRPC Swift (skills/networking-discipline.md)
  7. ATS / HTTP / App Store rejection for networking? → skills/networking-diag.md + networking-auditor
  8. Certificate pinning, signing API requests, encrypting payloads? → /skill axiom-security
  9. UIWebView or deprecated API rejection? → networking-auditor (Agent)
  10. Want deprecated API / anti-pattern scan? → networking-auditor (Agent)
Platform-specific networking
  • watchOS low-level-networking limits (TN3135) → See axiom-watchos (skills/background-and-networking.md)

Pressure Resistance

When user has invested significant time in custom implementation:

Do NOT capitulate to sunk cost pressure. The correct approach is:

  1. Diagnose first — Understand what's actually failing before recommending changes
  2. Recommend correctly — If standard APIs (URLSession, Network.framework) would solve the problem, say so professionally
  3. Respect but don't enable — Acknowledge their work while providing honest technical guidance

Critical Patterns

Networking (skills/networking-discipline.md):

  • URLSession with structured concurrency
  • 8 red-flag anti-patterns (SCNetworkReachability, blocking sockets, hardcoded IPs)
  • Decision tree for choosing TCP/UDP/TLS patterns
  • NetworkConnection patterns (iOS 26+): TLS, UDP, TLV framing, Coder protocol
  • 3 pressure scenarios with professional push-back templates
  • Pre-shipping checklist

Network Framework Reference (skills/network-framework-ref.md):

  • NetworkConnection (iOS 26+): all 12 WWDC 2025 examples
  • NWConnection (iOS 12-18): complete API with examples
  • TLV framing, Coder protocol, NetworkListener, NetworkBrowser
  • Mobility: viability, better path, Multipath TCP, NWPathMonitor
  • Security: TLS, certificate pinning, cipher suites
  • Performance: user-space networking, ECN, service class, TCP Fast Open

Diagnostics (skills/networking-diag.md):

  • Systematic decision tree for all connection failure types
  • DNS failures, TLS certificate validation, message framing
  • TCP congestion, IPv6-only cellular, VPN interference, ATS
  • Production crisis scenario with professional communication templates

Legacy (skills/networking-legacy.md):

  • NWConnection with TLS (completion handlers)
  • UDP batch (30% CPU reduction)
  • NWListener, NWBrowser (Bonjour discovery)

Automated Scanning

Networking audit → Launch networking-auditor agent or /axiom:audit networking (deprecated APIs, anti-patterns, and completeness gaps — transition handling, TLS coverage, connection cleanup, framework selection)

Anti-Rationalization

ThoughtReality
"URLSession is simple, I don't need a skill"URLSession with structured concurrency has async/cancellation patterns. skills/networking-discipline.md covers them.
"I'll debug the connection timeout myself"Connection failures have 8 causes (DNS, TLS, proxy, cellular). skills/networking-diag.md diagnoses systematically.
"I just need a basic HTTP request"Even basic requests need error handling, retry, and cancellation patterns.
"My custom networking layer works fine"Custom layers miss cellular/proxy edge cases. Standard APIs handle them automatically.

Example Invocations

User: "My API request is failing with a timeout" → Read: skills/networking-diag.md

User: "How do I use URLSession with async/await?" → Read: skills/networking-discipline.md

User: "I need to implement a TCP connection" → Read: skills/network-framework-ref.md

User: "Should I use NWConnection or NetworkConnection?" → Read: skills/network-framework-ref.md

User: "My app was rejected for using HTTP connections" → Read: skills/networking-diag.md (ATS compliance)

User: "App Store says I'm using UIWebView" → Invoke: networking-auditor agent (deprecated API scan)

User: "Check my networking code for deprecated APIs" → Invoke: networking-auditor agent

来源与署名

来源:CharlesWiltgen/Axiom位于.claude-plugin/plugins/axiom/skills/axiom-networking提交82c7fea

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架