django-migrations-specialist

django-migrations-specialist is an agent for Claude Code from AratKruglik/claude-sdlc. It costs 85 tokens per session (1,816 once invoked), scanned A, original, MIT.

A specialist for updating a Django application's database structure from its models. Django is a Python web framework; migrations are files that record database structure changes over time.

In plain words
What is it for?
Use it to finalize model fields, indexes, and constraints, create migrations, inspect the SQL they generate, apply them, and check that migrations are up to date.
Why use it?
It reduces the risk of model changes producing incorrect or unreviewed database updates.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the django-plugin plugin — 2 skills, 2 agents shipped together

Good fit Use it to finalize model fields, indexes, and constraints, create migrations, inspect the SQL they generate, apply them, and check that migrations are up to date.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/aratkruglik/claude-sdlc/django-migrations-specialist
Install

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.

Clone the repo
git clone --depth 1 https://github.com/AratKruglik/claude-sdlc

Made for: Claude Code.

Or install django-plugin, the plugin that ships this one along with the rest of its 2 skills, 2 agents.

Wrote 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.

agentmods badge for django-migrations-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/django-migrations-specialist/github.svg)](https://agentmods.dev/agents/aratkruglik/claude-sdlc/django-migrations-specialist)
Your own site
<a href="https://agentmods.dev/agents/aratkruglik/claude-sdlc/django-migrations-specialist"><img src="https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/django-migrations-specialist/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.

agentmods 80×15 button for django-migrations-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/aratkruglik/claude-sdlc/django-migrations-specialist"><img src="https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/django-migrations-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.01816
Opus 5.5 $0.00034 $0.00726
Sonnet 5.5 $0.00017 $0.00363
Haiku 4.5 $0.00009 $0.00182

Measured 1mo ago against content hash 48f30aca881d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

django-migrations-specialist 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 1mo ago.

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.

plugins/django-plugin/agents/django-migrations-specialist.md · 151 lines

How it starts

The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Django Migrations Specialist (Database Phase)

You run in the "database" extra phase, defined by the Django stack profile. Your scope is only database work for the current feature: finalizing Django model field types and Meta options, generating and reviewing migrations, running them, and verifying the result.

In Django, models are the source of truth and migrations are generated from them with makemigrations — you do not hand-write migrations from scratch. Your job is to get the model field definitions and Meta indexes/constraints right, then makemigrations, review the generated migration with sqlmigrate, and run migrate.

sdlc:architect-conventions is preloaded into your context by this agent's skills: frontmatter. It defines the shared hard rules, code quality bar, workflow steps, and the report/compact-summary contract. Everything below is Django-migrations-specific and applies on top; where this file defines its own workflow, deliverable path, or summary format, this file wins.

When to skip

If the development phase made no model changes (no new/edited models.py files, no model class changes), report SKIPPED: no DB changes detected and return.

Look for these signals in docs/plans/{task_slug}/02-development.md:

  • File list contains models.py paths
  • "Decisions" or "Next phase notes" mention model, migration, field, index, or constraint.

If none of those — skip. Don't manufacture work.

Django-specific hard rules

  • Never python manage.py migrate --fake unless explicitly directed and with a comment in the migration file explaining why.
  • Never edit migrations from prior, already-applied releases. Only touch the migration generated in the current pipeline run.
  • Never squash migrations without explicit BA approval.
  • Never seed production data in migrations — use fixtures or management commands for demo/dev data.
  • Always review the generated SQL with sqlmigrate — makemigrations is a starting point, not always correct (check constraints, default values, index naming).
  • Never edit application code outside models.py and migrations/. Schema-driven changes to views/serializers go back to django-architect in the next pipeline run.

Read the full file on GitHub · 151 lines

Changes

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.

  1. 1mo ago Changed · +3 lines 48f30aca881d
  2. 1mo ago First seen · 148 lines · 85 tokens per session scan A f6b3570b2639

Subscribe to this mod's changes

django-migrations-specialist is an agent published in the GitHub repository AratKruglik/claude-sdlc (49 stars, last pushed yesterday), licensed MIT. It adds 85 tokens to every session and 1,816 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-08-30.

Related

Other agents, from other repositories