Agent skill

Django Safe Migration

by vintasoftware in vintasoftware/django-ai-plugins

Write, review, and rewrite Django migrations for PostgreSQL with zero-downtime guarantees.

No licenceAuto-check passedBackend & APIs

Install Django Safe Migration

skills CLI
$ npx skills add vintasoftware/django-ai-plugins --skill django-safe-migration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install vintasoftware/django-ai-plugins django-safe-migration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/vintasoftware/django-ai-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/django-safe-migration .claude/skills/django-safe-migration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
django-safe-migration
GitHub stars
151
Token cost
~4.4k tokens
SKILL.md length
2,164 words
Files
4 (incl. references)
Skills in repo
5
Repo updated
First seen
Licence
None found

At a glance

Write, review, and rewrite Django migrations for PostgreSQL with zero-downtime guarantees.

  • Works in 2 steps: ADD CONSTRAINT … NOT VALID — creates the… → VALIDATE CONSTRAINT — scans existing…
  • The user mentions migrations
  • SKILL.md covers Project Configuration, When to Use, Why Zero-Downtime Migrations… and How PostgreSQL Locking Works, plus 9 more sections
  • Calls python, make and docker; reaches github.com

What it does

Django Safe Migration is an agent skill from vintasoftware/django-ai-plugins. Write, review, and rewrite Django migrations for PostgreSQL with zero-downtime guarantees. Use this skill whenever the user mentions migrations, Django schema changes, or deployment safety — even if they don't say "zero downtime" explicitly. Trigger on: "review this migration", "is this migration safe?", "write a migration for...", "rewrite this migration", "how do I add a NOT NULL column / drop a column / add an index / rename a column / add a FK without downtime", "will this migration cause locks?", "this…

Its SKILL.md is about 4.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/examples.md`, `references/operation-guide.md` and `references/postgres-locks.md`).

It sits in Backend & APIs, covering Backend development. It works with Django and PostgreSQL. The repository describes itself as: A collection of AI Skills specialized in Django Backend development.

When your agent uses it

  • The user mentions migrations
  • Django schema changes
  • Deployment safety — even if they dont say zero downtime explicitly
  • : review this migration

Example prompts

  • “t say”
  • “explicitly. Trigger on:”
  • “is this migration safe?”
  • “/django-safe-migration”

Requirements

  • Python 3
  • Docker

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. ADD CONSTRAINT … NOT VALID — creates the constraint and enforces it on new writes immediately, but skips scanning existing rows. Takes a…
  2. VALIDATE CONSTRAINT — scans existing rows to confirm they satisfy the constraint. Takes SHARE UPDATE EXCLUSIVE (plus ROW SHARE on the…

What it can do on your machine

Read from SKILL.md and the folder at commit b8af268. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • make
    • docker

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    Also links to:

    • postgresql.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Django Safe Migration loads about 4.4k tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 185 tokens; SKILL.md has 2,164 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~185
When it runs · the whole SKILL.md, loaded when a task matches
~4.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~15k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 2,164 words (~4,356 tokens).

“Read the active host's project instruction file (for example, AGENTS.md or CLAUDE.md) for the values below. If they are not set, use the defaults shown.”

— opening of SKILL.md by vintasoftware
name
django-safe-migration

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (references) in skills/django-safe-migration of vintasoftware/django-ai-plugins.

  • SKILL.md
  • references/examples.md
  • references/operation-guide.md
  • references/postgres-locks.md

Open the folder on GitHubat commit b8af268

Compare with similar skills

Django Safe Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Django Safe Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Django Safe Migration this skillvintasoftware/django-ai-plugins151—~4.4kAutomated safety check: PassNone
Silk Profilerbaserow/baserow6.1k—~2.9kAutomated safety check: PassCustom licence
Django MigrationsPostHog/posthog40k—~5kAutomated safety check: PassCustom licence
Djangoericrisco/rsc-harness167—~3.1kAutomated safety check: PassMIT
Django Index Designhashgraph-online/awesome-codex-plugins1.2k—~643Automated safety check: PassMIT
Django Materialized Viewshashgraph-online/awesome-codex-plugins1.2k—~611Automated safety check: PassMIT

Similar skills

  • Silk Profiler

    baserow/baserow

    Investigate backend performance using Django Silk profiling data.

    6.1k GitHub stars~2.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Django Migrations

    PostHog/posthog

    Official

    Django migration patterns and safety workflow for PostHog. An agent skill from PostHog/posthog.

    40k GitHub stars~5k tokensUpdated today
    Backend & APIsAuto-check passed
  • Django

    ericrisco/rsc-harness

    A skill your agent uses when building, reviewing, securing, testing or shipping a Django app — models, migrations, QuerySets/managers, FBV/CBV views, forms, the admin, settings split, and Django…

    167 GitHub stars~3.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Django Index Design

    hashgraph-online/awesome-codex-plugins

    Design safe Django and PostgreSQL indexes from measured query plans, including B-tree, composite, covering, partial, expression, GIN/JSONB, BRIN, and concurrent migration patterns.

    1.2k GitHub stars~643 tokensUpdated today
    Backend & APIsAuto-check passed
  • Django Materialized Views

    hashgraph-online/awesome-codex-plugins

    Model, migrate, refresh, and verify PostgreSQL materialized views in Django for expensive report or dashboard queries that can tolerate stale data.

    1.2k GitHub stars~611 tokensUpdated today
    Backend & APIsAuto-check passed
  • Dsql

    awslabs/agent-plugins

    Official

    Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed…

    915 GitHub stars~6.9k tokensUpdated 2 days ago
    DatabasesAuto-check passed

More from vintasoftware/django-ai-plugins

  • Django Celery Expert

    vintasoftware/django-ai-plugins

    Expert Django Celery guidance for asynchronous task processing.

    151 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Cdrf Expert

    vintasoftware/django-ai-plugins

    Expert guidance for Django REST Framework class-based views using Classy DRF (https://www.cdrf.co).

    151 GitHub stars~859 tokensUpdated 2 mo ago
    Auto-check passed
  • Django Expert

    vintasoftware/django-ai-plugins

    Expert Django backend development guidance. An agent skill from vintasoftware/django-ai-plugins.

    151 GitHub stars~2.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Django Reviewer

    vintasoftware/django-ai-plugins

    Review Django and Python changes for clarity, consistency, maintainability, ORM or DRF anti-patterns, and project conventions while preserving behavior.

    151 GitHub stars~1.6k tokensUpdated 2 mo ago
    Auto-check passed

Categories

Questions about Django Safe Migration

What does Django Safe Migration do?

Write, review, and rewrite Django migrations for PostgreSQL with zero-downtime guarantees. Django Safe Migration is an agent skill from vintasoftware/django-ai-plugins. Write, review, and rewrite Django migrations for PostgreSQL with zero-downtime guarantees.

When should I use Django Safe Migration?

Django Safe Migration fits situations like: the user mentions migrations; django schema changes; deployment safety — even if they dont say zero downtime explicitly; : review this migration.

How do I install Django Safe Migration in Claude Code?

Run `npx skills add vintasoftware/django-ai-plugins --skill django-safe-migration -a claude-code`. Or copy the skill folder (skills/django-safe-migration in vintasoftware/django-ai-plugins) into .claude/skills/django-safe-migration in your project. Claude Code loads it when a task matches its description.

How do I install Django Safe Migration in Codex?

Run `npx skills add vintasoftware/django-ai-plugins --skill django-safe-migration -a codex`. Or copy the skill folder (skills/django-safe-migration in vintasoftware/django-ai-plugins) into .agents/skills/django-safe-migration in your project. Codex loads it when a task matches its description.

Can I use Django Safe Migration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vintasoftware/django-ai-plugins --skill django-safe-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/django-safe-migration, .gemini/skills/django-safe-migration, .github/skills/django-safe-migration and .opencode/skills/django-safe-migration in your project.

What does Django Safe Migration need to run?

Going by SKILL.md and its folder, Django Safe Migration needs the command-line tools its instructions call (python, make and docker). Our summary lists: Python 3; Docker.

Does Django Safe Migration access the network?

SKILL.md names 2 domains. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. As links in the text: postgresql.org. This is read from the text; nothing was executed.

Is Django Safe Migration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Django Safe Migration use?

No licence was found for Django Safe Migration or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Django Safe Migration use?

About 4.4k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to Django Safe Migration?

Skills that share tags, products or a category with Django Safe Migration: Silk Profiler (baserow/baserow, 6.1k stars), Django Migrations (PostHog/posthog, 40k stars), Django (ericrisco/rsc-harness, 167 stars) and Django Index Design (hashgraph-online/awesome-codex-plugins, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Django Safe Migration?

vintasoftware (a GitHub organization) maintains it in vintasoftware/django-ai-plugins, which has 151 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on July 23, 2026.

Source: vintasoftware/django-ai-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.