nbox-tag-writes

nbox-tag-writes is a skill for Claude Code, Codex from lance0/nbox. It costs 55 tokens per session (612 once invoked), scanned A, original, Apache-2.0.

A skill for adding or removing tags on objects in NetBox, a system for documenting network equipment and infrastructure. It supports objects such as devices, IP addresses, networks, VLANs, sites, and racks.

In plain words
What is it for?
Use it to tag or untag NetBox objects by their type, name or reference, and tag name.
Why use it?
It provides a controlled way to change tags, including previewing the change, requiring confirmation, and recording an audit trail.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/lance0/nbox/tag-writes
Any agent
npx skills add lance0/nbox --skill tag-writes
Clone the repo
git clone --depth 1 https://github.com/lance0/nbox

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 nbox-tag-writes

README.md
[![agentmods](https://agentmods.dev/badge/skills/lance0/nbox/tag-writes.svg)](https://agentmods.dev/skills/lance0/nbox/tag-writes)
Your own site
<a href="https://agentmods.dev/skills/lance0/nbox/tag-writes"><img src="https://agentmods.dev/badge/skills/lance0/nbox/tag-writes.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 612 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00055 $0.00612
Opus 5 $0.00028 $0.00306
Sonnet 5 $0.00011 $0.00122
Haiku 4.5 $0.00006 $0.00061

Measured 4d ago against content hash 06439e22698c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

nbox-tag-writes 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 4d 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.

skills/tag-writes/SKILL.md · 56 lines

What it actually says

nbox tag writes

Two update write commands manage tags on any taggable NetBox object, sharing one planner/applier (TagOperation::Add/Remove). Both follow the same dry-run / confirm / audit lifecycle (see the safe writes skill).

The two tag commands

nbox tag add <type> <name> <tag>

Add a tag to any taggable object.

nbox --no-tui tag add device edge01 prod --dry-run --json
nbox --no-tui tag add device edge01 prod --allow-writes --confirm --json

nbox tag remove <type> <name> <tag>

Remove a tag from any taggable object.

nbox --no-tui tag remove device edge01 prod --dry-run --json
nbox --no-tui tag remove device edge01 prod --allow-writes --confirm --json

Optional: --message. Run nbox tag add --help / nbox tag remove --help for the full flag set.

How it works

  • <type> is any read kind: device, ip, prefix, vlan, site, rack, circuit, vm, cluster, vrf, … — anything that carries a tags array.
  • <name> is the object's reference (name, slug, address, CIDR, id — same resolver as nbox <kind> <ref>).
  • <tag> resolves by id, exact name, or exact slug (same resolver as nbox tagged).
  • NetBox PATCH replaces the whole tags array, so the plan carries the full replacement slug list. The before/after diff shows the tag slugs.
  • A no-op (adding a tag the object already carries, or removing one it doesn't) sends no PATCH — the receipt reports no_op: true.
  • Concurrency: ETag + If-Match on NetBox 4.6+; last_updated + before-hash on pre-4.6. A concurrent writer is caught and the write is refused with a "re-run dry-run" message (exit 1).

Reference

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. 4d ago First seen · 56 lines · 55 tokens per session scan A 06439e22698c

Subscribe to this mod's changes

nbox-tag-writes is a skill published in the GitHub repository lance0/nbox (11 stars, last pushed 22d ago), licensed Apache-2.0. It adds 55 tokens to every session and 612 once invoked, about $0.0003 per session on Opus 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-30.