django-modern-rest is a typed REST framework for Django, the Python web framework, for building APIs that exchange data with clients over HTTP. It is for Django developers who need asynchronous support, schema validation, multiple data formats, and generated OpenAPI descriptions. The catalogue add-ons provide plugins and skills for developing with the framework.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add wemake-services/django-modern-rest --skill dmrgit clone --depth 1 https://github.com/wemake-services/django-modern-restWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/wemake-services/django-modern-rest/dmr)<a href="https://agentmods.dev/skills/wemake-services/django-modern-rest/dmr"><img src="https://agentmods.dev/badge/skills/wemake-services/django-modern-rest/dmr/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/wemake-services/django-modern-rest/dmr"><img src="https://agentmods.dev/badge/skills/wemake-services/django-modern-rest/dmr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00080 | $0.01920 |
| Opus 5.5 | $0.00032 | $0.00768 |
| Sonnet 5.5 | $0.00016 | $0.00384 |
| Haiku 4.5 | $0.00008 | $0.00192 |
Grade A, and why
dmr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.
django-modern-rest (dmr)
django-modern-rest is a typed, sync-and-async REST layer for Django:
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.
When to use
- Any file that imports from
dmr, or a project withdjango-modern-restin its dependencies. - Requests for a "typed", "modern", or "async" Django REST API.
- Reviews of existing
dmrcode: use the checklist at the end.
For migrations from other frameworks use dmr-from-drf,
dmr-from-django-ninja, or dmr-from-dj-rest-auth.
For version bumps use dmr-upgrade.
For scaffolding from an OpenAPI document use dmr-openapi-skeleton.
Workflow
- Check the installed version and extras:
uv pip show django-modern-rest(or the lock file). The API changes between minor releases, so read the docs for the installed version, not the latest one. - Load the docs you need, they are versioned and LLM friendly:
- index:
https://django-modern-rest.readthedocs.io/en/<version>/llms.txt - one page as Markdown: replace
.htmlwith.mdin any docs URL, for examplehttps://django-modern-rest.readthedocs.io/en/latest/pages/routing.md - everything at once:
https://django-modern-rest.readthedocs.io/en/<version>/llms.txt
- index:
- Read the reference for the area you are changing (see the table below), it holds the full rules with correct and wrong examples.
- Verify: run
python manage.py check, the project's type checker, and tests written with thedmr_client/dmr_rffixtures. For OpenAPI changes, runpython manage.py dmr_export_schema <path>and review the diff.
Non-negotiable rules
Install django-modern-rest[msgspec] even for pydantic projects,
it makes JSON parsing fastest. Add django-stubs[compatible-mypy]
to dev dependencies, dmr relies on Django types.
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 175 lines · 80 tokens per session scan A 0f4ff2dd2636
dmr is a skill published in the GitHub repository wemake-services/django-modern-rest (1,519 stars, last pushed yesterday), licensed MIT. It adds 80 tokens to every session and 1,920 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.
Other skills, from other repositories
api-testing-patterns
Comprehensive API testing patterns including contract testing, REST/GraphQL testing, and integration testing. Use when testing APIs or designing API test strategies.
add-console-command
Add or change a Symfony console command using this repository's command, dependency-injection, input/output, and testing conventions.
add-event-listener
Create or update Symfony event listeners or Doctrine lifecycle listeners, including service registration, event ordering, and tests following this repository's conventions.
add-event-subscriber
Create or update Symfony event subscribers, including event maps, priorities, service autoconfiguration, and behavior tests following this repository's conventions.
api-testing
REST/GraphQL API testing with automated validation — test endpoints, validate responses, check status codes, and ensure API contracts.
api-tester
An API testing tool focused on finding IPC handlers, generating tests, checking service health, and running regression tests. IPC, or inter-process communication, lets separate parts of an application exchange messages.