Get the FREE Ultimate OpenClaw Setup Guide →

netwhiz

npx machina-cli add skill lu-zhengda/macos-toolkit/netwhiz --openclaw
Files (1)
SKILL.md
6.5 KB

netwhiz — Network Diagnostics

Show network overview:

!netwhiz info 2>&1 || echo "netwhiz not installed — brew install lu-zhengda/tap/netwhiz"

Analyze the output above. Summarize connection status, IP, gateway, DNS, and public IP. If anything looks wrong, run additional diagnostics: netwhiz wifi for signal quality, netwhiz dns for DNS health, netwhiz ping <host> for connectivity. If a target host was provided ($ARGUMENTS), test connectivity to it.

Commands

CommandPurposeExample
netwhiz infoNetwork overview (IP, gateway, DNS, interface, public IP)netwhiz info
netwhiz wifiWiFi details (SSID, channel, RSSI, SNR, security)netwhiz wifi
netwhiz wifi scanScan nearby WiFi networks with signal barsnetwhiz wifi scan
netwhiz wifi --monitorLive WiFi signal monitoring with alertsnetwhiz wifi --monitor --min-rssi -70
netwhiz dnsShow current DNS servers and presetsnetwhiz dns
netwhiz dns set <server>Set DNS (cloudflare, google, or custom IP)netwhiz dns set cloudflare
netwhiz dns flushFlush DNS cachenetwhiz dns flush
netwhiz dns benchmarkCompare DNS providers by response timenetwhiz dns benchmark
netwhiz ping <host>Enhanced ping with stats and RTT barsnetwhiz ping 8.8.8.8 -c 10
netwhiz trace <host>Traceroute with per-hop RTTnetwhiz trace example.com
netwhiz speedDownload speed test via Cloudflarenetwhiz speed
netwhiz speed --historyShow speed test history and trendsnetwhiz speed --history
netwhiz scanARP scan to discover LAN devicesnetwhiz scan
netwhiz diagnoseComprehensive network diagnosisnetwhiz diagnose
netwhiz vpnList configured VPN connections with statusnetwhiz vpn
netwhiz vpn connect <name>Connect to VPNnetwhiz vpn connect "Office VPN"
netwhiz vpn disconnect [name]Disconnect VPN (specific or all)netwhiz vpn disconnect
netwhiz vpn status [name]Detailed VPN connection infonetwhiz vpn status "Office VPN"
netwhiz eventsNetwork events: wifi, IP change, DNS change, connection drop, VPNnetwhiz events
netwhiz events --last <duration>Filter events by time windownetwhiz events --last 1h
netwhiz events --type <type>Filter by event typenetwhiz events --type connection_drop
netwhiz events --jsonJSON output for scriptingnetwhiz events --json

VPN Management

List, connect, and disconnect VPN connections:

# List all configured VPNs and their status
netwhiz vpn

# Connect to a VPN
netwhiz vpn connect "Office VPN"

# Check detailed VPN status
netwhiz vpn status "Office VPN"

# Disconnect a specific VPN
netwhiz vpn disconnect "Office VPN"

# Disconnect all active VPNs
netwhiz vpn disconnect

Network Events

View network change events from the system log:

# Show recent network events
netwhiz events

# Filter to last hour
netwhiz events --last 1h

# Filter by event type
netwhiz events --type wifi_connect
netwhiz events --type wifi_disconnect
netwhiz events --type ip_change
netwhiz events --type dns_change
netwhiz events --type path_satisfied
netwhiz events --type path_unsatisfied
netwhiz events --type connection_drop
netwhiz events --type vpn

# JSON output for scripting
netwhiz events --json

Event types:

  • wifi_connect — WiFi network associations
  • wifi_disconnect — WiFi disconnections and drops
  • ip_change — IP address changes (DHCP renewal, manual)
  • dns_change — DNS server configuration changes
  • path_satisfied — Network path becomes available
  • path_unsatisfied — Network path becomes unavailable
  • connection_drop — Active connection drops
  • vpn — VPN connect/disconnect events

Events are automatically deduplicated — consecutive same-type events within 30s are collapsed with a count.

Auto-Diagnose

Run a comprehensive network diagnosis that chains info, DNS, WiFi, and ping checks:

netwhiz diagnose

Outputs a structured diagnosis with identified issues and recommendations.

WiFi Signal Monitoring

Monitor WiFi signal strength and alert on degradation:

# Alert when RSSI drops below -70 dBm
netwhiz wifi --monitor --min-rssi -70

DNS Benchmark

Compare all DNS presets and recommend the fastest:

netwhiz dns benchmark

Tests Cloudflare, Google, Quad9, and current DNS. Shows response times and recommends the best option.

Speed Test History

Track speed test results over time:

# Run a speed test (result is saved automatically)
netwhiz speed

# View history and trends
netwhiz speed --history

JSON Output

Add --json to any read command for machine-readable output:

netwhiz info --json
netwhiz wifi --json
netwhiz dns --json
netwhiz speed --json
netwhiz speed --history --json
netwhiz scan --json
netwhiz ping 8.8.8.8 --json
netwhiz trace example.com --json
netwhiz diagnose --json
netwhiz dns benchmark --json
netwhiz vpn --json
netwhiz vpn status "Office VPN" --json
netwhiz events --json

DNS Presets

PresetServers
cloudflare1.1.1.1, 1.0.0.1
google8.8.8.8, 8.8.4.4
quad99.9.9.9, 149.112.112.112

Diagnostic Workflow

For network troubleshooting, follow this order:

  1. netwhiz diagnose — automated comprehensive check
  2. netwhiz info — get network overview and identify interface
  3. netwhiz wifi — check signal quality (if wireless)
  4. netwhiz dns — verify DNS configuration
  5. netwhiz dns benchmark — find the fastest DNS provider
  6. netwhiz ping <target> — test connectivity and latency
  7. netwhiz trace <target> — identify where packets are dropping
  8. netwhiz speed — measure throughput

TUI Mode

Launch netwhiz without arguments for an interactive network dashboard.

Source

git clone https://github.com/lu-zhengda/macos-toolkit/blob/main/skills/netwhiz/SKILL.mdView on GitHub

Overview

Netwhiz provides a comprehensive set of commands to diagnose network issues, check WiFi signal, manage DNS, run speed tests, trace routes, scan the local network, and monitor VPN and network events. It helps you quickly identify problems and run targeted diagnostics like wifi, dns, ping, and trace to confirm root causes.

How This Skill Works

Netwhiz aggregates system network data via commands such as netwhiz info, netwhiz wifi, netwhiz dns, netwhiz ping, netwhiz trace, netwhiz speed, netwhiz scan, and netwhiz events. When issues are detected, it can run deeper diagnostics and report current IP, gateway, DNS, interface and public IP, plus VPN status.

When to Use It

  • Diagnose a slow or dropped connection and verify IP, gateway, DNS, and public IP
  • Check WiFi signal quality, monitor RSSI/SNR, or scan nearby networks
  • Change DNS servers or benchmark DNS providers
  • Discover devices on the local network and monitor VPN status
  • Review network events like DNS changes, IP changes, or connection drops

Quick Start

  1. Step 1: Run netwhiz info to fetch the network overview (IP, gateway, DNS, interface, and public IP).
  2. Step 2: Run targeted checks such as netwhiz wifi, netwhiz dns, or netwhiz ping to identify issues.
  3. Step 3: If problems persist, run netwhiz diagnose or manage VPN with netwhiz vpn.

Best Practices

  • Run netwhiz diagnose for a comprehensive health check before changing settings
  • Use netwhiz wifi --monitor to alert on RSSI/SNR drops
  • Use netwhiz dns set <provider> to switch DNS when troubleshooting DNS resolution
  • Run netwhiz scan to ARP-scan and identify LAN devices
  • Check netwhiz events to correlate DNS/IP changes with connectivity issues

Example Use Cases

  • netwhiz info
  • netwhiz wifi
  • netwhiz dns set cloudflare
  • netwhiz ping 8.8.8.8 -c 10
  • netwhiz events --last 1h

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers