agentleFS
skyvanguardskyvanguard/infra-ops/skills/network-troubleshooter/SKILL.md

network-troubleshooter

Skill1 starsChanged 10 months agoMITView on GitHub

Use when the user has connectivity issues, DNS problems, can't reach a service, or needs to diagnose network performance. Follows OSI-model approach from bottom to top.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow OSI layers IN ORDER - don't jump to L7 if L3 is broken

    line 169
  2. Distinctive:

    NEVER modify firewall rules without explicit permission

    line 170
  3. Distinctive:

    NEVER change DNS/network settings without asking

    line 171
  4. Distinctive:

    If ping to gateway fails, don't bother testing higher layers

    line 172
  5. Distinctive:

    Always test with IP first, then hostname (to isolate DNS vs routing)

    line 174

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Network Troubleshooter

Overview

Diagnose network issues systematically using an OSI-layer approach: physical → data link → network → transport → application. Each layer is verified before moving up.

Process

Step 1: Understand the Symptom

Classify the network issue:

SymptomLikely LayerStart Point
"No internet"L1-L3Check interface status
"Can't reach X"L3-L4Check DNS, then routing
"Connection timeout"L3-L4Check routing, firewall
"Connection refused"L4-L7Service not listening
"Slow connection"L1-L7Check latency, bandwidth
"SSL/TLS error"L5-L7Check certs, protocol
"DNS not resolving"L7 (DNS)Check DNS config
"Intermittent drops"L1-L3Check interface stats

Step 2: Layer 1-2 (Physical/Link)

Interface status:

PlatformCommand
WindowsGet-NetAdapter | Select Name, Status, LinkSpeed, MediaConnectionState
Linuxip link show
macOSifconfig | grep -E "^[a-z]|status"

Interface statistics (errors/drops):

PlatformCommand
WindowsGet-NetAdapterStatistics | Select Name, ReceivedUnicastPackets, ReceivedPacketErrors, OutboundPacketErrors
Linuxip -s link show
macOSnetstat -i

WiFi signal (if wireless):

PlatformCommand
Windowsnetsh wlan show interfaces
Linuxiwconfig 2>/dev/null || nmcli dev wifi
macOS/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I

Step 3: Layer 3 (Network)

IP configuration:

PlatformCommand
WindowsGet-NetIPAddress | Where AddressFamily -eq IPv4 | Select InterfaceAlias, IPAddress, PrefixLength
Linuxip -4 addr show
macOSifconfig | grep "inet "

Default gateway:

PlatformCommand
WindowsGet-NetRoute -DestinationPrefix 0.0.0.0/0 | Select NextHop, InterfaceAlias
Linuxip route show default
macOSroute -n get default | grep gateway

Ping gateway:

PlatformCommand
Allping -c 3 [gateway_ip] (Linux/Mac) or ping -n 3 [gateway_ip] (Windows)

Ping external (verify internet):

PlatformCommand
Allping -c 3 8.8.8.8 or ping -n 3 8.8.8.8

Step 4: Layer 4-7 (Transport/Application)

DNS resolution:

PlatformCommand
Allnslookup [target_host]
Linux/Macdig [target_host] +short

DNS configuration:

PlatformCommand
WindowsGet-DnsClientServerAddress -AddressFamily IPv4 | Select InterfaceAlias, ServerAddresses
Linuxcat /etc/resolv.conf
macOSscutil --dns | grep nameserver

Port connectivity:

PlatformCommand
WindowsTest-NetConnection -ComputerName [host] -Port [port]
Linuxnc -zv [host] [port] 2>&1 or timeout 5 bash -c "echo > /dev/tcp/[host]/[port]" && echo open || echo closed
macOSnc -zv [host] [port] 2>&1

Traceroute:

PlatformCommand
Windowstracert -d [host]
Linuxtraceroute -n [host] 2>/dev/null || tracepath [host]
macOStraceroute -n [host]

Active connections:

PlatformCommand
WindowsGet-NetTCPConnection -State Established | Select LocalAddress, LocalPort, RemoteAddress, RemotePort, OwningProcess | Sort RemoteAddress
Linuxss -tunp state established
macOSnetstat -an | grep ESTABLISHED

Listening ports:

PlatformCommand
WindowsGet-NetTCPConnection -State Listen | Select LocalAddress, LocalPort, OwningProcess
Linuxss -tlnp
macOSlsof -iTCP -sTCP:LISTEN -n -P

Step 5: Advanced Checks (if needed)

Firewall rules:

PlatformCommand
WindowsGet-NetFirewallRule -Enabled True -Direction Inbound | Select DisplayName, Action | Format-Table
Linuxiptables -L -n 2>/dev/null || nft list ruleset 2>/dev/null
macOSpfctl -sr 2>/dev/null

SSL/TLS verification:

PlatformCommand
Allopenssl s_client -connect [host]:443 -servername [host] </dev/null 2>/dev/null | openssl x509 -noout -dates -subject
Windows[Net.ServicePointManager]::SecurityProtocol; Invoke-WebRequest -Uri https://[host] -Method HEAD

Bandwidth test (if latency is fine but throughput is bad):

PlatformCommand
Allcurl -o /dev/null -w "Speed: %{speed_download} bytes/sec\nTime: %{time_total}s\n" https://speed.cloudflare.com/__down?bytes=10000000

Step 6: Present Diagnosis

## Network Diagnosis Report

### Path: [source] → [destination]

| Layer | Check | Result | Status |
|-------|-------|--------|--------|
| L1-L2 | Interface | [up/down, speed] | [OK/FAIL] |
| L3 | IP config | [IP, gateway] | [OK/FAIL] |
| L3 | Ping gateway | [latency] | [OK/FAIL] |
| L3 | Ping external | [latency] | [OK/FAIL] |
| L7 | DNS | [resolved IP] | [OK/FAIL] |
| L4 | Port [N] | [open/closed] | [OK/FAIL] |
| L7 | Service | [response] | [OK/FAIL] |

### Failure Point
**Layer:** [where it breaks]
**Evidence:** [command output]

### Resolution
1. [Fix for the identified layer]
2. [Verification command to confirm fix]

Rules

  • Follow OSI layers IN ORDER - don't jump to L7 if L3 is broken
  • NEVER modify firewall rules without explicit permission
  • NEVER change DNS/network settings without asking
  • If ping to gateway fails, don't bother testing higher layers
  • For intermittent issues, run multiple samples (ping -c 10)
  • Always test with IP first, then hostname (to isolate DNS vs routing)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.