unifi-mcp: Skill for Claude Code

.agents/skills/add-integration-api-tool/SKILL.md

add-integration-api-tool is a skill for Claude Code from devjourney/unifi-mcp. It costs 141 tokens per session (1,972 once invoked), scanned A, a copy of add-integration-api-tool, MIT.

A development guide for adding tools that use UniFi’s public Integration API, a network-management interface authenticated with an API key.

In plain words
What is it for?
Use it when designing or implementing UniFi Integration API tools, especially when choosing authentication, resource IDs, endpoint paths, fields, and action formats.
Why use it?
It prevents mixing the Integration API with UniFi’s separate controller API, whose IDs, field names, paths, and request formats differ.

Skill for Claude Code

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to devjourney/unifi-mcp. 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/devjourney/unifi-mcp/main/.agents/skills/add-integration-api-tool/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/devjourney/unifi-mcp

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 add-integration-api-tool

README.md
[![agentmods](https://agentmods.dev/badge/skills/devjourney/unifi-mcp/add-integration-api-tool.svg)](https://agentmods.dev/skills/devjourney/unifi-mcp/add-integration-api-tool)
Your own site
<a href="https://agentmods.dev/skills/devjourney/unifi-mcp/add-integration-api-tool"><img src="https://agentmods.dev/badge/skills/devjourney/unifi-mcp/add-integration-api-tool.svg" alt="Measured on agentmods" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,972 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 100% copy Near-identical to another mod 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.00141 $0.01972
Opus 5 $0.00071 $0.00986
Sonnet 5 $0.00028 $0.00394
Haiku 4.5 $0.00014 $0.00197

Measured 7d ago against content hash b2d119edc742, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

add-integration-api-tool 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 7d 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.

Origin

This is a copy

100% identical to add-integration-api-tool — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/add-integration-api-tool/SKILL.md · 206 lines

How it starts

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

Adding a Tool That Uses the UniFi Integration API

The UniFi controller exposes two API surfaces. They are not interchangeable. Skipping this distinction creates silent footguns where IDs from one API are accepted by tools backed by the other and silently fail — or worse, succeed against the wrong resource.

The two surfaces

V2 controller API Integration API
Auth session cookie X-API-Key header
Path prefix /proxy/network/api/..., /proxy/network/v2/api/... /proxy/network/integration/v1/...
IDs Mongo ObjectIDs (674f0...) UUIDs (0998be5a-...)
Field naming snake_case camelCase
Action shape "action": "ALLOW" + flat fields nested {"action": {"type": "ALLOW", "allowReturnTraffic": true}}
ip_version "BOTH" "ipProtocolScope": {"ipVersion": "IPV4_AND_IPV6"}
Coverage everything the web UI uses curated, expanding subset
Membership full controller state filtered (system policies often excluded)

These differences are not cosmetic. The same logical resource appears in V2 with a Mongo ID and in Integration with a UUID, with no native bridge field connecting them.

Step 1: Identify the family

A tool family is a set of tools whose returned IDs and accepted IDs are interchangeable.

  • Reading + writing to the same API endpoint group? Same family.
  • Reading from V2 and writing to V2? Same family (the existing firewall policy CRUD family).
  • Reading from Integration and writing to Integration? Same family.
  • Mixing? You're inventing a bridging tool — see Step 5.

Current families in this codebase:

Family API IDs Tools
Firewall policy CRUD V2 Mongo unifi_list_firewall_policies, unifi_get_firewall_policy_details, create / update / delete / toggle
Firewall policy ordering Integration UUID unifi_get_firewall_policy_ordering + unifi_reorder_firewall_policies

If your new tool fits cleanly inside an existing family, join it. If not, start a new family — and document its boundary.

Read the full file on GitHub · 206 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. 7d ago First seen · 206 lines · 141 tokens per session scan A b2d119edc742

Subscribe to this mod's changes

add-integration-api-tool is a skill published in the GitHub repository devjourney/unifi-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 141 tokens to every session and 1,972 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to add-integration-api-tool, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

ruview-cli-api

Use the RuView wifi-densepose CLI binary (incl. MAT scan/status/zones/survivors/alerts/export subcommands), the REST API (wifi-densepose-api, Axum), and the browser/WASM build (wifi-densepose-wasm, wifi-densepose-wasm-edge). Use when integrating RuView into another program, scripting it from the shell, exposing it…

ruvnet/RuView · 104 tokens

amazon-alexa

Integracao completa com Amazon Alexa para criar skills de voz inteligentes, transformar Alexa em assistente com Claude como cerebro (projeto Auri) e integrar com AWS ecosystem (Lambda, DynamoDB, Polly, Transcribe, Lex, Smart Home).

sickn33/agentic-awesome-skills · 53 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

jetson-customize-pcie

Per-controller PCIe enable / disable / lanes / link-speed for a Jetson Thor or Orin custom carrier via ODMDATA + kernel-DT overlay. Do NOT use for UPHY lane allocation or endpoint-mode bring-up.

NVIDIA/skills · 53 tokens

deepep-to-cam-converter

A code migration skill for replacing DeepEP communication operations with CAM operations when moving mixture-of-experts code from CUDA/NCCL to Ascend NPUs.

XiaoLuoLYG/GOD · 63 tokens

telnyx-iot-curl

Manage IoT SIM cards, eSIMs, data plans, and wireless connectivity. Use when building IoT/M2M solutions. This skill provides REST API (curl) examples.

team-telnyx/ai · 45 tokens