generate-migration

Generates Django database migrations from model changes using the makemigrations workflow.

Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Harigithub11/sentry --skill generate-migration-harigithub11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-migration
Source: https://github.com/Harigithub11/sentry/tree/main/.agents/skills/generate-migration
Command: npx skills add https://github.com/Harigithub11/sentry --skill generate-migration-harigithub11

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Django migrations are error-prone and time-consuming when evolving models; this skill automates the generation and management of migrations to keep schema in sync with code.

Core Features & Use Cases

  • Generate migrations automatically from model changes using Django's makemigrations workflow.
  • Create empty migrations for data migrations or custom operations.
  • Guidance for resolving migration conflicts and safely removing or renaming fields and models.

Quick Start

Run the migration generator for your Django app to scaffold migrations based on model changes.

Frequently Asked Questions about generate-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Django migrations automatically from model changes?

To generate Django migrations automatically, the Skill uses Django's makemigrations workflow to scaffold migration files directly from your model changes. It detects schema modifications like new columns or indexes and creates the corresponding migration files to keep your database schema synchronized with your code.

What is the best way to resolve migration conflicts across multiple Django apps?

The best way to resolve migration conflicts across Django apps is by utilizing merge conflict resolution guidance with migration lockfiles. The Skill applies safe resolution patterns to reconcile divergent migration histories, ensuring schema consistency without risking database corruption during collaborative development.

How do I create an empty Django migration for custom data operations?

You can create an empty Django migration for custom data operations by generating an empty migration file. The Skill supports scaffolding these blank data migrations, allowing you to manually insert custom data transformations or schema operations that standard model changes do not capture.

Does this Skill follow safe patterns for renaming or removing Django model fields?

Yes, the Skill follows safe removal and renaming patterns for Django model fields. It ensures migration safety by guiding you through secure schema evolution processes, preventing data loss, and avoiding operational downtime when removing or renaming database columns and models.

When do I need to use Django migration lockfiles?

You need to use Django migration lockfiles when resolving migration conflicts across multiple apps. They help coordinate schema evolution in collaborative environments, ensuring that merge conflicts are handled safely and preventing concurrent migrations from breaking database integrity.