network-diagnostics
Installation
SKILL.md
network-diagnostics
Checks reachability, DNS, active interfaces, VPN state, and listening ports on a macOS machine.
When to invoke
Trigger on phrases like: "debug my network", "internet is slow", "check connectivity", "why is my internet bad", "diagnose network".
What to check
1. Default route — route -n get default 2>/dev/null. If no route, severity critical, summary "No default route — likely offline."
2. Latency and loss — ping -c 5 -t 5 1.1.1.1 and ping -c 5 -t 5 8.8.8.8. Parse the summary line for packet loss and round-trip.
- 0% loss, avg <50 ms:
ok. - <10% loss or avg 50–200 ms:
info. - 10–25% loss or avg 200–500 ms:
warn. - ≥25% loss or avg ≥500 ms:
critical. Skip gracefully if ping is blocked (recordinfo).