Axiom Audit Networkingのロゴ

Axiom Audit Networking

コミュニティ人気
CharlesWiltgen
axiom-audit-networking

ユーザーがネットワークのレビュー、非推奨API、接続の問題、App Storeへの提出準備について言及した場合に使用します。

Add to TypingMind

概要

公開者CharlesWiltgen
リポジトリAxiom
スキル名axiom-audit-networking
スター
1.2K
フォーク
86
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    CharlesWiltgenがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Axiom Audit Networking」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-audit-networking
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをその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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAxiom Audit Networkingを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAxiom Audit Networkingを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Axiom Audit Networkingは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Axiom Audit Networking」では何ができますか?

ユーザーがネットワークのレビュー、非推奨API、接続の問題、App Storeへの提出準備について言及した場合に使用します。

TypingMindでAxiom Audit Networkingを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Axiom Audit Networkingはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAxiom Audit Networkingをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-audit-networkingを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Axiom Audit Networkingを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Axiom Audit Networkingで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAxiom Audit Networkingを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Axiom Audit Networking」は無料ですか?

はい。CharlesWiltgenがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇