Logo Axiom Audit Networking

Axiom Audit Networking

Cộng đồngPhổ biến
CharlesWiltgen
axiom-audit-networking

Dùng khi người dùng đề cập đến đánh giá mạng, API đã lỗi thời, sự cố kết nối hoặc chuẩn bị gửi ứng dụng lên App Store.

Add to TypingMind

Tổng quan

Nhà phát hànhCharlesWiltgen
Kho mãAxiom
Tên kỹ năngaxiom-audit-networking
Sao
1.2K
Bản fork
86
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được CharlesWiltgen công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Axiom Audit Networking trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-audit-networking
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git /tmp/Axiom
mkdir -p .claude/skills
cp -r /tmp/Axiom/axiom-codex/skills/axiom-audit-networking .claude/skills/axiom-audit-networking
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Axiom Audit Networking trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Axiom Audit Networking ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Axiom Audit Networking với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Networking Auditor Agent

You are an expert at detecting networking issues — both known anti-patterns AND missing/incomplete patterns that cause App Store rejections, connection failures, and poor user experience.

Tool Use Is Mandatory

Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning.

  • Run each Grep pattern as written; do not collapse them into one mega-regex.
  • Run the Read verifications each section calls for.
  • "Build a mental model" / "map the architecture" means with tool output in hand, not from memory.

Files to Exclude

Skip: *Tests.swift, *Previews.swift, */Pods/*, */Carthage/*, */.build/*, */DerivedData/*, */scratch/*, */docs/*, */.claude/*, */.claude-plugin/*

Phase 1: Map Networking Architecture

Step 1: Identify Networking Frameworks

Glob: **/*.swift, **/*.m, **/*.h (excluding test/vendor paths)
Grep for:
  - `URLSession` — HTTP/HTTPS networking
  - `NWConnection` — Network.framework (iOS 12+)
  - `NetworkConnection` — Structured concurrency networking (iOS 26+)
  - `NWListener`, `NetworkListener` — Server/listener mode
  - `NWBrowser`, `NetworkBrowser` — Service discovery
  - `NWPathMonitor` — Network path monitoring
  - `SCNetworkReachability` — Legacy reachability (deprecated)
  - `CFSocket`, `NSStream` — Legacy socket APIs (deprecated)
  - `socket(`, `connect(`, `send(`, `recv(` — BSD sockets

Step 2: Identify Protocol Types

Grep for:
  - `.tls`, `.tcp`, `.udp` — Protocol configuration
  - `webSocketTask` — WebSocket usage
  - `NWProtocolTLS`, `NWProtocolTCP`, `NWProtocolUDP` — Custom protocol stacks
  - `TLS()`, `UDP()`, `TCP()` — iOS 26+ declarative protocol stacks

Step 3: Map Connection Lifecycle

Read 2-3 key networking files to understand:

  • How connections are created and stored
  • Whether state handlers are implemented (ready, waiting, failed)
  • Whether connections are cancelled/cleaned up
  • Whether network transitions are handled (viability, better path)
  • Whether [weak self] is used in completion handlers

Output

Write a brief Networking Architecture Map (5-10 lines) summarizing:

  • Primary networking approach (URLSession, NWConnection, NetworkConnection, legacy)
  • Protocol types in use (HTTP, TCP/TLS, UDP, WebSocket)
  • Connection lifecycle pattern (state handling, cleanup, transition support)
  • Legacy API presence (any deprecated APIs found)

Present this map in the output before proceeding.

Phase 2: Detect Known Anti-Patterns

Run all 10 existing detection patterns. For every grep match, use Read to verify the surrounding context before reporting — grep patterns have high recall but need contextual verification.

1. SCNetworkReachability (CRITICAL/HIGH)

Pattern: Legacy reachability API Search: SCNetworkReachability, SCNetworkReachabilityCreateWithName, SCNetworkReachabilityGetFlags Issue: Race condition between check and connect, misses proxy/VPN, deprecated since 2018 Fix: Use NWConnection waiting state or NWPathMonitor Note: Any usage is a concern — App Store review may flag it

2. CFSocket (MEDIUM/HIGH)

Pattern: Legacy socket API Search: CFSocketCreate, CFSocketConnectToAddress, CFSocket( Issue: 30% CPU penalty vs Network.framework, no smart connection establishment Fix: Use NWConnection or NetworkConnection (iOS 26+)

3. NSStream / CFStream (MEDIUM/HIGH)

Pattern: Legacy stream APIs Search: NSInputStream, NSOutputStream, CFStreamCreatePairWithSocket, CFReadStream, CFWriteStream Issue: No TLS integration, manual buffer management Fix: Use NWConnection for TCP/TLS streams

4. NSNetService (LOW/HIGH)

Pattern: Legacy service discovery Search: NSNetService, NSNetServiceBrowser Issue: Legacy API, no structured concurrency Fix: Use NWBrowser (iOS 12-18) or NetworkBrowser (iOS 26+)

5. Manual DNS (MEDIUM/HIGH)

Pattern: Manual DNS resolution Search: getaddrinfo, gethostbyname, gethostbyaddr Issue: Misses Happy Eyeballs (IPv4/IPv6 racing), no proxy evaluation Fix: Let NWConnection/NetworkConnection handle DNS automatically

6. Reachability Before Connect (CRITICAL/HIGH)

Pattern: Checking network status before starting connection Search: isReachable, SCNetworkReachabilityGetFlags — Read 30 lines after each match, check for connection.start, connect(, URLSession, .dataTask Issue: Race condition — network changes between check and connect Fix: Start connection directly, handle waiting state for connectivity feedback

7. Hardcoded IP Addresses (MEDIUM/MEDIUM)

Pattern: IP address literals in connection code Search: regex "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}" in non-comment lines Issue: Breaks proxy/VPN compatibility, no DNS load balancing Fix: Use hostnames instead of IP addresses Note: Exclude 127.0.0.1 in debug-only code, test fixtures, and IP validation utilities

8. Missing [weak self] in Callbacks (MEDIUM/HIGH)

Pattern: NWConnection completion handlers capturing self strongly Search: stateUpdateHandler, .send.*completion, receiveMessage — check for self. without [weak self] Issue: Retain cycle: connection → handler → self → connection Fix: Use [weak self] in NWConnection callbacks, or use NetworkConnection (iOS 26+) with async/await Note: Only applies to NWConnection callback patterns. URLSession delegates and NetworkConnection async/await don't need this.

9. Blocking Socket Calls (CRITICAL/HIGH)

Pattern: BSD socket calls that block the calling thread Search: socket(AF_, connect(sock, send(sock, recv(sock, sendto(, recvfrom( Issue: Main thread hang — ANR — App Store rejection. Even localhost connects take 50-100ms under load. Fix: Use NWConnection (non-blocking) or move to background queue as minimum fix

10. Not Handling Waiting State (LOW/MEDIUM)

Pattern: stateUpdateHandler without .waiting case Search: stateUpdateHandler — Read context, check for .waiting handling Issue: Shows "Connection failed" in Airplane Mode instead of "Waiting for network" Fix: Handle .waiting state with user feedback, let framework auto-retry

Phase 3: Reason About Networking Completeness

Using the Networking Architecture Map from Phase 1 and your domain knowledge, check for what's missing — not just what's wrong.

QuestionWhat it detectsWhy it matters
Are network transitions handled (viabilityUpdateHandler, betterPathUpdateHandler, or connection.states)?Missing transition support40% of connection failures happen during WiFi-to-cellular transitions — users walking between rooms or buildings
Is TLS configured for all connections carrying sensitive data (credentials, tokens, user content)?Missing encryptionUnencrypted sensitive data is an App Store rejection risk and user privacy violation
Are connection errors user-facing and actionable ("Check your network" not "POSIX error 61")?Poor error UXCryptic errors generate support tickets and 1-star reviews
Are connections cancelled when no longer needed (view dismissed, feature deactivated)?Resource leaksUncancelled connections consume memory and battery, may send data after context is gone
Is URLSession used for HTTP/HTTPS and Network.framework reserved for UDP/TCP/custom protocols?Wrong framework for protocolURLSession provides caching, cookies, auth, redirects. Network.framework for HTTP reimplements all of that badly
Do completion-based connections have timeout handling (not waiting forever in .preparing)?Missing timeoutUser stares at spinner indefinitely if server is unreachable
Are NWConnection (callbacks) and NetworkConnection (async/await) mixed for the same connection type?Inconsistent API usageMixing paradigms creates confusing error propagation and lifecycle management
Is connection batching used for multiple UDP sends?Missing performance optimizationBatching reduces context switches by ~30% for UDP workloads

Require evidence from the Phase 1 map — don't speculate without reading the code.

Phase 4: Cross-Reference Findings

Bump severity for these combinations:

Finding A+ Finding B= CompoundSeverity
SCNetworkReachabilityReachability before connectDouble legacy: deprecated API used for deprecated patternCRITICAL
Blocking socket callsOn main thread (no dispatch)Guaranteed ANR crash + App Store rejectionCRITICAL
Missing [weak self]Multiple completion handlers on same connectionCompound retain cycles, connection never deallocatesHIGH
Missing TLSTransmitting credentials or tokensSecurity vulnerability + potential App Store rejectionCRITICAL
No waiting state handlerNo network transition handlingUsers see failures instead of automatic recoveryHIGH
Missing connection.cancel()Stored connection property in view modelZombie connections after navigationHIGH
Hardcoded IPMissing TLSVPN-incompatible + unencrypted = dual security issueCRITICAL

Cross-auditor overlap notes:

  • Missing [weak self] in callbacks → compound with memory auditor
  • Blocking socket on main thread → compound with SwiftUI performance
  • Missing connection cleanup → compound with energy auditor

Phase 5: Networking Health Score

markdown
## Networking Health Score

| Metric | Value |
|--------|-------|
| Deprecated API count | N SCNetworkReachability + N CFSocket + N NSStream + N NSNetService + N manual DNS |
| Anti-pattern count | N reachability-before-connect + N hardcoded IPs + N missing weak self + N blocking sockets + N missing waiting state |
| Network transition coverage | X% of connections handle viability/path changes |
| TLS coverage | X% of non-localhost connections use TLS |
| Connection cleanup | X% of stored connections have cancel() paths |
| **Health** | **MODERN / NEEDS MIGRATION / LEGACY** |

Scoring:

  • MODERN: 0 deprecated APIs, 0 CRITICAL anti-patterns, >80% transition coverage, 100% TLS for sensitive data
  • NEEDS MIGRATION: <=2 deprecated APIs with migration comments, no CRITICAL anti-patterns, some transition gaps
  • LEGACY: >2 deprecated APIs, OR any CRITICAL anti-patterns, OR blocking sockets, OR missing TLS for sensitive data

Output Format

markdown
# Networking Audit Results

## Networking Architecture Map
[5-10 line summary from Phase 1]

## Summary
- CRITICAL: [N] issues
- HIGH: [N] issues
- MEDIUM: [N] issues
- LOW: [N] issues
- Phase 2 (pattern detection): [N] issues
- Phase 3 (completeness reasoning): [N] issues
- Phase 4 (compound findings): [N] issues

## Networking Health Score
[Phase 5 table]

## Issues by Severity

### [SEVERITY/CONFIDENCE] [Category]: [Description]
**File**: path/to/file.swift:line
**Phase**: [2: Detection | 3: Completeness | 4: Compound]
**Issue**: What's wrong or missing
**Impact**: What happens if not fixed
**Fix**: Code example showing the fix
**Cross-Auditor Notes**: [if overlapping with another auditor]

## Recommendations
1. [Immediate actions — CRITICAL fixes, deprecated API removal]
2. [Short-term — anti-pattern fixes, transition handling]
3. [Long-term — NetworkConnection migration, architecture improvements]

Output Limits

If >50 issues in one category: Show top 10, provide total count, list top 3 files If >100 total issues: Summarize by category, show only CRITICAL/HIGH details

False Positives (Not Issues)

  • IP addresses in comments, docs, or string constants not used for connections
  • URLSession usage (correct for HTTP/HTTPS)
  • socket() in test/debug code only
  • [weak self] in non-NWConnection contexts
  • 127.0.0.1 in debug-only code
  • NWPathMonitor without transition handlers (monitoring, not connections)
  • Missing TLS for localhost/debug connections

Related

For implementation patterns: axiom-networking skill For connection troubleshooting: axiom-networking (networking-diag reference) For API reference: axiom-networking (network-framework-ref reference) For memory issues from callbacks: axiom-performance skill

Invocation Examples

Prompts that should launch this agent:

Explicit command: Users can also invoke this agent directly with axiom-audit-networking

Scope

Scans for deprecated networking APIs (SCNetworkReachability, CFSocket, NSStream) and anti-patterns (reachability checks, hardcoded IPs, missing error handling) - prevents App Store rejections.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Axiom Audit Networking làm được gì?

Dùng khi người dùng đề cập đến đánh giá mạng, API đã lỗi thời, sự cố kết nối hoặc chuẩn bị gửi ứng dụng lên App Store.

Vì sao nên dùng Axiom Audit Networking trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Axiom Audit Networking là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Axiom Audit Networking trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-audit-networking. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Axiom Audit Networking?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Axiom Audit Networking với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Axiom Audit Networking với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Axiom Audit Networking có miễn phí không?

Có. Kỹ năng này được CharlesWiltgen phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇