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.
npx agentmods add skills/lance0/nbox/writesnpx skills add lance0/nbox --skill writesgit clone --depth 1 https://github.com/lance0/nboxWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00071 | $0.01123 |
| Opus 5 | $0.00036 | $0.00562 |
| Sonnet 5 | $0.00014 | $0.00225 |
| Haiku 4.5 | $0.00007 | $0.00112 |
Grade A, and why
nbox-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 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.
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
nbox safe writes
nbox can modify NetBox through seven safe-write commands, all on the same
plan-first lifecycle (ADR-0001). Reads stay the default — a write never happens
without explicit opt-in.
The universal lifecycle (all seven commands)
Every write follows the same path, so an agent can learn it once:
-
Dry-run (
--dry-run) — builds aMutationPlan, shows the before/after diff, performs no mutation. Needs neither--allow-writesnor--confirm. With--json, returns the stableMutationPlanJSON (schema_version 1). -
Apply (
--allow-writes --confirm) — builds the same plan and applies it. PATCH writes check the precondition (ETag/If-Match on 4.6+, last_updated on pre-4.6); allocate POSTs are server-authoritative and carry no client precondition. With--json, returns aMutationReceipt(schema_version 1). -
Refusal —
--confirmwithout--allow-writesis a usage error (exit 2, empty stdout). Non-TTY /--json/--no-tuinever prompts.
The seven write commands
| Command | Operation | What it does |
|---|---|---|
nbox interface <device> <iface> set description "…" |
update (PATCH) | Set an interface's description |
nbox device <name> set status <value> |
update (PATCH) | Set a device's status (validated live) |
nbox ip reserve <prefix> |
allocate (POST) | Reserve the next available IP |
nbox prefix reserve <cidr> |
allocate (POST) | Reserve the next available child prefix |
nbox ip-range reserve <start|id> |
allocate (POST) | Reserve the next available IP from an IP range |
nbox tag add <type> <name> <tag> |
update (PATCH) | Add a tag to any object |
nbox tag remove <type> <name> <tag> |
update (PATCH) | Remove a tag from any object |
For the exact flags of each command, run nbox <cmd> --help. This skill is
flag-free by design — it points at --help so it can't silently drift as the
CLI evolves.
Agent usage pattern
The recommended agent pattern is a two-step dry-run-then-apply:
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.
- 2d ago First seen · 85 lines · 71 tokens per session scan A 222668d5def6
nbox-writes is a skill published in the GitHub repository lance0/nbox (11 stars, last pushed 20d ago), licensed Apache-2.0. It adds 71 tokens to every session and 1,123 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.
Other skills, from other repositories
dcim-interfaces
NetBox DCIM interface CRUD with composite addressing, VLAN/LAG name resolution, and cable trace.
generic-resource-actions
Shared CRUD pattern for NetBox resources whose entire CLI surface is generated from the OpenAPI schema.
dcim-devices
NetBox DCIM device CRUD with foreign-key name resolution and bulk operations.
ipam-prefixes
NetBox IPAM prefix CRUD plus available-ips and available-prefixes allocation helpers.
raw
Authenticated passthrough to any NetBox /api/ path that does not yet have a typed nbx command.
config
Manage nbx NetBox URL, token, and named contexts in /.config/nbx/config.toml.