agentleFS
henrik-dmghenrik-dmg/ui-network-mcp/skills/health-check/SKILL.md

health-check

Skill1 starsChanged 15 days agoMITView on GitHub

Health check of a UniFi network, with a ranked list of its problems. Use when the user asks how the network is, asks for a status report, or asks what needs attention on a UniFi site.

24 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Call get_site_health. If the tool asks for a site_id, call list_sites, and ask the user which site to check.

    line 12
  2. Very specific:

    Call get_device_health. Record each device that has one of these values:

    line 13
  3. Very specific:

    Call get_topology. For each device that is not online, find its downlinks.

    line 17
  4. Very specific:

    Call get_wifi_overview. Record each item in issues: channel conflicts, transmit retries above 15 %, and disabled broadcasts.

    line 18
  5. Very specific:

    Call get_switch_port_report.

    line 19

“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

UniFi health check

Make one ranked list of the problems of a UniFi site. Each problem has evidence: the tool result and the values that show the problem. All tools in this skill are read-only.

Steps

  1. Call get_site_health. If the tool asks for a site_id, call list_sites, and ask the user which site to check. Record each item in issues, and each device in devices.notOnline.
  2. Call get_device_health. Record each device that has one of these values:
    • cpuUtilizationPct or memoryUtilizationPct above 80.
    • uptimeSec below 86400. The device restarted in the last 24 hours.
    • A statisticsError.
  3. Call get_topology. For each device that is not online, find its downlinks. These devices and their clients have no connection either.
  4. Call get_wifi_overview. Record each item in issues: channel conflicts, transmit retries above 15 %, and disabled broadcasts.
  5. Call get_switch_port_report. Record each item in issues: ports below their maximum speed, and ports with limited PoE power.
  6. Give each recorded problem a severity from the table below. Merge the problems that have the same cause. For example, an offline switch and the offline access points behind it are one problem.
  7. Write the report.

The check is complete when each item that steps 1 to 5 recorded is in the report, or is in the list of dismissed items with a reason.

Severity

SeverityProblems
CriticalThe gateway is not online. A device that is not online has downlinks. The site has a gateway, but wans is empty.
HighAnother device is not online. CPU or memory is above 90 %. A port has limited PoE power.
MediumCPU or memory is above 80 %. Two access points use the same channel. A radio has more than 15 % transmit retries. A port runs below its maximum speed, for example 100 Mbit/s on a 1 Gbit/s port. One model has different firmware versions. A device restarted in the last 24 hours.
LowA firmware update is available. A device waits for adoption. A WiFi broadcast is disabled.

A disabled broadcast or a pending device can be intentional. Show these problems, but do not give them a higher severity.

Report

  1. One sentence about the state of the site, for example "The site is healthy, with 2 low problems."
  2. A table with the columns Severity, Problem, Device, Evidence, and Next step. Put the most severe problem first.
  3. The dismissed items, each with its reason.
  4. A short "Not checked" section. The integration API does not show these data: the signal strength of clients, traffic history, events, and alarms. The UniFi Network app shows them.

For a firmware update, a restart, or a change of the WiFi channels, the next step is an action in the UniFi Network app. Some actions have a tool, for example restart_device. A tool that changes the network needs the approval of the user first.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.