unifi-safe-changes

unifi-safe-changes is a skill for Claude Code from enuno/unifi-mcp-server. It costs 63 tokens per session (1,724 once invoked), scanned A, original, Apache-2.0.

A safety procedure for changing the state of a UniFi network through an MCP server. MCP is a way for software tools to call a service; this procedure covers permissions, explicit confirmation, previews, read-only modes, and audit records.

In plain words
What is it for?
Use it when creating, updating, deleting, or undoing UniFi resources, or when a server refuses a requested change.
Why use it?
It reduces the risk of an unattended change disconnecting the network or being made without a trace. It also explains when a change can be previewed or rolled back.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the unifi-mcp-server plugin — 36 skills, 17 commands, 4 agents, 2 MCP servers shipped together

Good fit Use it when creating, updating, deleting, or undoing UniFi resources, or when a server refuses a requested change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/enuno/unifi-mcp-server/unifi-safe-changes
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add enuno/unifi-mcp-server --skill unifi-safe-changes
Clone the repo
git clone --depth 1 https://github.com/enuno/unifi-mcp-server

Made for: Claude Code.

Or install unifi-mcp-server, the plugin that ships this one along with the rest of its 36 skills, 17 commands, 4 agents, 2 MCP servers.

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-safe-changes

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/enuno/unifi-mcp-server/unifi-safe-changes"><img src="https://agentmods.dev/badge/skills/enuno/unifi-mcp-server/unifi-safe-changes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,724 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00063 $0.01724
Opus 5.5 $0.00025 $0.00690
Sonnet 5.5 $0.00013 $0.00345
Haiku 4.5 $0.00006 $0.00172

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

Security

Grade A, and why

unifi-safe-changes scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -H "Authorization: Bearer $MCP_AUTH_TOKEN" \
skills/unifi-safe-changes/SKILL.md · 161 lines

How it starts

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

Safe State Changes

Every write the server exposes is gated. This skill explains what each gate does, which of them is enforced in code and which is a convention, and how to make a change you can undo.

The four gates

They are independent. A change passes all four or it does not happen.

Gate Where Enforced by
Role The caller's token role must grant the tool's tier src/access.py, checked in the tool wrapper
confirm=True The caller must pass it explicitly The tool wrapper, for every tool that takes a confirm parameter
dry_run=True The caller can ask for a preview The tool wrapper, for every tool that takes a dry_run parameter
Server mode UNIFI_READ_ONLY and UNIFI_DRY_RUN narrow what runs The tool registry, at registration

Only the first three are runtime controls. They are enforced in code and a missing gate is a bug, not a style problem.

confirm is enforced, not advisory

Every mutating tool takes a confirm parameter and the wrapper refuses the call without it. The refusal is an error, not a warning, and it is written to the audit log as denied.

# Refused: the call raises and nothing changes
await client.call_tool("create_firewall_zone", {"site_id": "default", "name": "IoT"})

# Accepted
await client.call_tool(
    "create_firewall_zone",
    {"site_id": "default", "name": "IoT", "confirm": True},
)

A tool without a confirm parameter is a read tool. The server's own registry decides which is which (@read_tool / @write_tool in src/utils/tool_kind.py); the tier is what your role is checked against.

dry_run is a real preview

dry_run=True returns what the change would do without doing it. It is the correct first step for any change you have not performed before.

preview = await client.call_tool(
    "create_firewall_zone",
    {"site_id": "default", "name": "IoT", "confirm": True, "dry_run": True},
)

A dry run proves the request shape and the server's validation. It does not prove the change is safe, and it does not prove the controller will accept it.

Read the full file on GitHub · 161 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. 1mo ago First seen · 161 lines · 63 tokens per session scan A c11a52753ed6

Subscribe to this mod's changes

unifi-safe-changes is a skill published in the GitHub repository enuno/unifi-mcp-server (395 stars, last pushed today), licensed Apache-2.0. It adds 63 tokens to every session and 1,724 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-27.

Related

unifi-safe-changes compared with skills from other repositories

unifi-safe-changes next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unifi-safe-changesenuno/unifi-mcp-serverSkill395todayApache-2.0A63Claude Code
gke-compute-classesgoogle/skillsSkill25ktodayApache-2.0A83Claude Code, Codex
jetson-diagnosticNVIDIA/skillsSkill4.2ktodayApache-2.0A30Claude Code, Codex
holoscan-install-wheelNVIDIA/skillsSkill4.2ktodayApache-2.0A34Claude Code, Codex
offensive-z-waveSnailSploit/Claude-RedSkill12k14d agoMITA113Claude Code, Codex
hsb-flashNVIDIA/skillsSkill4.2ktodayApache-2.0B94Claude Code
jetson-validate-imageNVIDIA/skillsSkill4.2ktodayApache-2.0B50Claude Code, Codex