Logo vun Netbox Designs

Netbox Designs

Organisatioun
netboxlabs
netbox-designs

Write and review NetBox Designs — YAML files that NetBox Designs renders, plans against a NetBox and applies to build infrastructure (regions, sites, racks, devices, modules, cabling, IPAM). Use when asked to write a design, to model infrastructure as a reusable design, to compose designs from the catalogue or the Device Type Library, to fix a design a plan refused, or to read a Designs plan.

Iwwersiicht

Editeurnetboxlabs
Repositoryskills
Skill-Nummnetbox-designs
Stären
21
Forks
4
Matgeliwwert Fichieren
3
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum netboxlabs op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Netbox Designs an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/netboxlabs/skills/tree/main/skills/netbox-designs
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/netboxlabs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/netbox-designs .claude/skills/netbox-designs
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Netbox Designs an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Netbox Designs automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Netbox Designs net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

NetBox Designs

Your knowledge of NetBox Designs may be outdated. Designs is in preview on NetBox Cloud and its format, functions and limitations change between releases. Every docs page is also served as markdown — add .md to the page address — so read the reference before writing a design. Prefer retrieval over pre-trained knowledge.

Retrieval Sources

SourceURL / MethodUse for
Design structurehttps://netboxlabs.com/docs/designs/reference/design-structure.mdTop-level keys, values and empty fields, references, matching
Object types & keyshttps://netboxlabs.com/docs/designs/reference/object-types.mdinfra_type names and the key each type is matched by
Variableshttps://netboxlabs.com/docs/designs/reference/variables.md$USER, $USER_OPTIONAL, defaults, computed values, template_vars
Expressions & loopshttps://netboxlabs.com/docs/designs/reference/expressions.md{{ }} syntax, filters, nbd_loop
Functionshttps://netboxlabs.com/docs/designs/reference/functions.mdnbd.lookup.*, nbd.nbt.*, nbd.dtl.*
Compositionhttps://netboxlabs.com/docs/designs/reference/composition.mdnbd: and dtl: references, pinning
Limitationshttps://netboxlabs.com/docs/designs/reference/limitations.mdWhat Designs doesn't do yet
Design JSON Schemahttps://netboxlabs.com/docs/designs/reference/design.schema.jsonStructural validation in editors and tools
Read a planhttps://netboxlabs.com/docs/designs/how-to/read-a-plan.mdEvery warning and refusal a plan can produce
Device Type Libraryhttps://github.com/netbox-community/devicetype-libraryPaths and commits for dtl: references
Example designshttps://netboxlabs.com/docs/designs/tutorial/the-compute-rack.mdCanonical rack, device and site designs

FIRST: Know the Target

A design is planned against a specific NetBox by NetBox Designs (a NetBox Cloud feature). Before writing one, establish:

  1. The target's NetBox version — it sets netbox_versions and which infra_type names and fields exist. Designs requires NetBox 4.6.0+.
    bash
    curl -s -H "Authorization: Bearer $NETBOX_TOKEN" "$NETBOX_URL/api/status/" | python -c "import sys,json; print(json.load(sys.stdin)['netbox-version'])"
  2. What the catalogue already has — reuse device, rack and site designs with nbd: rather than redefining them. Ask the user for the catalogue names, or list them in the Designs UI (Design Catalogue) or with nbd catalogue versions <name>.
  3. Which Device Type Library files to pin — find the path in the library and a commit or tag to pin with @.
  4. Whether to plan into a branch — the safe default against a NetBox that matters; needs the NetBox Branching plugin. See netbox-branching.

If the nbd CLI is available, check a file offline before adding it: nbd validate <file> --netbox-version 4.7.0.


Scope

This skill covers writing, composing and reviewing designs, and reading the plans they produce. It does NOT cover:

How Designs Works

Every change goes through render → plan → review → apply. Designs fills in variables and includes, computes every object, reads the target NetBox, and produces a plan of creates, updates and deletes. Nothing is written until the plan is applied, and an applied design plans to nothing until the design or NetBox changes.

A deployment is one named instance of a design on one NetBox (like a Helm release). It records which objects it created and which it adopted. It deletes only what it created, never what it adopted or what another deployment still describes. One design can be deployed many times with different variables.

Quick Reference

Minimal design

yaml
# yaml-language-server: $schema=https://netboxlabs.com/docs/designs/reference/design.schema.json
name: Site Foundation
description: A site in a country, with a /16 supernet for its subnets.
netbox_versions: ["4.6.*", "4.7.*"]
variables:
  site_name: $USER
  site_slug: '{{ variables.site_name | slugify }}'
  region: $USER
  supernet: $USER
  status: active
infra:
- infra_type: Site
  name: '{{ variables.site_name }}'
  slug: '{{ variables.site_slug }}'
  status: '{{ variables.status }}'
  region: '{{ variables.region }}'
- infra_type: Prefix
  prefix: '{{ variables.supernet }}'
  status: container
  site: '{{ variables.site_slug }}'
  description: 'Site supernet for {{ variables.site_name }}'

Top-level keys

KeyRequiredHolds
nameYesThe design's title. Other designs refer to it by its catalogue name, not this
descriptionNoWhat the design builds
versionNoA label for this content, such as 1.2.0
netbox_versionsYes"*" or a list of specifiers: ["4.7.*"], [">=4.6,<4.8"]
variablesYesInputs and computed values; {} for none
infraYesThe objects the design builds

Variables

ValueMeans
$USERRequired; the deploy page asks for it
$USER_OPTIONALOptional; every field that uses it is left out when not given
active, 42A default
'{{ variables.site_name | slugify }}'Computed at render from other variables

Expressions, filters, loops

PatternExample
Variable'{{ variables.rack_name }}'
Containing object / its field'{{ parent }}', '{{ parent.site }}'
Loop variable, arithmetic'{{ loop.i }}', '{{ loop.i * 2 - 1 }}'
Filter (one per expression)zeropad, zeropad(N), lower, upper, slugify
Function (double-quote the outer string)"{{ nbd.lookup.endpoint('SW-01', 'Interface', 'eth0') }}"
Loopnbd_loop: {over: {start: 1, end: 10}, as: i} beside the object, design:, or an items: list

Functions

FunctionFinds
nbd.lookup.endpoint(device, kind, name)A port on a device — Interface, ConsolePort, ConsoleServerPort, PowerPort, PowerOutlet, FrontPort, RearPort
nbd.lookup.mgmt_interface(device)The device's management-only interface
nbd.lookup.object(type, field=value, …)Any object by type and field values
nbd.nbt.get_module_bay(device, position)A module bay created by the device type
nbd.dtl.device_type(path) / nbd.dtl.module_type(path)A Device Type Library type — usually written as a dtl: reference instead

Functions look in the design first, then in the target NetBox. None of them allocate.

Composition

SchemeIncludesExample
nbd:A catalogue design, in place of an objectdesign: nbd:devices/Dell_R640_w_module + template_vars:
nbd:<name>@<version>A pinned version (label or content hash)nbd:devices/Dell_R640_w_module@1.0.0
dtl:A Device Type Library file, pin requireddevice_type: 'dtl:device-types/Dell/PowerEdge-R640.yaml@fdf12828'

See references/object-types-and-keys.md for every common type's key and the rules for references, empty values and matching.

Authoring Rules

These are the rules that are easy to get wrong. Follow them every time.

IDRule
DSN-1Every design has name, netbox_versions, variables and infra. netbox_versions is required — the catalogue refuses a design without it, and a plan is refused against a version it doesn't list
DSN-2infra_type is the type's name in NetBox's data model: DeviceType, IPAddress, VRF — not device_type or NetBoxDeviceType. nbd.lookup.endpoint and nbd.lookup.object take the same names. Fields keep NetBox's API names: device_type, primary_ip4
DSN-3Write only the fields the user asks for. A field left out is left alone in NetBox (never drift, never written); a field the design writes is the design's to keep in step
DSN-4Each object is matched with NetBox's by its key (see object types). Changing a key field describes a different object — a plan shows it as delete + create
DSN-5Write values as NetBox stores them: no leading/trailing spaces, MAC addresses as upper-case pairs joined by colons, |- rather than | for multi-line text, lower-case dns_name, slugs without spaces, vid ≤ 4094
DSN-6Refer to another object by its key, name or slug as text (region: Latvia), by '{{ parent }}' when it holds this one, by a mapping of fields (device: {name: SW-01}), or with a function. Add _type: Site when a mapping could match two types
DSN-7Prefer small designs composed with nbd:, and device, module and rack types from the Device Type Library with dtl: — always pinned with @ and a commit or tag
DSN-8Designs don't allocate. Write prefixes, addresses and ASNs explicitly; no function picks the next free one
DSN-9A loop's bounds can't be variables. A design that loops over the same count in several places repeats the count in each
DSN-10Quote strings that hold expressions. When a function's arguments need single quotes, put the whole string in double quotes
DSN-11A device needs a name. An object's text key field (name, slug) must be present; name: "" is refused
DSN-12To clear a text field write ""; an empty YAML value (region:) is null and only clears fields NetBox allows to be null
DSN-13Nest children under a non-field key (regions, racks, devices, modules, cables) and point them back with parent: '{{ parent }}' or site: '{{ parent.site }}'

Workflow

  1. Start from a working example — the tutorial's region hierarchy (nesting), site foundation (variables + references) and compute rack (composition, loops, functions).
  2. Write the smallest design that builds something, such as one device. Validate it (nbd validate, or the JSON Schema in your editor).
  3. Add it to the catalogue. Designs that others include must be added before the designs that include them; the catalogue refuses a design whose nbd: parts are missing and names them. The catalogue name (e.g. devices/Dell_R640_w_module) is what nbd: matches — it must be exact.
  4. Plan against a non-production NetBox or into a branch. Read the plan: counts, grouping, what each delete takes with it. A refusal says what to change — see references/plan-review.md.
  5. Grow it a piece at a time, planning after each step. When a part repeats, make it a design of its own and include it with nbd:.
  6. Apply, then plan again. A correct design plans to nothing once applied. Use Check drift on the deployment later to see whether NetBox still matches.

When you finish a design, report

  • The catalogue names the design includes with nbd:, in the order they must be added to the catalogue.
  • The variables the user must give when they plan ($USER), and the optional ones.
  • The NetBox versions it declares, and any Device Type Library pins it relies on.

Canonical Example: a rack composed from device designs

yaml
name: Compute Rack
netbox_versions: ["4.6.*", "4.7.*"]
description: A 42U compute rack in an existing site, with a top-of-rack switch, ten servers and their cabling.
variables:
  rack_name: $USER
  site_slug: $USER
  status: active
infra:
- infra_type: Rack
  name: '{{ variables.rack_name }}'
  site: '{{ variables.site_slug }}'
  rack_type: dtl:rack-types/APC/AR3350.yaml@fdf12828
  status: '{{ variables.status }}'
  devices:
  - design: nbd:devices/Cisco_3850_w_module          # added to the catalogue first
    template_vars:
      name: '{{ variables.rack_name }}-TOR-01'
      slug: '{{ variables.rack_name }}-tor-01'
      position: 42
      face: front
      status: active
      site: '{{ parent.site }}'
      rack: '{{ parent }}'
  - nbd_loop:
      over: {start: 1, end: 10}
      as: i
    design: nbd:devices/Dell_R640_w_module
    template_vars:
      name: '{{ variables.rack_name }}-COMPUTE-{{ loop.i | zeropad }}'
      slug: '{{ variables.rack_name }}-compute-{{ loop.i | zeropad }}'
      position: '{{ loop.i }}'
      face: front
      status: active
      site: '{{ parent.site }}'
      rack: '{{ parent }}'
  cables:
  - nbd_loop:
      over: {start: 1, end: 10}
      as: i
    items:
    - infra_type: Cable
      label: '{{ variables.rack_name }}-COMPUTE-{{ loop.i | zeropad }}-DATA-A'
      type: cat6a
      status: connected
      termination_a: "{{ nbd.lookup.endpoint('{{ variables.rack_name }}-COMPUTE-{{ loop.i | zeropad }}', 'Interface', 'Ethernet/PCIE1/1') }}"
      termination_b: "{{ nbd.lookup.endpoint('{{ variables.rack_name }}-TOR-01', 'Interface', 'GigabitEthernet1/0/{{ loop.i * 2 - 1 }}') }}"

Report for this design: add devices/Cisco_3850_w_module and devices/Dell_R640_w_module to the catalogue first; the user supplies rack_name and site_slug; the site must already exist (created by another design or in NetBox). The device designs each declare name, slug, status, site as $USER and position, face, serial, rack as $USER_OPTIONAL, and bring their device type and module type in from the Device Type Library — see references/expressions-and-functions.md for the full device design.

Anti-Patterns

Anti-PatternWhy It MattersFix
infra_type: device_type or NetBoxDeviceTypeRefused at renderUse the data-model name: DeviceType
Omitting netbox_versionsCatalogue refuses the designDeclare the versions the design is tested against
dtl: reference without @<commit>Refused; the design would change as the library changesPin every dtl: path to a commit or tag
Writing every field "to be safe"Each written field becomes the design's to own; hand edits in NetBox then show as drift and are overwrittenWrite only what the user asked for
Renaming a device or moving an interface in a designThe key changed, so the plan deletes and recreates it, taking cables and IPs with itKeep key fields stable; read the move line in the plan before applying
Expecting a function to allocate the next free prefix or IPNo function allocatesWrite the address explicitly, or compute it from variables
over: {start: 1, end: '{{ variables.count }}'}Loop bounds can't be variablesHard-code the count, repeated where needed
Two filters in one expression (| lower | slugify)Refused at renderOne filter per expression; chain through a computed variable
Setting a custom field valueSilently not written during previewLeave custom fields out; set them outside Designs
Describing plugin or custom-object modelsNot in NetBox's own data model; refusedDesign core objects only
Depending on a Device Type Library power outlet, front/rear port, or module component other than interfacesNot brought in yetDeclare the port under the device so a cable has an end
Adding the rack design before the device designs it includesCatalogue refuses, naming the missing partsAdd included designs first
comments: |Trailing newline NetBox strips → refusedUse |-
Two deployments writing the same field with different valuesEach apply flips the value backKeep each field in one deployment

Version Notes

Designs preview (NetBox Cloud, 2026)

  • Requires NetBox 4.6.0+ on the target, a v2 nbt_ token with write enabled whose user can view the changelog and manage the object types the designs describe; v1 tokens are refused.
  • Planning into a branch needs the NetBox Branching plugin and its permissions. On NetBox 4.7.0–4.7.2 a write NetBox rejects inside a branch surfaces as a server error (netbox-community/netbox#23366, fixed in 4.7.3); Designs retries one object at a time so the apply reports the real field error.
  • Not yet supported: custom fields, custom objects, plugin models, typed variables, variable loop bounds, allocation, renaming designs or deployments, NDX device types. Planned for general availability: typed variables, NDX types, keeping an object through a move.
  • Every design declares netbox_versions; the tutorial designs declare ["4.6.*", "4.7.*"].

References

  • references/object-types-and-keys.md — Every common infra_type and its key; reference forms; empty values; how objects are matched. Load when writing any object or when a plan says a reference matches nothing or more than one object.
  • references/expressions-and-functions.md — Filters, loop variables, every function's parameters, template_vars rules, and a complete device design. Load when writing loops, cables or includes.
  • references/plan-review.md — What a plan shows, every warning and refusal, deployment semantics (created vs adopted, release, tear down), drift, branches, and a busy NetBox. Load when a plan is refused or before applying deletes.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Netbox Designs?

Write and review NetBox Designs — YAML files that NetBox Designs renders, plans against a NetBox and applies to build infrastructure (regions, sites, racks, devices, modules, cabling, IPAM). Use when asked to write a design, to model infrastructure as a reusable design, to compose designs from the catalogue or the Device Type Library, to fix a design a plan refused, or to read a Designs plan.

Firwat Netbox Designs op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Netbox Designs besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Netbox Designs an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/netboxlabs/skills/tree/main/skills/netbox-designs an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Netbox Designs benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Netbox Designs benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Netbox Designs domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Netbox Designs gratis?

Jo. De Skill gëtt vum netboxlabs ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇