Apply this skill whenever modifying, debugging, or extending UniFi client data retrieval in the unifi-mcp monorepo — even if the user doesn't explicitly ask about correctness or fallback behavior. Covers five permanent architectural fixtures of clients.py: (1) choosing the right endpoint (/stat/sta for live clients, /rest/user for offline or historical only); (2) preserving name and hostname as independent fields rather than collapsing with "or"; (3) deriving online status via the _is_online() uptime-field fallback when is_online is absent from the payload; (4) building a resilient fallback chain that never re-raises transient endpoint errors; (5) merging dual-source raw payloads with live data winning on overlapping keys. Verified against a live UDM SE controller (UniFi OS 5.1.12 / Network App 10.3.58): 0/180 active clients carry is_online; 121/445 clients have name and hostname set to different values.
$npx -y skills add sirkirby/unifi-mcp --skill unifi-client-data-correctnessInstalls into the current project.
Run `npx skills use "https://github.com/sirkirby/unifi-mcp" --skill "sirkirby/unifi-mcp/unifi-client-data-correctness"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/sirkirby/unifi-mcp" that are relevant to the current task. Run `npx skills add "https://github.com/sirkirby/unifi-mcp"` and select the relevant skills, then follow their instructions.