dmr
Skill by wemake-services
Guides an AI assistant to write, review and test django-modern-rest (dmr) code. It is for developers building typed Django REST APIs.
Install dmr
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 ~/.claude/skills/dmrRun 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 ~/.gemini/antigravity-cli/skills/dmrAntigravity 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 agent skill gives an AI assistant the recommended patterns for django-modern-rest (dmr), a typed, sync and async REST layer for Django. It covers Controller classes with one method per HTTP verb, DTOs parsed from Body, Query, Headers, Cookies and Path annotations, Router based URLs, built-in auth and throttling, and OpenAPI generated from the types.
The skill tells the assistant to check the installed version and read the matching docs first. It then follows rules on error handling, response validation, CSRF, and testing with the dmr_client and dmr_rf fixtures. It also includes a checklist for reviewing dmr code. It is aimed at developers who use django-modern-rest in a project or ask for a typed Django REST API.
Written from the project's SKILL.md and checked against it.
What it can do
- ControllersWrites controllers with one method per HTTP verb and typed component parameters.
- Typed DTOsSets up DTOs parsed from Body, Query, Headers, Cookies and Path with msgspec or pydantic.
- RoutingBuilds Router based URLs with dmr.routing.path and JSON 404 and 500 handlers.
- Auth and throttlingAdds ready-to-use auth concrete_views, throttling and CSRF checks.
- Error handlingRaises APIError and handles errors in error handlers instead of endpoint bodies.
- OpenAPICovers OpenAPI generated from the types and docstrings, and schema export.
- TestsWrites tests with dmr_client and dmr_rf fixtures, polyfactory and schemathesis.
- Code reviewChecks dmr code against a list of common mistakes.
- Version checkReads the docs for the installed django-modern-rest version before coding.
What you need
- Python
- Django project with django-modern-rest installed
- django-modern-rest[msgspec] dependency
- django-stubs[compatible-mypy] in dev dependencies
Try asking
- Write a typed django-modern-rest controller for user CRUD
- Review my dmr views for common mistakes
- Add JWT login endpoints using dmr concrete views
Good to know
- The dmr API changes between minor releases, so the docs for the installed version matter.
- The skill points to external docs pages for full rules and examples.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: dmr/.agents/skills/dmr/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
.claude-plugin/plugin.json651 B -
SKILL.md8 KB -
agents/openai.yaml302 B -
references/controllers.md13 KB -
references/errors.md7 KB
Show all 10 files
-
references/openapi.md1 KB -
references/routing.md4 KB -
references/security.md17 KB -
references/testing.md6 KB -
references/validation.md5 KB
Alternatives to dmr
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: common questions
Which serializer does dmr recommend?
The skill says to prefer MsgspecSerializer. With pydantic and JSON only, it prefers PydanticFastSerializer over PydanticSerializer.
Does the skill cover OpenAPI?
Yes. It covers OpenAPI generated from the types, docstrings as descriptions, and running the dmr_export_schema command to review schema changes.
Can it help move from another framework?
The skill refers to separate skills for migrating from DRF, django-ninja and dj-rest-auth.
How do I install dmr?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is dmr free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is dmr 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?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
