Token导航 LogoToken导航TokenDH.com
开发规范需要联网github未标认证来源可访问clear审计通过

netbox-integration-best-practices网络盒集成最佳实践

Agent Skill

netbox-integration-best-practices 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,979

周安装

85

GitHub Stars

23

下载量

694
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:netbox-integration-best-practices(网络盒集成最佳实践)
来源仓库:https://github.com/netboxlabs/netbox-best-practices
仓库路径:skills/netbox-integration-best-practices
安装命令:
npx skills add https://github.com/netboxlabs/netbox-best-practices --skill netbox-integration-best-practices
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/netboxlabs/netbox-best-practices --skill netbox-integration-best-practices

简介

netbox-integration-best-practices 用于记录任务执行中的错误、纠正和经验缺口。

  • 适合让 Agent 持续沉淀问题、修正和最佳实践,提升后续任务表现。
  • 通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

NetBox Integration Best Practices Skill

This skill provides best practices guidance for building integrations and automations with NetBox REST and GraphQL APIs.

Target Audience

  • Engineers building integrations atop NetBox APIs
  • Teams planning new automations with Claude
  • Developers learning NetBox API best practices

Scope: This skill covers API integration patterns. It does NOT cover plugin development, custom scripts, or NetBox administration.

NetBox Version Requirements

FeatureVersion Required
REST APIAll versions
GraphQL API2.9+
v2 Tokens4.5+ (use these!)
v1 Token Deprecation4.7+ (migrate before this)

Primary target: NetBox 4.4+ with 4.5+ for v2 token features.

When to Apply This Skill

Apply these practices when:

  • Building new NetBox API integrations
  • Reviewing existing integration code
  • Troubleshooting performance issues
  • Planning automation architecture
  • Writing scripts that interact with NetBox

Priority Levels

LevelDescriptionAction
CRITICALSecurity vulnerabilities, data loss, severe performanceMust fix immediately
HIGHSignificant performance/reliability impactShould fix soon
MEDIUMNotable improvements, best practicesPlan to address
LOWMinor improvements, optionalConsider when convenient

Quick Reference

Authentication

  • Use v2 tokens on NetBox 4.5+: Bearer nbt_<key>.<token>
  • Migrate from v1 before NetBox 4.7 (deprecation planned)

REST API

  • Always paginate: ?limit=100 (max 1000)
  • Use PATCH for partial updates, not PUT
  • Use?brief=True for list operations
  • Exclude config_context: ?exclude=config_context (major performance impact)
  • Avoid?q= search filter at scale; use specific filters
  • Bulk operations use list endpoints with JSON arrays (not separate endpoints)

GraphQL

  • Use the query optimizer: netbox-graphql-query-optimizer
  • Always paginate every list query
  • Paginate at every level of nesting
  • Beware offset pagination at scale: Deep offsets are slow; use ID range filtering in 4.5.x, cursor-based in 4.6.0+ (#21110)
  • Request only needed fields
  • Keep depth ≤3, never exceed 5

Performance

  • Exclude config_context from device lists
  • Use brief mode for large lists
  • Parallelize independent requests

Data Ingestion (Diode)

  • For high-volume data ingestion, use Diode instead of direct API
  • Specify dependencies by name, not ID—Diode resolves or creates them
  • No dependency order needed—Diode handles object creation order
  • Use pip install netboxlabs-diode-sdk for Python
  • Use REST/GraphQL API for reading; use Diode for writing/populating

Branching (Plugin)

Requires netbox-branching plugin.
  • Lifecycle: Create → Wait (PROVISIONING→READY) → Work → Sync → Merge
  • Context header: X-NetBox-Branch: {schema_id} (8-char ID, not name)
  • Async operations: sync/merge/revert return Job objects—poll for completion
  • Dry-run: All async ops accept {"commit": false} for validation

Rules by Category

Authentication Rules

RuleImpactDescription
auth-use-v2-tokensCRITICALUse v2 tokens on NetBox 4.5+
auth-provisioning-endpointMEDIUMUse provisioning endpoint for automated token creation

REST API Rules

RuleImpactDescription
rest-list-endpoint-bulk-opsCRITICALUse list endpoints for bulk operations
rest-pagination-requiredHIGHAlways paginate list requests
rest-patch-vs-putHIGHUse PATCH for partial updates
rest-brief-modeHIGHUse?brief=True for lists
rest-field-selectionHIGHUse?fields= to select fields
rest-exclude-config-contextHIGHExclude config_context from device lists
rest-avoid-search-filter-at-scaleHIGHAvoid q= with large datasets
rest-filtering-expressionsMEDIUMUse lookup expressions
rest-custom-field-filtersMEDIUMFilter by custom fields
rest-nested-serializersLOWUnderstand nested serializers
rest-ordering-resultsLOWUse ordering parameter
rest-options-discoveryLOWUse OPTIONS for discovery

GraphQL Rules

RuleImpactDescription
graphql-use-query-optimizerCRITICALUse query optimizer
graphql-always-paginateCRITICALPaginate every list query
graphql-pagination-at-each-levelHIGHPaginate nested lists
graphql-select-only-neededHIGHRequest only needed fields
graphql-calibrate-optimizerHIGHCalibrate against production
graphql-max-depthHIGHKeep depth ≤3
graphql-prefer-filtersMEDIUMFilter server-side
graphql-vs-rest-decisionMEDIUMChoose appropriate API
graphql-complexity-budgetsLOWEstablish complexity budgets

Performance Rules

RuleImpactDescription
perf-exclude-config-contextHIGHExclude config_context
perf-brief-mode-listsHIGHUse brief mode for lists

Data Modeling Rules

RuleImpactDescription
data-dependency-orderCRITICALCreate objects in dependency order
data-site-hierarchyMEDIUMUnderstand site hierarchy
data-ipam-hierarchyMEDIUMUnderstand IPAM hierarchy
data-custom-fieldsMEDIUMUse custom fields properly
data-tags-usageMEDIUMUse tags for classification
data-tenant-isolationMEDIUMUse tenants for separation
data-natural-keysMEDIUMUse natural keys

Integration Rules

RuleImpactDescription
integ-diode-ingestionHIGHUse Diode for high-volume data ingestion
integ-pynetbox-clientHIGHUse pynetbox for Python
integ-branch-api-workflowHIGHComplete branching lifecycle (plugin)
integ-branch-context-headerHIGHBranch context with X-NetBox-Branch header (plugin)
integ-branch-async-operationsMEDIUMJob polling for sync/merge/revert (plugin)
integ-webhook-configurationMEDIUMConfigure webhooks
integ-change-trackingLOWQuery object changes

External References

Official Documentation

Essential Tools

Community

Reference Documentation

DocumentPurpose
HUMAN.mdHuman-readable guide for engineers
netbox-integration-guidelines.mdComprehensive technical reference

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.42%
按下载量换算204

Antigravity

23.91%
按下载量换算166

Gemini CLI

18.31%
按下载量换算127

Cursor

11.73%
按下载量换算81

windsurf

7.9%
按下载量换算55

OpenCode

3.62%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills