Logo di Netbox Review Integration

Netbox Review Integration

Organizzazione
netboxlabs
netbox-review-integration

Review and audit NetBox integration code for correctness, performance, and reliability. Use when reviewing scripts or applications that interact with NetBox APIs, checking for pagination bugs, authentication issues, performance anti-patterns, error handling gaps, and SDK misuse.

Panoramica

Pubblicato danetboxlabs
Repositoryskills
Nome della skillnetbox-review-integration
Stelle
21
Fork
4
File inclusi
Solo istruzioni
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da netboxlabs su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Netbox Review Integration in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/netboxlabs/skills/tree/main/skills/netbox-review-integration
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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-review-integration .claude/skills/netbox-review-integration
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Netbox Review Integration in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Netbox Review Integration non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Netbox Review Integration non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

NetBox Integration Code Review

Your knowledge of NetBox APIs may be outdated. Verify specific API behaviors, limits, and patterns against current documentation before flagging issues.

Target: NetBox 4.5–4.7 (current 4.7.3). Several rules flip between 4.6 and 4.7 — establish the target version (GET /api/status/ → netbox-version, or the project's pin) before applying version-tagged rules.

Retrieval Sources

SourceURL / MethodUse for
NetBox REST API docshttps://netboxlabs.com/docs/netbox/integrations/rest-api/Current endpoint behavior
pynetbox repohttps://github.com/netbox-community/pynetboxSDK method signatures
Diode Python SDKhttps://github.com/netboxlabs/diode-sdk-pythonIngestion API patterns
NetBox MCP serverIf configured — verify object schemas and filter availabilityField validation

Review Workflow

Follow this checklist when reviewing NetBox integration code:

  1. Verify retrieval — Check current API docs for any endpoints/patterns you're unsure about
  2. Read the full file — understand the integration's intent before flagging issues
  3. Check authentication — token format, header usage, credential storage
  4. Check pagination — all list endpoints must handle pagination
  5. Check performance — config_context handling (version-dependent), brief mode / field selection, filter specificity
  6. Check error handling — HTTP errors, rate limits, timeouts, partial failures
  7. Check data integrity — correct use of PATCH vs PUT, bulk operation atomicity
  8. Provide evidence — reference specific line numbers and explain why something is wrong

Critical Rules

Authentication (AUTH)

IDRuleSeverity
AUTH-1Use nbt_-prefixed v2 tokens on NetBox 4.5+High
AUTH-2Never hardcode tokens in source — use env vars or secrets managerCritical
AUTH-3Use Bearer prefix in Authorization header (not Token on 4.5+)High
AUTH-4Verify token has required permissions for all accessed endpointsMedium
AUTH-5Flag reliance on v1 (Token <plaintext>) tokens — deprecated in 4.6, removed in v5.0; migrate to v2. On 4.6.1+ the v2 plaintext is shown once at creation, in the response token field (key is only the public identifier) — capture it thenHigh
AUTH-6Never create tokens with ?background=true (4.7.0/4.7.1 recorded plaintexts in job results; 4.7.2 returns 400), and never rely on a client-chosen token value on create (ignored on 4.7+)High
AUTH-7Executing custom scripts via POST /api/extras/scripts/<id>/ on 4.7+ requires a write-enabled token — flag read-only tokens used for itMedium

Pagination (PAG)

IDRuleSeverity
PAG-1All list endpoint calls MUST handle pagination (follow next links)Critical
PAG-2Never assume all results fit in one response — even small collections growHigh
PAG-3Set explicit limit parameter — don't rely on server default (50)Medium
PAG-4GraphQL queries MUST include pagination: {limit: N} at every list levelCritical
PAG-5Nested GraphQL lists need their own pagination parametersHigh
PAG-6Prefer cursor pagination over deep offsets for large reads — REST ?start=<id> (4.6+), GraphQL pagination: {start: N, limit: M} (4.5.2+); flag deep ?offset= scansMedium

Performance (PERF)

IDRuleSeverity
PERF-14.5–4.6: device/VM list queries MUST send ?omit=config_context (4.5.2+) or ?exclude=config_context. 4.7.0–4.7.2: config context is cached and always loaded; ?exclude= is silently ignored — do not flag its absence; flag code that depends on it for payload size and suggest ?fields=/?omit=/?brief=True. 4.7.3+: ?omit=config_context/?fields=/?brief=True skip the config-context DB annotation again — flag list reads that load config_context they never use. ?exclude= is a no-op on every 4.7.x; ?omit=config_context is the version-portable formCritical (4.5–4.6) / Low (4.7.0–4.7.2) / Medium (4.7.3+)
PERF-2Use ?brief=True for reference lookups and dropdownsHigh
PERF-3Use specific filters (name__ic=, site_id=) instead of ?q= at scaleHigh
PERF-4Use ?fields= to select only needed fieldsMedium
PERF-5Parallelize independent API calls — don't serialize unrelated requestsMedium
PERF-6Use bulk endpoints (POST/PATCH/DELETE arrays) instead of per-object callsHigh
PERF-7GraphQL depth must stay ≤ 3, never exceed 5High

Error Handling (ERR)

IDRuleSeverity
ERR-1Handle HTTP 4xx/5xx responses — don't assume successCritical
ERR-2Implement retry with backoff for 429 (rate limit) and 5xx errorsHigh
ERR-3Handle bulk failures — all-or-nothing on every version. On 4.7+ the body is {"detail", "errors": [{"index" or "id", "errors"}]}: map errors back to submitted objects (index for creates and malformed entries, id for updates/deletes) and resubmit only those; on 4.5–4.6 only the first failure's field errors are returnedMedium
ERR-4Check response.errors on Diode ingestion responsesHigh
ERR-5Handle branch async job failures (poll until terminal status)High
ERR-6?background=true (4.7+): 202 is accepted, not succeeded — code must poll job.url to a terminal status and check data.status_code. Flag 202 treated as success, If-Match combined with background (400), missing 503 handling (no worker), and — on 4.7.0–4.7.2 — ?background=true combined with X-NetBox-Branch (header dropped; write lands in main; fixed in 4.7.3)High

Data Integrity (DATA)

IDRuleSeverity
DATA-1Use PATCH for updates — PUT replaces entire objects, clearing omitted fieldsCritical
DATA-2Include id in each object for bulk PATCH/DELETE operationsHigh
DATA-3Use natural keys (slug/name) for readability but be aware of uniqueness constraintsMedium
DATA-4Validate dependency order for REST creates (parent before child)High
DATA-5IPAddress values MUST include CIDR prefix length (/24, not bare IP)High
DATA-6For tag edits, prefer write-only add_tags/remove_tags (4.6+) over read-modify-write of the full tags list — the latter clobbers concurrent writers' tagsMedium
DATA-7For read-modify-write on a single object under concurrency, use ETag + If-Match (4.6+); a 412 response means the object changed — re-fetch and retry rather than blind overwriteMedium
DATA-8On 4.7+, selection/multi-selection custom fields read as {"value", "label"} objects — flag custom_fields["x"] == "raw" comparisons and code that writes the read object back (fails validation); write the raw valueHigh
DATA-9Services: use port_mappings (["tcp/80"]) over the deprecated protocol/ports pair on 4.7+ (removed in 5.0); flag protocol__ic-style and port__empty filters (gone in 4.7)Medium

Anti-Patterns to Flag

Anti-PatternWhy It MattersFix
No pagination loopSilently drops data beyond first pageFollow next links until null
?q= for bulk filteringFull-text search is slow at scaleUse specific filter expressions
PUT for partial updatesClears fields you didn't intend to changeUse PATCH
Hardcoded token in sourceSecurity vulnerabilityUse environment variable
Sequential single-object creates100x slower than bulkUse array POST to list endpoint
Loading config_context on list queries that never use it10-100x slower on 4.5–4.6; extra DB annotation on 4.7.3+; payload bloat only on 4.7.0–4.7.2Add ?omit=config_context (4.5.2+, version-portable); ?exclude= works on 4.5–4.6 only and is ignored on every 4.7.x
Treating HTTP 202 from ?background=true as success (4.7+)Validation and the write happen later in the workerPoll the job URL; check status and data.status_code
custom_fields["env"] == "prod" on 4.7+Selection values are {"value", "label"} dicts — the comparison is always FalseCompare ["value"]; unwrap defensively for mixed 4.6/4.7 fleets
Creating API tokens via ?background=truePlaintext lands in job results (4.7.0/4.7.1); 400 on 4.7.2+Create tokens synchronously; run ≥ 4.7.3 (4.7.0/4.7.1 token leak; 4.7.3 adds branch-safe background writes and the config-context omit optimisation)
?background=true sent with X-NetBox-Branch on 4.7.0–4.7.2Branch header is dropped in the worker — the bulk write lands in main (or is rejected by Changes protect_main)Synchronous bulk writes in branch context on ≤ 4.7.2; carried correctly on 4.7.3+
Catching bare Exception on API callsHides real errorsCatch requests.HTTPError specifically
No timeout on HTTP requestsHangs indefinitely on network issuesSet timeout=30
GraphQL without pagination paramsOmitting pagination returns all rows; pagination without limit returns Strawberry's default 100 (not the REST default of 50) — both silently differ from expectationsAlways pass pagination: {limit: N} explicitly
Polling branch jobs without backoffWastes API calls, may trigger rate limitsExponential backoff (1s → 30s)

Version Notes

NetBox 4.7.3 (2026-10-13)

  • PERF-1 severity rises to Medium: ?omit=config_context/?fields=/?brief=True skip the config-context DB annotation again (?exclude= still a no-op). ERR-6's branch caveat closes: ?background=true now carries X-NetBox-Branch into the worker. Recommend ≥ 4.7.3 (4.7.0/4.7.1 token leak; 4.7.3 adds branch-safe background writes and the config-context omit optimisation).

Scope

This skill covers code that calls NetBox APIs. It does NOT cover:

Principles

  • Be certain. Retrieve current API docs before flagging version-specific issues.
  • Provide evidence. Reference line numbers and explain the actual failure mode.
  • Focus on correctness. A working integration that's slightly verbose is better than a broken clever one.
  • Severity matters. Critical issues break functionality. High issues degrade performance or reliability. Medium issues affect maintainability.
  • Don't over-flag. If code works correctly for its specific use case (e.g., small dataset that fits in one page), note the limitation but don't mark it critical.

Domande frequenti

Cosa fa la skill IA Netbox Review Integration?

Review and audit NetBox integration code for correctness, performance, and reliability. Use when reviewing scripts or applications that interact with NetBox APIs, checking for pagination bugs, authentication issues, performance anti-patterns, error handling gaps, and SDK misuse.

Perché usare Netbox Review Integration su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Netbox Review Integration è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Netbox Review Integration in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/netboxlabs/skills/tree/main/skills/netbox-review-integration. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Netbox Review Integration?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Netbox Review Integration?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Netbox Review Integration: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Netbox Review Integration è gratuita?

Sì. È pubblicata su GitHub da netboxlabs con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇