unifi-mcp-server: Skill for Claude Code

.agents/skills/unifi-security-tools/SKILL.md

unifi-security-tools is a skill for Claude Code, Codex from enuno/unifi-mcp-server. It costs 79 tokens per session (2,213 once invoked), scanned A, original, Apache-2.0.

A developer guide for adding, changing, and testing UniFi security tools. It covers firewall rules and policies, security zones, access-control lists, traffic-matching lists, content filters, port forwarding, RADIUS, and guest portals.

In plain words
What is it for?
Use it when building tools for firewall policies, zones, groups, access controls, traffic lists, content filtering, port forwarding, RADIUS, or guest-portal features.
Why use it?
It explains the different UniFi API paths, how identifiers are mapped, and how to update complete policy objects safely. This reduces the risk of changes that accidentally block access or weaken network protection.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is enuno/unifi-mcp-server's own configuration. It tells Claude Code and Codex how to work on unifi-mcp-server 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-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to enuno/unifi-mcp-server. 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/enuno/unifi-mcp-server/main/.agents/skills/unifi-security-tools/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/enuno/unifi-mcp-server

Made for: Claude Code, Codex.

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-security-tools

README.md
[![agentmods](https://agentmods.dev/badge/skills/enuno/unifi-mcp-server/unifi-security-tools/github.svg)](https://agentmods.dev/skills/enuno/unifi-mcp-server/unifi-security-tools)
Your own site
<a href="https://agentmods.dev/skills/enuno/unifi-mcp-server/unifi-security-tools"><img src="https://agentmods.dev/badge/skills/enuno/unifi-mcp-server/unifi-security-tools/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-security-tools

Your own site · 80×15
<a href="https://agentmods.dev/skills/enuno/unifi-mcp-server/unifi-security-tools"><img src="https://agentmods.dev/badge/skills/enuno/unifi-mcp-server/unifi-security-tools.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,213 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.00079 $0.02213
Opus 5.5 $0.00032 $0.00885
Sonnet 5.5 $0.00016 $0.00443
Haiku 4.5 $0.00008 $0.00221

Measured 9d ago against content hash 003eac1bc893, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unifi-security-tools 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 9d 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-security-tools/SKILL.md · 94 lines

How it starts

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

UniFi Security Tools

These tools change who can reach what on the network, so a mistake can lock users or the operator out. Read this before you change one. For the general add-a-tool workflow, see unifi-mcp-tool-builder. For zone-based firewall (ZBF) background, see zbf-implementation-guide.md in this folder.

Module map

Module Tools API Examples
src/tools/firewall.py 4 legacy list_firewall_rules, create_firewall_rule
src/tools/firewall_policies.py 7 v2 and integration list_firewall_policies, create_firewall_policy, get_zone_policy_matrix
src/tools/firewall_zones.py 7 integration assign_network_to_zone, unassign_network_from_zone
src/tools/firewall_groups.py 7 legacy create_port_group, create_address_group, delete_firewall_group
src/tools/acls.py 5 integration list_acl_rules, create_acl_rule
src/tools/traffic_matching_lists.py 5 integration list_traffic_matching_lists, create_traffic_matching_list
src/tools/content_filtering.py 4 v2 list_content_filters, update_content_filter
src/tools/port_forwarding.py 4 legacy list_port_forwards, create_port_forward
src/tools/radius.py 17 legacy list_radius_profiles, configure_guest_portal

src/tools/zbf_matrix.py holds 7 stubs that raise NotImplementedError. src/main.py does not import it, so none of them is registered. The UniFi API has no zone-matrix endpoint; API.md lists those tools as removed.

Registration and modes

  • Every public async def is a tool (register_module_tools() in src/tool_registry.py). Name helpers with a leading _.
  • All these modules are in _LOCAL_TOOL_MODULES (src/main.py).
  • The security profile covers acls, content_filtering, firewall, firewall_groups, firewall_policies, firewall_zones and port_forwarding, and also site_vpn and vpn. radius and traffic_matching_lists are in the system profile.
  • Run-time checks: firewall_policies, firewall_groups and content_filtering refuse non-local modes with _ensure_local_api() (NotImplementedError). The firewall_zones version of that helper raises ValidationError.
  • No code checks for Network 9.0+. If the v2 zone list is empty, list_firewall_zones_v2 raises APIError with the message "ZBF does not appear to be configured".

Read the full file on GitHub · 94 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. 9d ago First seen · 94 lines · 79 tokens per session scan A 003eac1bc893

Subscribe to this mod's changes

unifi-security-tools is a skill published in the GitHub repository enuno/unifi-mcp-server (308 stars, last pushed 4d ago), licensed Apache-2.0. It adds 79 tokens to every session and 2,213 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-10-15.

Related

Other skills, from other repositories

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

jetson-diagnostic

Read-only Jetson health snapshot for identity, memory, GPU, thermal, power, storage, services, and top processes.

NVIDIA/skills · 30 tokens

holoscan-install-wheel

Install Holoscan SDK 5.x CUDA 13 Python wheels in an isolated environment, choosing the full stack or version-matched components.

NVIDIA/skills · 34 tokens

offensive-z-wave

Z-Wave attack methodology — sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting…

SnailSploit/Claude-Red · 113 tokens

doca-socket-relay

Use this skill when the operator is driving the DOCA Socket Relay to bridge a socket-oriented host application onto a BlueField DPU peer without rewriting it — picking the deployment shape (in-process, sidecar, or BlueField service container), configuring the host-side socket and the DPU-side forwarding endpoint…

NVIDIA/skills · 236 tokens

hsb-flash

Flash the FPGA on an HSB board connected to an NVIDIA devkit. Supports HSB Lattice boards (FPGA versions 2407, 2412, 2507, 2510) and Leopard Imaging VB1940 "all-in-one" cameras (FPGA versions 2507, 2510). Uses release-specific YAML manifests and board-type-specific program commands. Lattice and VB1940 commands must…

NVIDIA/skills · 94 tokens