client-troubleshooting
Skill1 starsChanged 15 days agoMITView on GitHub
Troubleshooting of one client on a UniFi network, such as a laptop, phone, or TV that is slow, drops its connection, or has no connection. Use when the user asks why a device on the UniFi network is slow, offline, or unstable.
In this repository4 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- firewall-auditSkill
- firewall-changeSkill
- health-checkSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Call find_client with the name, the IP address, or the MAC address that the user gives.
- Distinctive: line 18
If there is more than one match, ask the user which client.
- Very specific: line 19
Call get_client with the client ID.
- Very specific: line 22
Call get_device and get_device_statistics for the uplinkDeviceId of the client.
- Very specific: line 27
Call get_topology. Follow the uplinks from the uplink device of the client to the gateway.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UniFi client troubleshooting
Find the probable cause of the problem of one client. Examine each device on the path from the client to the gateway. All tools in this skill are read-only, except authorize_guest in step 3.
Limits of the API
The integration API does not show the signal strength of a client, the traffic of a client, the history of its connections, or the switch port of a wired client. Tell the user about these limits when they are important for the problem. The UniFi Network app shows these data.
Steps
- Call
find_clientwith the name, the IP address, or the MAC address that the user gives.- If there is no match, the client is not connected now: the API shows only connected clients. Tell this to the user, and ask for another name, the IP address, or the MAC address. If the client is still not found, continue with step 5 for the device that the client usually connects to, if the user knows it.
- If there is more than one match, ask the user which client.
- Call
get_clientwith the client ID. Recordtype,connectedAt, andaccess.- A
connectedAtin the last minutes can show that the client connects again and again.
- A
- If
access.typeisGUESTandaccess.authorizedis false, the client has no access to the network. That is the probable cause.authorize_guestgives access, but it changes the network: show the change and get the approval of the user first. Ifaccess.authorization.expiresAtis soon, tell the user. - Call
get_deviceandget_device_statisticsfor theuplinkDeviceIdof the client. Record the state,cpuUtilizationPct,memoryUtilizationPct,uptimeSec, and the uplink rates. - Examine the connection of the client:
- For a
WIRELESSclient, callget_wifi_overview. Find the access point of the client inaccessPoints. Record its radios (channel, channel width, transmit retries), its number of wireless clients, and each item inissuesthat names this access point. - For a
WIREDclient, callget_switch_port_report. Find the uplink device indevices. Record its ports below the maximum speed and its ports with limited PoE power. The API does not show which port the client uses, so these ports are only possible causes. - For a
VPNorTELEPORTclient, the client connects through the internet. Examine the WAN of the site withget_site_health.
- For a
- Call
get_topology. Follow the uplinks from the uplink device of the client to the gateway. Record each device on this path that is not online, has CPU or memory above 80 %, or restarted in the last 24 hours (get_device_healthshows these values for all devices).
The examination is complete when each device on the path from the client to the gateway was examined, and each recorded value is in the report.
Probable causes
| Evidence | Probable cause |
| The client is a guest without authorization. | The client has no access to the network. |
| A device on the path is not online, or restarted recently. | The connection breaks at that device. |
| The access point uses the same channel as another access point, or has more than 15 % transmit retries. | Radio interference or a weak signal. |
| The access point has many more wireless clients than the other access points. | The access point is overloaded. |
| A port of the uplink switch runs below its maximum speed, for example at 100 Mbit/s. | A bad cable or a bad connector. |
| A device on the path has CPU or memory above 90 %. | The device is overloaded. |
Report
- The client: name, type, IP address, uplink device, and the time of the connection.
- The probable causes, the most probable first, each with its evidence.
- The next steps for the user. A step that changes the network, for example
restart_deviceorpower_cycle_port, needs the approval of the user first. - The data that the API cannot show, if they are important for this problem.
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
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.

