Network Diag logo

Network Diag

Organization
serversathome
network-diag

Diagnose homelab connectivity, DNS, mesh, and ingress issues. Use this whenever the user reports that hosts or services are unreachable, DNS is not resolving, the NetBird mesh is flaky, a Cloudflare Tunnel is down, the UCG-Ultra gateway or Netgear 10GbE switch is involved, a link dropped or renegotiated speed, or a service works locally but not remotely. Trigger this early in any "everything is down" situation, since broad outages are usually a network or DNS layer wearing an application costume.

Overview

Publisherserversathome
Repositoryhomelabhero
Skill namenetwork-diag
Stars
104
Forks
4
Bundled files
Instructions only
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 serversathome on GitHub. Read the source before you install it.

Installation

Install the Network Diag 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/serversathome/homelabhero/tree/main/ops/.claude/skills/network-diag
  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/serversathome/homelabhero.git /tmp/homelabhero
mkdir -p .claude/skills
cp -r /tmp/homelabhero/ops/.claude/skills/network-diag .claude/skills/network-diag
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Network Diag 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 Diag 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 Diag 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

Read infra/network.md for topology, subnets, DNS, and mesh CIDR first. The per-platform commands live in capabilities/ (linux.md for host interfaces, routes and resolvers; routeros.md for a MikroTik switch, which is not a POSIX shell), and are not loaded up front: read the one for the host you are probing.

Ask the gateway first, if it is registered

When a UniFi console is registered (hh list shows platform unifi), start there. One command rules the whole fabric in or out before probing host by host:

hh unifi summary                 # WAN, internet, LAN, WiFi, devices, clients
hh unifi devices                 # anything not ONLINE explains a lot at once

An offline switch or access point accounts for every host behind it, so finding one here saves troubleshooting those hosts individually. The unifi-ops skill covers the rest, including clients and VLANs.

This is read-only: it diagnoses the fabric, it does not reconfigure it. UniFi changes are made by hand in the UniFi app.

Then ask the mesh and the edge, if they are registered

The overlay and the ingress each have their own control plane, and each answers when the host in question does not. Check them before shelling anywhere:

hh netbird summary               # is the peer even connected? (netbird-ops)
hh cloudflare summary            # is the tunnel up? (cloudflare-ops)

This is the order that saves the most time: fabric, then overlay, then edge, then the host. Three of those four answer while the host is unreachable, so working inward means you usually know WHERE the break is before you try to log in to anything.

What none of them can see, and this skill can: DNS resolution inside a host, the host's own interfaces and routes, and whether the service itself is alive. A NetBird peer can be connected and a Cloudflare tunnel healthy while the app behind them returns 502 all day.

Localize: is it reachability, name resolution, or the service

ping -c2 <host-ip>                 # L3 reachability by IP
nc -vz <host> <port>               # is the service port open
dig <name> @<internal-resolver>    # does the name resolve, to what

Three quick outcomes:

  • IP pings, name fails -> DNS problem (go to DNS section)
  • Neither pings -> host or path down (mesh, switch, gateway)
  • Both fine, port closed -> the service, not the network (hand back to the app)

NetBird mesh

Ask the control plane first - it answers when the peer does not:

hh netbird summary                 # offline peers, agent version drift
hh netbird peers                   # last seen, per peer
hh netbird peer <name>             # one peer in full

Then the peer's own opinion, which is a good second source and a poor first one:

netbird status                     # local peers and connection state
hh run <alias> "netbird status"       # from the far side, if reachable another way

If a host is reachable on its LAN IP but not its mesh IP, the mesh peer is down. Restart NetBird on that host; peers commonly need a nudge after the host reboots.

DNS

resolvectl status | head -30
dig <name> @<internal-resolver>
dig <name> @1.1.1.1                # compare internal vs external answer

Split-horizon mismatches (internal name resolving differently per VLAN, or a stale record after a gateway change) show up as "works from here, not from there". Compare answers from two vantage points.

Ingress

There may be TWO ways in, and checking only one is the most common way to conclude wrongly that a service is not published:

  • a Cloudflare Tunnel, and
  • a NetBird BYOP reverse proxy, if the account runs one.

Ask both before deciding:

hh netbird services                # NetBird-published, and public vs mesh-only
hh cloudflare tunnels              # Cloudflare-published

A NetBird service marked mesh-only is reachable over the mesh and gated by group membership - it has a domain and a certificate and is deliberately NOT on the internet. That is a configuration, not a fault.

Cloudflare Tunnels

Cloudflare's own view first, for the same reason:

hh cloudflare tunnels              # status and live connection counts
hh cloudflare tunnel-show <name>   # which hostname maps to which service
hh cloudflare records <zone> <name>  # does the DNS record point at it

A hostname needs BOTH an ingress rule and a CNAME to <tunnel-id>.cfargotunnel.com; one without the other is a common half-finished state that looks like a tunnel fault and is not.

Then the daemon on the host:

hh run <tunnel-host> "cloudflared tunnel list"
hh run <tunnel-host> "systemctl status cloudflared"
hh run <tunnel-host> "journalctl -u cloudflared -n 80 --no-pager"

Physical layer (10GbE)

If storage throughput suddenly tanks, check for link renegotiation.

hh run truenas "ethtool <iface> | grep -i speed"
hh run truenas "ip -s link show <iface>"   # errors/drops climbing

The UCG-Ultra and the XS708E are managed from their own UIs; note findings here and in infra/network.md, since they are not SSH targets.

Frequently asked questions

What does the Network Diag AI skill do?

Diagnose homelab connectivity, DNS, mesh, and ingress issues. Use this whenever the user reports that hosts or services are unreachable, DNS is not resolving, the NetBird mesh is flaky, a Cloudflare Tunnel is down, the UCG-Ultra gateway or Netgear 10GbE switch is involved, a link dropped or renegotiated speed, or a service works locally but not remotely. Trigger this early in any "everything is down" situation, since broad outages are usually a network or DNS layer wearing an application costume.

Why use Network Diag on TypingMind?

Because you install it once and use it with any model. Network Diag 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 Diag in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/network-diag. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Network Diag?

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 Diag?

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

Is the Network Diag AI skill free?

It is published on GitHub by serversathome. Check the repository for licensing terms. 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 👇