add-model
Skill by netbox-community
Guides an assistant through adding a new model or object type to NetBox. It covers the model, filterset, forms, tables, views, URLs, REST API and GraphQL, in order. Aimed at developers working on NetBox.
Install add-model
Built from the published package, never by AI.
git clone --depth 1 https://github.com/netbox-community/netbox /tmp/netbox && mkdir -p ~/.claude/skills && cp -r /tmp/netbox/.claude/skills/add-model ~/.claude/skills/add-modelRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/netbox-community/netbox /tmp/netbox && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/netbox/.claude/skills/add-model ~/.gemini/antigravity-cli/skills/add-modelAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a step-by-step guide for adding a new model or object type to NetBox. It lists the components a new model needs, in order: the model, choices, a filterset, forms, a table, views, URL routes, a REST API serializer and viewset, and GraphQL filters. It explains the base classes to choose from, such as PrimaryModel, OrganizationalModel, NestedGroupModel and ChangeLoggedModel, and gives code examples for each file.
It is aimed at developers working on the NetBox codebase who want to add a model without missing a part. The guide says to ask which app should own the model before starting. It tells the assistant not to run makemigrations, and to ask the user to run it. The text provided ends partway through the GraphQL section, so later steps such as tests, docs and navigation are not shown.
Written from the project's SKILL.md and checked against it.
What it can do
- Model definitionShows how to define a NetBox model class with the right base class and Meta options.
- FilterSet and formsCovers filtersets, model forms, filter forms, bulk edit forms and bulk import forms.
- Table and viewsShows how to create a table class and the list, detail, edit, delete and bulk views.
- URL routesShows how to register URL routes with get_model_urls for the new model.
- REST APICovers the serializer, the viewset and the API URL route for the new model.
- GraphQL filtersStarts the GraphQL section with a filter type for the new model.
Try asking
- Add a new model called VirtualChassis to the dcim app in NetBox
- Walk me through the FilterSet and forms for a new NetBox model
- Which base class should my new NetBox model use for a grouping object?
Good to know
- Tells the assistant not to run makemigrations; the user must run it.
- The provided text ends partway through the GraphQL section.
- Most steps assume the PrimaryModel base class.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/add-model/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md18 KB
Alternatives to add-model
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
add-model: common questions
What does the add-model skill do?
It gives step-by-step instructions for adding a new model or object type to NetBox, covering each component the model needs. It is written for the NetBox codebase.
Which app should the new model go in?
The guide says to decide the owning app first, such as dcim, ipam or extras, and to ask the user if they have not specified one.
Does the skill run database migrations?
No. The guide tells the assistant not to run makemigrations itself and to ask the user to run python netbox/manage.py makemigrations when finished.
How do I install add-model?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is add-model free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is add-model safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to add-model?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
