dmr-from-django-ninja
Skill by wemake-services
Migrates an existing Django API from django-ninja or ninja-extra to django-modern-rest, one slice at a time. Built for Django developers who need routes, schemas, auth and throttling to keep working.
Install dmr-from-django-ninja
Built from the published package, never by AI.
git clone --depth 1 https://github.com/wemake-services/django-modern-rest /tmp/django-modern-rest && mkdir -p ~/.claude/skills && cp -r /tmp/django-modern-rest/dmr/.agents/skills/dmr-from-django-ninja ~/.claude/skills/dmr-from-django-ninjaRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/wemake-services/django-modern-rest /tmp/django-modern-rest && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/django-modern-rest/dmr/.agents/skills/dmr-from-django-ninja ~/.gemini/antigravity-cli/skills/dmr-from-django-ninjaAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install dmr-from-django-ninja in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through moving the transport layer of a Django API from django-ninja and ninja-extra to django-modern-rest (DMR). It starts by inventorying Ninja entrypoints, URL wiring, handlers, schemas, auth and throttles, then records a per-endpoint migration matrix.
The migration runs one bounded slice at a time. The default mode is strict parity, so paths, methods, schemas, status codes, headers, auth and throttling stay the same unless the user approves a change. Results are reported as preserved behavior, approved drift and unresolved gaps. It also covers project-native libraries such as django-ratelimit and updating tests and pytest fixtures. It is aimed at developers maintaining Django projects that use these Ninja libraries.
Written from the project's SKILL.md and checked against it.
What it can do
- Inventory Ninja surfaceFinds NinjaExtraAPI, api_controller, http_* handlers and ninja.Schema usage to build a migration matrix.
- Translate DTOsReplaces ninja.Schema with typed DTOs and explicit Body, Query, Path, Headers and Cookies sources.
- Translate handlersMaps Ninja operations to DMR Controller classes and routers while keeping URL shapes stable.
- Port auth and throttlingKeeps endpoint auth and throttle behavior, preferring existing project libraries through DMR hooks.
- Update testsRebinds API test clients and pytest fixtures from Ninja helpers to Django and DMR testing entrypoints.
- Track driftReports preserved behavior, approved drift and unresolved gaps at each checkpoint.
What you need
- An existing Django project using django-ninja or ninja-extra
- Access to the DMR LLM docs at django-modern-rest.readthedocs.io
- Repository CI commands, run in Docker if the project's CI requires it
Try asking
- Migrate the users API from django-ninja to django-modern-rest in strict parity mode
- Inventory all NinjaExtraAPI endpoints with their auth and throttles
- Replace the ninja.Schema DTOs in the orders app with typed DMR DTOs
Good to know
- Default mode keeps strict transport parity, and any behavior change needs explicit approval as drift.
- Business logic stays unchanged unless the user asks for a change.
- Ninja dependencies are removed only after migrated API surfaces pass CI.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: dmr/.agents/skills/dmr-from-django-ninja/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
.claude-plugin/plugin.json565 B -
SKILL.md9 KB -
agents/openai.yaml262 B -
references/ninja-to-dmr-map.md1 KB
Alternatives to dmr-from-django-ninja
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
dmr-from-django-ninja: common questions
Does this change business logic?
No. By default usecases, services and repositories stay untouched, and only DTOs, controllers and router wiring change.
Can it change error responses?
Only if the user approves DMR-native errors. Otherwise existing status and payload semantics are preserved.
Does it update test fixtures?
Yes. It rebinds fixtures such as api_client and updates pytest plugin wiring so tests no longer use Ninja helpers.
How do I install dmr-from-django-ninja?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is dmr-from-django-ninja free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is dmr-from-django-ninja safe to use?
It scores 82 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 dmr-from-django-ninja?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
