unifi-tools: Skill for Claude Code

.agents/skills/unifi/SKILL.md

unifi is a skill for Claude Code from brianbell-x/unifi-tools. It costs 70 tokens per session (3,367 once invoked), scanned A, original, MIT.

A command-line and tool interface for managing UniFi network controllers and their connected equipment. UniFi is Ubiquiti's system for administering networks, Wi-Fi, firewalls, VPNs, and related devices.

In plain words
What is it for?
Use it to inspect or manage devices, clients, Wi-Fi, VLANs, firewall policies, access rules, DNS policies, VPNs, and hotspot vouchers.
Why use it?
It removes the need to handle each network-management operation manually and returns results as JSON for easier automation.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is brianbell-x/unifi-tools's own configuration. It tells Claude Code how to work on unifi-tools itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything unifi-tools configures →

Reuse

Borrowing it

Nothing to install: this file belongs to brianbell-x/unifi-tools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/brianbell-x/unifi-tools/main/.agents/skills/unifi/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/brianbell-x/unifi-tools

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for unifi

README.md
[![agentmods](https://agentmods.dev/badge/skills/brianbell-x/unifi-tools/unifi/github.svg)](https://agentmods.dev/skills/brianbell-x/unifi-tools/unifi)
Your own site
<a href="https://agentmods.dev/skills/brianbell-x/unifi-tools/unifi"><img src="https://agentmods.dev/badge/skills/brianbell-x/unifi-tools/unifi/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for unifi

Your own site · 80×15
<a href="https://agentmods.dev/skills/brianbell-x/unifi-tools/unifi"><img src="https://agentmods.dev/badge/skills/brianbell-x/unifi-tools/unifi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.03367
Opus 5.5 $0.00028 $0.01347
Sonnet 5.5 $0.00014 $0.00673
Haiku 4.5 $0.00007 $0.00337

Measured 2mo ago against content hash e1bf2f23a89c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unifi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/unifi/SKILL.md · 254 lines

How it starts

The opening of the file, as written. The whole thing — 254 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UniFi Network Management

One tool, two faces, same names: CLI command unifi list devices == MCP tool unifi_list_devices. Prefer the CLI when a shell is available. Everything below uses CLI syntax; for MCP, join the command words with _ and pass the same arguments as tool parameters.

  • Config: one file written by unifi init (env vars with the same names override). site_id is optional — single-site controllers auto-resolve.
  • Output: JSON. Exit code 1 when the result is an error.
  • Destructive commands (delete, remove, restart, power, unauthorize, bulk, mongo write, ssh exec, provision) require --yes.
  • Read-only mode: UNIFI_READ_ONLY=true blocks all writes server-side.

Gotchas

  • Pagination: list endpoints return 25 items by default (vouchers: 100). Use --offset / --limit (max 200; vouchers 1000). Responses include totalCount — loop until you have everything.
  • Filtering: most list/bulk commands accept --filter with property.function(args) syntax: name.eq('Guest'), expired.eq(true), name.like('cam*'), and(a,b), not(x). String values in single quotes (escape ' as '').
  • WiFi/Network creation: the API requires many more fields than the schema suggests — use the complete payloads below; extra fields pass through.
  • ACL rule ordering: lower index = higher priority (first-match-wins).
  • get app info: returns applicationVersion only.

Discovery (run these first)

unifi get app info                  → controller version
unifi list sites                    → site IDs
unifi list devices                  → adopted devices (name, model, mac, state)
unifi list pending-devices          → devices awaiting adoption
unifi list clients                  → connected clients (name, mac, ip, type)
unifi list networks                 → networks/VLANs
unifi list wifi                     → SSIDs
unifi list firewall-zones           → zone IDs (needed for network creation)
unifi list firewall-policies        → zone-based firewall policies
unifi list acl-rules                → ACL rules
unifi list dns-policies             → DNS policies
unifi list traffic-matching-lists   → port/IP lists for ACLs
unifi list wans / vpn-tunnels / vpn-servers / radius-profiles / device-tags / vouchers
unifi list switch-stacks / mc-lag-domains / lags
unifi list dpi-categories / dpi-applications / countries     (global; paginated)

Read the full file on GitHub · 254 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 254 lines · 70 tokens per session scan A e1bf2f23a89c

Subscribe to this mod's changes

unifi is a skill published in the GitHub repository brianbell-x/unifi-tools (15 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 3,367 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

unifi compared with skills from other repositories

unifi next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unifibrianbell-x/unifi-toolsSkill151mo agoMITA70Claude Code
gke-compute-classesgoogle/skillsSkill22kyesterdayApache-2.0A83Claude Code, Codex
jetson-diagnosticNVIDIA/skillsSkill3.9kyesterdayApache-2.0A30Claude Code, Codex
holoscan-install-wheelNVIDIA/skillsSkill3.9kyesterdayApache-2.0A34Claude Code, Codex
offensive-z-waveSnailSploit/Claude-RedSkill10k25d agoMITA113Claude Code, Codex
doca-socket-relayNVIDIA/skillsSkill3.9kyesterdayApache-2.0A236Claude Code, Codex
hsb-flashNVIDIA/skillsSkill3.9kyesterdayApache-2.0B94Claude Code