nbox-ipam-read

A read-only tool for answering IP-addressing questions from NetBox, a system for managing networks, addresses, and VLANs.

In plain words
What is it for?
Use it to inspect IPs, prefixes, VLANs, IP ranges, aggregates, VRFs, route targets, utilization, and possible free addresses or child prefixes.
Why use it?
It avoids manually searching several network records to find where an address belongs, how much space remains, or what is available.

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/ipam-read
Any agent
npx skills add lance0/nbox --skill ipam-read
Clone the repo
git clone --depth 1 https://github.com/lance0/nbox

Made for: Claude Code, Codex.

Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,104 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.00082 $0.01104
Opus 5 $0.00041 $0.00552
Sonnet 5 $0.00016 $0.00221
Haiku 4.5 $0.00008 $0.00110

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

Security

Grade A, and why

nbox-ipam-read 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 2d 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/ipam-read/SKILL.md · 74 lines

How it starts

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

nbox IPAM reads

The IPAM read commands answer addressing and routing questions: where an address lives, how full a prefix is, what's free, and how VRFs/route-targets relate. All are read-only. For the flags of any one, run nbox <cmd> --help — this skill is flag-free by design, describing what each command answers.

What each command answers

  • nbox ip <address> — one IP, enriched with its most-specific parent prefix (VRF-scoped), that prefix's VLAN, and the prefix's scope/scope_type (site, location, region, …). Surfaces nat_inside/nat_outside (NetBox 4.6) when set. "Where does 203.0.113.10 live, and in what prefix/VLAN/site?"
  • nbox prefix <cidr> — one prefix with its utilization, child prefixes, and contained IPs. "How full is 10.0.0.0/24, and what's under it?"
  • nbox next-ip <cidr> / nbox next-prefix <cidr> — a read-only preview of the next free address / child block. They reserve nothing (see the warning below).
  • nbox vlan <vid|name> — one VLAN with its referencing prefixes, its own scope/scope_type, and (when it belongs to a scoped VLAN group) the group's group_scope/group_scope_type.
  • nbox ip-range <start|id> — one IP range (the start address or id).
  • nbox aggregate <cidr|id> — one aggregate (the top-level allocation a prefix tree sits under).
  • nbox vrf <name|rd|id> — a VRF as a routing context: RD, tenant, enforce-unique, import/export route targets, counts, plus its prefix tree and scoped addresses.
  • nbox route-target <name|id> — a route target (e.g. 65000:100) plus the VRFs that import and export it.

next-ip / next-prefix reserve NOTHING

next-ip and next-prefix are read-only previews — they show what NetBox would hand out next, but claim nothing and race with other clients. To actually claim an address or block, use the reserve write commands, which POST to NetBox's available-ips / available-prefixes endpoints under the dry-run / confirm gate. See the IPAM allocate and safe writes skills.

Read the full file on GitHub · 74 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. 2d ago First seen · 74 lines · 82 tokens per session scan A 788f05475635

Subscribe to this mod's changes

nbox-ipam-read is a skill published in the GitHub repository lance0/nbox (11 stars, last pushed 20d ago), licensed Apache-2.0. It adds 82 tokens to every session and 1,104 once invoked, about $0.0004 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.