Network Diagnostics logo

Network Diagnostics

Community
Firstp1ck
network-diagnostics

Agents should invoke this skill for connectivity, DNS, Pi-hole, port reachability, routing, firewall reachability, TLS/network timeouts, or service access failures. Provides structured network troubleshooting commands and interpretation.

Overview

PublisherFirstp1ck
Repositorypi-coding-agent-forge
Skill namenetwork-diagnostics
Stars
93
Forks
22
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Firstp1ck on GitHub. Read the source before you install it.

Installation

Install the Network Diagnostics AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-network-diagnostics/skills/network-diagnostics
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge.git /tmp/pi-coding-agent-forge
mkdir -p .claude/skills
cp -r /tmp/pi-coding-agent-forge/pi-skill-network-diagnostics/skills/network-diagnostics .claude/skills/network-diagnostics
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Network Diagnostics in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Network Diagnostics on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Network Diagnostics is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Network Diagnostics

Diagnose and troubleshoot network issues including connectivity, DNS, ports, and routing.

Quick Start

Connectivity Check

bash
# Check internet connectivity
ping -c 3 1.1.1.1

# Check DNS resolution
dig google.com +short

# Check a local service
curl -s -o /dev/null -w "%{http_code}" http://pi.hole/admin/

DNS Diagnostics

Basic DNS Resolution

bash
# Resolve via system DNS (Pi-hole)
dig example.com +short

# Resolve via specific DNS server
dig @1.1.1.1 example.com +short   # Cloudflare
dig @8.8.8.8 example.com +short   # Google
dig @pi.hole example.com +short   # Pi-hole

# Reverse DNS lookup
dig -x <ip-address> +short

# Full DNS trace
dig example.com +trace

Pi-hole DNS Analysis

bash
# Check if Pi-hole is blocking correctly
# Query a known ad domain — should return 0.0.0.0 or NXDOMAIN
dig @pi.hole ads.google.com +short

# Check Pi-hole query log (recent queries via API)
curl -s "http://pi.hole/admin/api.php?getAllQueries=100" | jq '.data | length'

# Check upstream DNS health
curl -s "http://pi.hole/admin/api.php?getForwardDestinations" | jq '.'

# Check if Pi-hole is enabled
curl -s "http://pi.hole/admin/api.php?status" | jq '.status'

DNS Troubleshooting Flow

DNS not resolving?
├── Can you ping 1.1.1.1?
│   ├── No → Network/routing issue (not DNS)
│   └── Yes → DNS issue confirmed
│       ├── Does dig @1.1.1.1 work?
│       │   ├── No → Upstream DNS blocked (firewall?)
│       │   └── Yes → Local DNS problem
│       │       ├── Does dig @pi.hole work?
│       │       │   ├── No → Pi-hole issue
│       │       │   │   ├── Is pihole-FTL running?
│       │       │   │   ├── Is port 53 listening?
│       │       │   │   └── Check Pi-hole logs
│       │       │   └── Yes → Client DNS config issue
│       │       │       └── Check /etc/resolv.conf
│       │       └── Is /etc/resolv.conf pointing to Pi-hole?

Connectivity Testing

Layer-by-Layer Diagnosis

bash
# Layer 1-2: Physical/Link
ip link show              # Interface status
ethtool <interface>       # Link speed, duplex

# Layer 3: Network
ip addr show              # IP addresses
ip route show             # Routing table
ping -c 3 <gateway>      # Gateway reachable?
ping -c 3 1.1.1.1        # Internet reachable?

# Layer 4: Transport
ss -tlnp                  # Listening TCP ports
ss -ulnp                  # Listening UDP ports

# Layer 7: Application
curl -v http://example.com  # HTTP connectivity

Traceroute

bash
# Standard traceroute
traceroute <host>

# TCP traceroute (bypasses ICMP blocks)
traceroute -T -p 443 <host>

# MTR for continuous monitoring
mtr --report <host>

Port Reachability

Check if a Port is Open

bash
# From this machine to a target
nc -zv <host> <port>           # Netcat
timeout 3 bash -c "echo > /dev/tcp/<host>/<port>" && echo "open" || echo "closed"

# Check multiple ports
for port in 22 53 80 443 3000 8080 11434; do
  nc -zv <host> $port 2>&1 | grep -E "succeeded|refused"
done

Port Scan (Local Network)

bash
# Quick scan of a host
nmap -F <host>

# Scan specific ports
nmap -p 22,53,80,443,3000,8080,11434 <host>

# Scan entire local subnet
nmap -sn <local-subnet-cidr>    # Ping sweep (who's online?)

Known Service Ports

HostPortServiceProtocol
pi.hole53DNSUDP/TCP
pi.hole80Web UIHTTP
3000GiteaHTTP
NAS SSHSSH
22SSH serverSSH
11434OllamaHTTP

Network Topology

Local Network Map

Internet
  │
  ▼
[Router/Gateway]
  │
  ├── Pi-hole (DNS) ─── pi.hole:53, :80
  │
  ├── <gitea-or-nas-host> ─── Gitea :3000, NAS SSH :<ssh-port>
  │
  ├── <ssh-host> ─── SSH server :22
  │
  ├── <ollama-host> ─── Ollama :11434
  │
  └── [This machine] ── Workstation

Discover Network Devices

bash
# ARP table (devices recently seen)
ip neigh show

# Ping sweep
nmap -sn <local-subnet-cidr>

# Check DHCP leases (if accessible)
# Often at router admin page

Troubleshooting Workflows

"Service X is Unreachable"

  1. Ping the host: ping -c 3 <host> — Is the machine up?
  2. Check the port: nc -zv <host> <port> — Is the service listening?
  3. Check locally: SSH in, run ss -tlnp | grep <port> — Is it bound?
  4. Check firewall: Is the port allowed through?
  5. Check the service: systemctl status <service> — Is it running?
  6. Check logs: journalctl -u <service> -n 20 — Any errors?

"Internet is Slow"

  1. Check DNS: time dig google.com — Slow DNS resolution?
  2. Check latency: ping -c 10 1.1.1.1 — High latency?
  3. Check bandwidth: curl -o /dev/null -w "%{speed_download}" https://speed.cloudflare.com/__down?bytes=10000000
  4. Check for packet loss: mtr --report -c 20 1.1.1.1
  5. Check local network: iperf3 -c <local-host> — LAN speed OK?

"Pi-hole Stopped Blocking Ads"

  1. Check status: curl -s "http://pi.hole/admin/api.php?status" | jq '.status'
  2. Check if disabled: Someone might have paused it
  3. Check blocklists: curl -s "http://pi.hole/admin/api.php?summary" | jq '.gravity_last_updated'
  4. Update gravity: pihole -g (requires SSH to Pi-hole host)
  5. Check client DNS: Is the client actually using Pi-hole? cat /etc/resolv.conf

Useful One-Liners

bash
# What's my public IP?
curl -s ifconfig.me

# What's my local IP?
ip -4 addr show | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | grep -v 127.0.0.1

# Check if a domain is blocked by Pi-hole
dig @pi.hole <domain> +short  # 0.0.0.0 = blocked

# DNS response time
time dig google.com @pi.hole > /dev/null

# Check all network interfaces
ip -br link show

Kai skill — Network diagnostics and troubleshooting

Frequently asked questions

What does the Network Diagnostics AI skill do?

Agents should invoke this skill for connectivity, DNS, Pi-hole, port reachability, routing, firewall reachability, TLS/network timeouts, or service access failures. Provides structured network troubleshooting commands and interpretation.

Why use Network Diagnostics on TypingMind?

Because you install it once and use it with any model. Network Diagnostics is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Network Diagnostics in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-network-diagnostics/skills/network-diagnostics. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Network Diagnostics?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Network Diagnostics?

As many as you like. As long as a model supports skills, you can use Network Diagnostics with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Network Diagnostics AI skill free?

Yes. It is published on GitHub by Firstp1ck under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇