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/patch-writesnpx skills add lance0/nbox --skill patch-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.00047 | $0.00662 |
| Opus 5 | $0.00023 | $0.00331 |
| Sonnet 5 | $0.00009 | $0.00132 |
| Haiku 4.5 | $0.00005 | $0.00066 |
Grade A, and why
nbox-patch-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 — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
nbox PATCH writes
Two update write commands modify specific fields on NetBox objects via
minimal PATCH bodies. Both follow the same dry-run / confirm / audit lifecycle
(see the safe writes skill).
The two PATCH commands
nbox interface <device> <interface> set description "…"
Set an interface's description.
nbox --no-tui interface edge01 xe-0/0/1 set description "uplink to core" --dry-run --json
nbox --no-tui interface edge01 xe-0/0/1 set description "uplink to core" --allow-writes --confirm --json
Optional: --message. Run nbox interface <device> <interface> set description --help for the full flag set.
nbox device <name> set status <value>
Set a device's status. The status value is validated live against NetBox's
OPTIONS choices before any PATCH — a label (e.g. "active") is accepted
case-insensitively when it maps unambiguously to one canonical value; an
unknown or ambiguous status is a usage error (exit 2) naming the input and
listing the allowed values, before any PATCH.
nbox --no-tui device edge01 set status active --dry-run --json
nbox --no-tui device edge01 set status active --allow-writes --confirm --json
Optional: --message. Run nbox device <name> set status --help for the full
flag set.
How they work
- Minimal PATCH. The plan carries only the field being changed —
{"description": "…"}or{"status": "active"}. No other fields are sent. - A no-op (current value already matches) sends no
PATCH— the receipt reportsno_op: true. - Concurrency. ETag + If-Match on NetBox 4.6+;
last_updated+ before-hash on pre-4.6. A concurrent writer is caught (412 / hash mismatch) and the write is refused with a "re-run dry-run" message (exit 1). - Choice validation (device status only): the allowed values are
enumerated live from NetBox via a read-only
OPTIONSrequest, so nbox never sends an invalid status. The normalization mechanism (src/netbox/choices.rs) is reusable for future REST choice fields.
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 · 60 lines · 47 tokens per session scan A ec2d1a86d86f
nbox-patch-writes is a skill published in the GitHub repository lance0/nbox (11 stars, last pushed 20d ago), licensed Apache-2.0. It adds 47 tokens to every session and 662 once invoked, about $0.0002 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
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.
dcim-interfaces
NetBox DCIM interface CRUD with composite addressing, VLAN/LAG name resolution, and cable trace.
ipam-prefixes
NetBox IPAM prefix CRUD plus available-ips and available-prefixes allocation helpers.
config
Manage nbx NetBox URL, token, and named contexts in /.config/nbx/config.toml.
preflight
Verify NetBox reachability and token authentication before running mutations.