⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
django-migrations
Writes and reviews Django migrations that are safe to deploy while the old code is still running, including data migrations with RunPython and historical models, batched backfills, adding non-null and unique fields to existing rows, concurrent indexes on PostgreSQL, and removing fields in two steps. Use when creating or editing a migration, backfilling data, changing a column on a large table, or reviewing migrations in a pull request.
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
Django skills
Three skills for Django work: models with real database constraints, migrations (including data migrations) that are safe to deploy, and pytest-django tests. Each one is a plain SKILL.md file. Your coding agent reads it when the task matches.
Install
From the root of your Django project:
git clone https://github.com/autohandai/skillpack-django
mkdir -p .claude/skills
cp -R skillpack-django/skills/* .claude/skills/
Copy the skill folders themselves, so you get .claude/skills/django-migrations/SKILL.md and not a nested pack folder. Some agents only look one level deep. For every project on your machine, copy them into ~/.claude/skills/ instead.
Most agents pick a skill up when your request matches its description. To call one by name, mention it: $django-migrations in Autohand Code, or /django-migrations in Claude Code.
Skills
| Skill | What it does |
|---|---|
django-models | Field options, TextChoices, CheckConstraint and UniqueConstraint, indexes, on_delete, and N+1 avoidance |
django-migrations | Batched RunPython backfills, unique fields on existing rows, AddIndexConcurrently, two-step field removal |
django-pytest | pytest-django setup, database markers, fixtures, query count assertions, on_commit. Migration tests are in references/ |
Adapting it
- Not on PostgreSQL? Delete the concurrent index and
AddConstraintNotValidrows indjango-migrations. - Set your real settings module path in
django-pytest. - If you use DRF, add an API client example (
rest_framework.test.APIClient) todjango-pytest.
Keep the name in the frontmatter the same as the folder name.
Written against Django 6.1 (with notes for 5.2 LTS) and pytest-django 4.14 as of October 2026. If something's out of date, please open an issue.
Runs in Autohand Code (free CLI, any model): https://autohand.ai/cli/?utm_source=skillpack-django&utm_medium=github
Until 31 October 2026: first month of Pro for $10 with code FOUNDING10 (first-time customers).
MIT licensed. See LICENSE.
// HOW IT'S BUILT
KEY FILES