Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

remove-model

Skill by netbox-community

Guides developers through removing an existing model from NetBox in a safe deletion order. It covers tests, docs, API, GraphQL, views, forms, the model and the migration.

  • Score 90
  • 22k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install remove-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/remove-model ~/.claude/skills/remove-model

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install remove-model in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The remove-model skill is a step-by-step guide for removing an existing model from NetBox. It lists the roughly 13 components to undo and orders them so that consumers are removed before the code they depend on. It starts with a broad grep for references, then covers tests, docs, navigation, search, GraphQL, the REST API, URL routes, views, tables, forms, the filterset, choices and the model class.

The last step is generating the migration. The skill says not to write migrations by hand and to confirm with the user before running makemigrations, because deletion is irreversible once migrated. It is aimed at NetBox developers who need to remove or deprecate a model or object type.

Written from the project's SKILL.md and checked against it.

What it can do

  • Dependency-ordered removalLists the touch points in an order that removes consumers before providers.
  • Reference searchProvides grep commands to find every mention of a model before editing.
  • Per-layer instructionsExplains what to remove from GraphQL, the REST API, views, forms, tables and models.
  • Migration guidanceTells the user to run makemigrations and migrate, and to review the DeleteModel operation.
  • Gotchas listNotes stale ContentType rows, dangling __all__ re-exports and nested serializer references.
  • Summary checklistProvides a table of files and actions for all 14 steps.

What you need

  • A NetBox source checkout
  • Python with access to manage.py in the netbox/ directory
  • ruff for linting

Try asking

  • Remove the MyModel model from the dcim app in NetBox
  • Find every file that references a model before I delete it
  • Walk me through removing a NetBox model and its migration

Good to know

  • Deleting a model is irreversible once it has been migrated.
  • The skill says not to write migrations manually; the user runs makemigrations.
  • Models with non-nullable foreign keys from retained models must be fixed first.
  • Use ruff check only, not ruff format, on existing files.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/remove-model/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md9 KB

Alternatives to remove-model

All alternatives →
openclaw-github-repo-commandersickn33
94

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.

AAA Skill 50k
gradiogradio-app
94

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.

AAA Skill 44k
hig-components-menussickn33
94

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.

AAA Skill 50k
fastapi-templateswshobson
94

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.

AAA Skill 43k
appfunctionsandroid
94

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.

AAA Skill 11k
agent-qa-authoringsickn33
94

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.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

remove-model: common questions

Does this skill write the migration for me?

No. The source says not to write migrations manually and tells the user to run makemigrations and then migrate.

What should I do before removing a model?

Run the provided grep commands and check for other models with foreign keys or many-to-many fields pointing to it. Non-nullable foreign keys from retained models must be removed or made nullable first.

Are leftover ContentType rows a problem?

The source says they are harmless but can be cleaned up with python manage.py remove_stale_contenttypes.

How do I install remove-model?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is remove-model free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is remove-model safe to use?

It scores 90 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 remove-model?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

remove-model Install

Add to stack

Loading.