Логотип Network Diag

Network Diag

Организация
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.

Add to TypingMind

Обзор

Издательserversathome
Репозиторийhomelabhero
Название навыкаnetwork-diag
Звёзды
104
Форки
4
Файлы в комплекте
Только инструкции
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — serversathome. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Network Diag в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/network-diag
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Network Diag в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Network Diag, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Network Diag не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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.

Часто задаваемые вопросы

Что делает навык ИИ 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.

Зачем использовать Network Diag в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Network Diag — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Network Diag в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/network-diag. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Network Diag?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Network Diag?

С любым количеством. В TypingMind вы можете использовать Network Diag с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Network Diag?

Навык опубликован на GitHub. Издатель — serversathome. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇