Upgrading with an agent#
By example, you can use agent skill
dmr-upgrade
to upgrade a project to a newer django-modern-rest release.
Every release with breaking changes ships an official migration prompt.
The prompts of the three latest breaking releases live in the skill,
one file per release in its references/ directory.
Older ones are in the changelog
and in the release notes.
Important
Read the agent’s report and the diff before running your app. Everything that changes behavior needs a human decision.
How to use in Codex#
Note the version you are on, then bump
django-modern-restin your dependencies and install it.Ask Codex to use the skill
$dmr-upgrade, naming both the old and the new version.Review the report: releases applied, changes made, and unresolved items.
You can use a prompt like this:
$dmr-upgrade Upgrade this project from django-modern-rest 0.14.0
to 0.16.0. Apply every migration prompt
in order, run mypy and the test suite after each release,
and list every change you could not resolve.
How to use in Claude Code#
Add the marketplace and install the plugin:
/plugin marketplace add wemake-services/django-modern-rest
/plugin install dmr-upgrade@django-modern-rest
Verify the plugin is installed and enabled:
/plugin
Invoke the skill:
/dmr-upgrade
Then name the target version and any constraints in a normal prompt.
See Agent skills for other agents.
What is migrated#
Renamed and moved classes, functions, and modules, including imports
Renamed keyword arguments, like
FileResponseSpec(file_body=...)Everything else that a release changed, described step by step in the migration prompt of that release
Business logic, response contracts, and settings are not changed unless a migration prompt requires it.