Command Palette

Search for a command to run...

Назад к скиллам
скилл № 39000

axiom-networking-diag

Use when debugging connection timeouts, TLS handshake failures, data not arriving, connection drops, performance issues, or proxy/VPN interference…

БесплатноБез исполняемых скриптов
ComeOnOliverот ComeOnOliver★ 67 звёзд на GitHub

Установить axiom-networking-diag в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Network.framework Diagnostics

Overview

Core principle 85% of networking problems stem from misunderstanding connection states, not handling network transitions, or improper error handling—not Network.framework defects.

Network.framework is battle-tested in every iOS app (powers URLSession internally), handles trillions of requests daily, and provides smart connection establishment with Happy Eyeballs, proxy evaluation, and WiFi Assist. If your connection is failing, timing out, or behaving unexpectedly, the issue is almost always in how you're using the framework, not the framework itself.

This skill provides systematic diagnostics to identify root causes in minutes, not hours.

Red Flags — Suspect Networking Issue

If you see ANY of these, suspect a networking misconfiguration, not framework breakage:

  • Connection times out after 60 seconds with no clear error

  • TLS handshake fails with "certificate invalid" on some networks

  • Data sent but never arrives at receiver

  • Connection drops when switching WiFi to cellular

  • Works perfectly on WiFi but fails 100% of time on cellular

  • Works in simulator but fails on real device

  • Connection succeeds on your network but fails for users

  • ❌ FORBIDDEN "Network.framework is broken, we should rewrite with sockets"

    • Network.framework powers URLSession, used in every iOS app
    • Handles edge cases you'll spend months discovering with sockets
    • Apple engineers have 10+ years of production debugging baked into framework
    • Switching to sockets will expose you to 100+ edge cases

Critical distinction Simulator uses macOS networking stack (not iOS), hides cellular-specific issues (IPv6-only networks), and doesn't simulate network transitions. MANDATORY: Test on real device with real network conditions.

Mandatory First Steps

ALWAYS run these commands FIRST (before changing code):

// 1. Enable Network.framework logging
// Add to Xcode scheme: Product → Scheme → Edit Scheme → Arguments
// -NWLoggingEnabled 1
// -NWConnectionLoggingEnabled 1

// 2. Check connection state history
connection.stateUpdateHandler = { state in
    print("\(Date()): Connection state: \(state)")
    // Log every state transition with timestamp
}

// 3. Check TLS configuration
// If using custom TLS parameters:
print("TLS version: \(tlsParameters.minimumTLSProtocolVersion)")
print("Cipher suites: \(tlsParameters.tlsCipherSuites ?? [])")

// 4. Test with packet capture (Charles Proxy or Wireshark)
// On device: Settings → WiFi → (i) → Configure Proxy → Manual
// Charles: Help → SSL Proxying → Install Charles Root Certificate on iOS

// 5. Test on different networks
// - WiFi
// - Cellular (disable WiFi)
// - Airplane Mode → WiFi (test waiting state)
// - VPN active
// - IPv6-only (some cellular carriers)

What this tells you

Observation Diagnosis Next Step
Stuck in .preparing > 5 seconds DNS failure or network down Pattern 1a
Moves to .waiting immediately No connectivity (Airplane Mode, no signal) Pattern 1b
.failed with POSIX error 61 Connection refused (server not listening) Pattern 1c
.failed with POSIX error 50 Network down (interface disabled) Pattern 1d
.ready then immediate .failed TLS handshake failure Pattern 2b
.ready, send succeeds, no data arrives Framing problem or receiver not processing Pattern 3a
Works WiFi, fails cellular IPv6-only network (hardcoded IPv4) Pattern 5a
Works without VPN, fails with VPN Proxy interference or DNS override Pattern 5b

MANDATORY INTERPRETATION

Before changing ANY code, identify ONE of these:

  1. If stuck in .preparing AND network is available → DNS failure (check nslookup)
  2. If .waiting immediately AND Airplane Mode is off → Interface-specific issue (cellular blocked)
  3. If .failed POSIX 61 → Server issue (check server logs)
  4. If .failed with TLS error -9806 → Certificate validation (check with openssl)
  5. If .ready but data not arriving → Framing or receiver issue (enable packet capture)

If diagnostics are contradictory or unclear

  • STOP. Do NOT proceed to patterns yet
  • Add timestamp logging to every send/receive call
  • Enable packet capture (Charles/Wireshark)
  • Test on different device to isolate hardware vs software issue

Decision Tree

Use this to reach the correct diagnostic pattern in 2 minutes:

Network problem?
├─ Connection never reaches .ready?
│  ├─ Stuck in .preparing for >5 seconds?
│  │  ├─ DNS lookup timing out? → Pattern 1a (DNS Failure)
│  │  ├─ Network available but can't reach host? → Pattern 1c (Connection Refused)
│  │  └─ First connection slow, subsequent fast? → Pattern 1e (DNS Caching)
│  │
│  ├─ Moves to .waiting immediately?
│  │  ├─ Airplane Mode or no signal? → Pattern 1b (No Connectivity)
│  │  ├─ Cellular blocked by parameters? → Pattern 1b (Interface Restrictions)
│  │  └─ VPN connecting? → Wait and retry
│  │
│  ├─ .failed with POS
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл axiom-networking-diag?

Use when debugging connection timeouts, TLS handshake failures, data not arriving, connection drops, performance issues, or proxy/VPN interference - systematic Network.framework diagnostics with production crisis defense

Как установить скилл axiom-networking-diag?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл axiom-networking-diag запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить axiom-networking-diag с