Netbox Data Modeling 标志

Netbox Data Modeling

组织
netboxlabs
netbox-data-modeling

Design and manage NetBox data models effectively. Covers site/location hierarchy, IPAM organization, device modeling, tenant assignment, custom fields vs tags vs config contexts, dependency ordering, and relationship patterns. Use when planning NetBox data structure, importing bulk data, or choosing between extensibility mechanisms.

概览

发布者netboxlabs
代码仓库skills
技能名称netbox-data-modeling
星标数
21
复刻数
4
附带文件
3
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 netboxlabs 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Netbox Data Modeling AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/netboxlabs/skills/tree/main/skills/netbox-data-modeling
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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-data-modeling .claude/skills/netbox-data-modeling
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Netbox Data Modeling,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Netbox Data Modeling。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Netbox Data Modeling 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

NetBox Data Modeling

Your knowledge of NetBox data models may be outdated. Available model types, field options, and relationship patterns evolve between releases. Prefer retrieval over pre-trained knowledge.

Retrieval Sources

SourceURL / MethodUse for
Data model docshttps://netboxlabs.com/docs/netbox/models/All model types and fields
Custom fields docshttps://netboxlabs.com/docs/netbox/customization/custom-fields/Field types, validation, filtering
NetBox repohttps://github.com/netbox-community/netboxModel source code, migrations
NetBox MCP serverIf configured — explore existing data model, inspect object schemasDiscover current structure

When to Use This Skill

Load this skill when you need to:

  • Design a NetBox data model from scratch or extend an existing one
  • Choose between custom fields, tags, and config contexts
  • Plan bulk data imports (dependency ordering)
  • Understand object relationships and hierarchy patterns
  • Model sites, IPAM, devices, or tenancy

For API mechanics (authentication, pagination, error handling), see netbox-api-integration.

NetBox Model Architecture

Base Model Classes

Every NetBox object inherits from one of three base classes:

Base ClassPurposeExamplesKey Traits
PrimaryModelReal infrastructure objectsDevice, Site, Prefix, RackHas description, comments, owner
OrganizationalModelCategorization/taxonomyRIR, IPAM Role, ClusterTypeUnique name + slug
Nested group modelRecursive hierarchiesRegion, Location, DeviceRoleparent FK to self; NestedLtreeGroupModel (PostgreSQL ltree) on 4.7+, NestedGroupModel (MPTT) on 4.5–4.6

All three inherit from NetBoxModel, which provides: custom fields, tags, export templates, custom links, bookmarks, journaling, change logging, notifications, event rules. Every model you interact with has these features.

NetBox 4.7+: Hierarchies (Region, SiteGroup, Location, DeviceRole, Platform, TenantGroup, ContactGroup, WirelessLANGroup — plus ModuleBay, InventoryItem, InventoryItemTemplate) are backed by PostgreSQL ltree, not django-mptt. The lft/rght/tree_id/level columns are gone: level is a Python property only and cannot be used in a filter or order_by. Renames/reparents cascade to descendants automatically. The parent FK, the REST parent_id/ancestor_id filters, and descendant-inclusive filters like ?region_id= are unchanged, so the modeling advice below applies on every version. Plugin/script code: get_ancestors(), get_descendants(), get_children(), add_related_count() remain; get_root(), get_family(), is_leaf_node(), move_to(), insert_at() are gone. (NestedGroupModel still exists for plugins but is deprecated.)

NetBox 4.5: DeviceRole and Platform changed from OrganizationalModel to a nested group model — they support parent-child hierarchies on 4.5–4.7.

App Structure

AppScopeKey Models
dcimPhysical infrastructureRegion, Site, Location, Rack, RackType, Device, DeviceType, Manufacturer, DeviceRole, Platform, Interface, MACAddress, PowerPanel/PowerFeed, CoolingSource/CoolingFeed (4.7), ModuleBayType (4.7)
ipamIP addressingRIR, Aggregate, Prefix, IPAddress, IPRange, VRF, VLAN, VLANGroup, ASN
circuitsConnectivityProvider, Circuit, CircuitGroup, VirtualCircuit
tenancyOwnershipTenantGroup, Tenant, Contact, ContactAssignment
virtualizationVMsClusterType, Cluster, VirtualMachine, VMInterface, VirtualDisk
vpnTunnels/VPNsTunnel, TunnelGroup, L2VPN, IKE/IPSec policies
wirelessWirelessWirelessLAN, WirelessLANGroup, WirelessLink

See references/model-map.md for the complete relationship map.

Core Design Patterns

1. Site & Location Hierarchy

Region (geographic, recursive)    SiteGroup (functional, recursive)
         \                              /
          └──────── Site ──────────────┘
                      │
                  Location (recursive, within site)
                      │
                    Rack → Device
  • Regions = geography: continent → country → metro
  • SiteGroups = function: production, staging, lab, edge
  • Site = a physical facility; optionally assigned to one Region AND/OR one SiteGroup
  • Locations = subdivisions within a site: building → floor → room → row
  • Use Regions when you need geographic filtering/reporting
  • Use SiteGroups when you need functional grouping across geographies
  • Both are optional — start simple, add hierarchy when filtering demands it

See references/model-map.md for the complete relationship map and hierarchy design guidance.

2. IPAM Organization

RIR → Aggregate (top-level allocation, e.g., 10.0.0.0/8)
         └── Prefix (auto-nests by CIDR containment)
               ├── child Prefixes
               ├── IPRange
               └── IPAddress

VRF ──── scopes Prefixes, IPAddresses, IPRanges
VLAN ←── linked to Prefix (optional)

Key rules:

  • Use status=container for summary/aggregate prefixes, status=active for allocated
  • VRF=null means global routing table. Use VRFs for overlapping address spaces
  • Set enforce_unique=True on VRFs to prevent duplicate prefixes
  • Prefixes auto-nest: creating 10.0.1.0/24 inside existing 10.0.0.0/16 builds the tree automatically
  • Services (on a Device or VM): on 4.7+ use port_mappings (["tcp/53", "udp/53"]) — one service can span protocols. protocol + ports are deprecated (removed in 5.0) and read back null for multi-protocol services. On 4.5–4.6 use protocol + ports and create one service per protocol.

Scope pattern (4.x): Prefixes and VLANGroups use CachedScopeMixin — a generic FK (scope_type + scope_id) rather than a direct site FK. VLANGroup scope accepts Region, SiteGroup, Site, Location, Rack, ClusterGroup, Cluster (this full set since 4.5), plus RackGroup as of 4.6.

python
# Setting scope via API
{"prefix": "10.0.1.0/24", "scope_type": "dcim.site", "scope_id": 42}

3. Device Modeling

Manufacturer → DeviceType (template with component templates)
                              ↓ (instantiation)
DeviceRole + Site + DeviceType → Device (with auto-created components)
  • DeviceType defines the hardware template: interface templates, power ports, module bays
  • Creating a Device auto-creates components from its DeviceType's templates
  • Modules extend devices: module types define additional component templates inserted into module bays
  • DeviceRole (4.5: hierarchical) — use for config context matching and classification
  • Platform (4.5: hierarchical) — OS/firmware family; optionally tied to a Manufacturer
  • Racks: assign a RackType (Manufacturer → RackType → Rack) and put physical dimensions there. On 4.7 the per-rack form_factor, width, outer_width/height/depth/unit fields are deprecated; in 5.0 they are removed and rack_type becomes mandatory. u_height, starting_unit, desc_units, mounting_depth stay on the Rack.

MACAddress has been a standalone model (multiple per interface, one primary) since NetBox 4.2 — on all of 4.5–4.7 it is not just a field on Interface. 4.7+: Interface/VMInterface mac_address is writable — writing it creates or updates the primary MACAddress in one call; MACAddress.is_primary is read-only.

NetBox 4.7+ device modeling additions (all optional; ignore on 4.5–4.6):

  • ModuleBayType — allow-list of what fits where. M2M module_bay_types on ModuleBay, ModuleBayTemplate, and ModuleType. Installation is rejected only when both bay and module type declare types and share none; template types propagate to instantiated bays. Read-only Module.is_bay_compatible / ModuleBay.is_module_compatible.
  • Module relocation — PATCH a Module's module_bay to move it (device derived from the bay); the module's subtree moves with it. Cross-device moves require no cables, IPs, VLANs, or other topology on the moved components.
  • Channelized interfaces — set channels (e.g. 4) on the physical parent; create one subinterface per channel with parent + channel_id (1-based) and type channel (or the real transceiver type). One cable terminates on the parent; NetBox traces a path per channel. Same fields on InterfaceTemplate. Don't model breakouts as ad-hoc virtual interfaces.
  • end_of_life date on DeviceType/ModuleType — use for lifecycle planning instead of a custom field.
  • Cooling — cooling_method (air/liquid/hybrid/immersion) on Device/DeviceType/ModuleType (device inherits from its type on create); cooling_capability (air-only/hybrid/liquid-only) + cooling_capacity (kW) on Rack/RackType (rack inherits from type). See §3a for full cooling topology.

3a. Power & Cooling (4.7+ for cooling)

PowerPanel (site, location?) → PowerFeed (→ rack?) → PowerPort ⇄ PowerOutlet (device components)
CoolingSource (site, location?) → CoolingFeed (→ rack?) → CoolingIntake ← CoolingOutflow (device components)
  • CoolingSource = facility plant (chiller, cooling tower, dry cooler, CRAC/CRAH); site required, location optional, type, status, fluid_type, cooling_capacity (kW)
  • CoolingFeed = one coolant loop (supply + return) from a source to a rack (optional); status, cooling_capacity, max_flow/max_flow_unit, tenant
  • CoolingIntake / CoolingOutflow = device components (with DeviceType/ModuleType templates). An intake's cooling_outflow points to the upstream outflow (usually on another device — a CDU); an outflow's cooling_intake points to the intake on the same device
  • Model CDUs, manifolds, and rear-door heat exchangers as ordinary (zero-U) devices with intake/outflow components — there is no CDU model. Hoses are references, not Cables. The feed serving a device is derived from its rack
  • Endpoints: dcim/cooling-sources/, dcim/cooling-feeds/, dcim/cooling-intakes/, dcim/cooling-outflows/, plus -templates/

4. Tenant Assignment

Tenant is an optional FK on nearly every PrimaryModel: Site, Device, Rack, Prefix, VLAN, VRF, Circuit, VM, Cluster, IPAddress, etc.

Pattern: TenantGroup (hierarchy) → Tenant → assign to objects

Use cases:

  • MSP customer segregation
  • Internal department ownership
  • Cost center tracking

Anti-pattern: Don't overload Tenant for two dimensions (e.g., both "customer" and "department"). Use Tenant for the primary ownership dimension; use custom fields or tags for secondary dimensions.

5. Contact Assignment

Contacts use a generic relation pattern: ContactAssignment links any object to a Contact with a ContactRole.

Contact + ContactRole + any object → ContactAssignment

ContactGroups organize contacts hierarchically. Multiple contacts with different roles can be assigned to the same object.

Extending the Data Model

Decision: Custom Field vs Tag vs Config Context

Question→ Custom Field→ Tag→ Config Context
Does it have a value beyond yes/no?✅❌✅
Applied across many object types?❌ (scoped)✅❌ (devices/VMs only)
Need to filter/search by it?✅✅❌ (not directly)
Used by automation/config rendering?❌❌✅
Inherited/computed from hierarchy?❌❌✅
Per-object unique value?✅❌❌ (matched by criteria)

Examples:

  • Warranty expiry date → custom field (per-device, typed, filterable)
  • PCI-compliant → tag (boolean-like, cross-object)
  • NTP servers for a site's devices → config context (inherited, used in config rendering)

See references/custom-field-types.md for all field types and decision guidance.

Custom Fields — Key Points

  • Types: text, longtext, integer, decimal, boolean, date, datetime, URL, JSON, selection, multi-selection, object, multi-object (13 types — unchanged through 4.7; there is no standalone "color" type)
  • 4.7+ read format: selection/multi-selection values come back as {"value": "prod", "label": "Production"} objects (REST and GraphQL); still write the raw value. 4.5–4.6 return the raw value
  • 4.7+: URL fields are validated against ALLOWED_URL_SCHEMES (scheme-less values become https://…); nulls_first controls where empty values sort; read-only status (active/provisioning/deleting) — create-with-default and delete run as a background job above BULK_UPDATE_CHUNK_SIZE objects, and the field is not live until active
  • JSON fields accept an optional validation_schema (4.6+) to enforce a JSON Schema on values
  • Selection/multi-selection choice sets support per-choice colors (choice_colors, 4.6+) — this is what release notes call the "color custom field", not a new field type
  • Object/multi-object fields create relationships to other NetBox objects — prefer these over storing names in text fields
  • Scope to specific object types at creation time
  • Group fields with group_name for UI organization
  • Visibility: always / if-set / hidden
  • Filter via API: ?cf_<field_name>=<value>

Tags — Key Points

  • Properties: name, slug, color, description
  • Restrict object_types to relevant models (don't let every tag appear everywhere)
  • Filter via API: ?tag=<slug>
  • No value — presence/absence only. If you need a value, use a custom field

Config Contexts — Key Points

  • JSON data matched to devices/VMs via: regions, site_groups, sites, locations, device_types, roles, platforms, cluster_types, cluster_groups, clusters, tenant_groups, tenants, tags
  • Weight-based merging: lower weight merges first, higher weight overwrites conflicts
  • Deep merge for dicts; replace for lists
  • Local context data (on device/VM directly) always wins
  • ConfigContextProfile enforces JSON Schema validation
  • Rendered output: on 4.7+ config_context is pre-rendered and cached on the object; ?exclude=config_context is silently ignored on every 4.7.x. On 4.7.0–4.7.2 it is always loaded; on 4.7.3+ ?omit=config_context (or ?fields=/?brief=True) skips the DB annotation again. On 4.5–4.6 trim it with ?omit=config_context (4.5.2+) or ?exclude=config_context when listing devices/VMs — see netbox-api-integration

Dependency Order

When bulk-importing data, create objects in dependency order. Required FKs must exist before the dependent object.

High-level order:

  1. Organizational models (RIR, Manufacturer, ClusterType, DeviceRole, Platform, IPAM Role, RackRole, ModuleBayType (4.7))
  2. Taxonomy hierarchies (Region, SiteGroup, TenantGroup, Tenant) — parents before children
  3. Sites → Locations → RackTypes (needs Manufacturer) → Racks → PowerPanels/CoolingSources (4.7) → PowerFeeds/CoolingFeeds (4.7)
  4. DeviceTypes / ModuleTypes (needs Manufacturer; ModuleBayType before ModuleType on 4.7)
  5. Devices (needs DeviceType, DeviceRole, Site) → Modules → channel subinterfaces (4.7)
  6. IPAM: VRFs → Aggregates → Prefixes → IP Addresses
  7. VLANGroups → VLANs
  8. Clusters → VMs
  9. Circuits (needs Provider, CircuitType)
  10. Custom fields, tags, config contexts (can be created at any point but best early)

See references/dependency-order.md for the complete ordered list.

Anti-Patterns

  1. Flat site structure — Not using Regions/SiteGroups with 50+ sites. Kills filtering and reporting.
  2. Text custom fields as relationships — Use object/multi-object custom field types instead of storing names as text.
  3. Duplicate dimensions — Having both cf_environment=production AND tag production. Pick one.
  4. Ignoring dependency order — Creating devices before sites/device types. Scripts fail on missing FKs.
  5. Everything in global VRF — Model overlapping address spaces properly with VRFs.
  6. Overloading tenant — Using tenant for two things. One dimension only; use custom fields for the rest.
  7. Giant config contexts — Store variables, not entire configs. Use config templates for rendering.
  8. Unused roles — DeviceRole drives config context matching. Design roles deliberately, use 4.5 hierarchy.
  9. Prefix without status — Always set container/active/reserved. Container = organizational, active = allocated.
  10. Hardcoded PKs — Use name/slug for lookups. PKs differ across environments.
  11. Racks without a RackType — Per-rack dimensions are deprecated in 4.7 and gone in 5.0. Define a RackType per physical model and assign it.
  12. Cooling/lifecycle data in custom fields (4.7+) — Use cooling_method, cooling_capability/cooling_capacity, end_of_life, and the cooling models instead of cf_cooling/cf_eol.

Version Notes

NetBox 4.7 (2026-09-02) — 4.7+ only; recommend ≥ 4.7.3 (4.7.0/4.7.1 leaked token plaintexts into job results; 4.7.3 adds branch-safe background writes and the config-context omit optimisation)

ChangeImpact
Hierarchies on ltreelevel not filterable/orderable; renames cascade; NestedGroupModel → NestedLtreeGroupModel for plugins. Restores from a 4.7.0 pg_dump lose cascade triggers — run rebuild_ltree_paths --check (fixed 4.7.1)
Cooling modelsCoolingSource → CoolingFeed → CoolingIntake/CoolingOutflow (+ templates); cooling_method on Device/DeviceType/ModuleType; cooling_capability/cooling_capacity on Rack/RackType
ModuleBayTypeM2M module_bay_types on ModuleBay/ModuleBayTemplate/ModuleType; compatibility enforced when both sides declare types; endpoint dcim/module-bay-types/
Channelized interfaceschannels on parent, channel_id + parent on subinterfaces, channel interface type; one cable on the parent, one path per channel
Module relocationPATCH module_bay to move a module (cross-device if no active topology)
Service port_mappingsReplaces protocol + ports (deprecated, removed 5.0); multi-protocol services
Rack fields deprecatedform_factor, width, outer_* on Rack — move to RackType; rack_type mandatory in 5.0
end_of_lifeDate on DeviceType/ModuleType
Interface mac_address writableCreates/updates the primary MACAddress; MACAddress.is_primary
Custom field selection valuesReturned as {value, label}; raw value on write. URL fields validated against ALLOWED_URL_SCHEMES; nulls_first; read-only status with background provisioning
Config context cachedPre-rendered; ?exclude=config_context ignored on every 4.7.x; ?omit=config_context skips the DB work again on 4.7.3+

NetBox 4.5

ChangeImpact
DeviceRole → NestedGroupModelDesign role hierarchies (e.g., network → network/router, network/switch)
Platform → NestedGroupModelDesign platform hierarchies (e.g., cisco-ios → cisco-ios/xe, cisco-ios/xr)
MACAddress standalone model (since 4.2)MAC addresses are first-class objects, not just interface fields — applies on every supported version
VirtualDeviceContextModel VDCs on multi-tenant devices
CachedScopeMixin on Prefix/VLANGroupUse scope_type/scope_id instead of direct site FK
v2 API tokensUse Bearer nbt_<key>.<secret> format
ConfigContextProfileValidate config context data against JSON Schema
VirtualCircuit, CircuitGroupNew circuit modeling options
VirtualDiskDisk modeling for VMs

NetBox 4.6 (all 4.6+ only — don't assume on a 4.5.x instance)

ChangeImpact
VirtualMachineTypeReusable VM classification (like DeviceType) supplying default platform/vCPUs/memory; endpoint virtualization/virtual-machine-types/. VM gains optional virtual_machine_type FK
VM cluster now optionalA VM must be tied to at least one of site, cluster, or device — clusterless VMs attached directly to a Device are now first-class
CableBundleLogical grouping of cables (conduit/trunk/harness); Cable.bundle FK, optional, does not affect tracing; endpoint dcim/cable-bundles/
RackGroup (flat)Secondary, non-hierarchical rack categorization (row/aisle/cage) orthogonal to Location; Rack.group FK; endpoint dcim/rack-groups/. Can scope VLANGroups
VLANGroup scope += rackgrouprackgroup added to the VLANGroup scope types (full set: region/sitegroup/site/location/rackgroup/rack/clustergroup/cluster)
ASN roleASNs can now carry an ipam Role (Roles classify prefixes, VLANs, and ASNs)
JSON CF validation_schemaJSON custom fields can enforce a JSON Schema
Choice colorsPer-choice colors on selection/multiselect choice sets (choice_colors) — not a new field type
v1 API tokensDeprecated in 4.6, removed in 5.0; v2 nbt_ tokens return plaintext once at creation (4.6.1)

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Netbox Data Modeling AI 技能有什么作用?

Design and manage NetBox data models effectively. Covers site/location hierarchy, IPAM organization, device modeling, tenant assignment, custom fields vs tags vs config contexts, dependency ordering, and relationship patterns. Use when planning NetBox data structure, importing bulk data, or choosing between extensibility mechanisms.

为什么在 TypingMind 中使用 Netbox Data Modeling?

因为您只需安装一次,就能搭配任何模型使用。Netbox Data Modeling 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Netbox Data Modeling?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/netboxlabs/skills/tree/main/skills/netbox-data-modeling。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Netbox Data Modeling?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Netbox Data Modeling 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Netbox Data Modeling 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Netbox Data Modeling AI 技能免费吗?

是的。netboxlabs 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇