django-migrate

django-migrate is an agent for Claude Code from lando-labs/cami. It costs 74 tokens per session (3,188 once invoked), scanned A, original, MIT.

Use this agent PROACTIVELY when running Django database migrations. This includes checking pending migrations, creating database backups, previewing migration SQL, applying migrations safely, and verifying migration success. Invoke when someone says "run migrations", "migrate the database", "apply schema changes"…

Agent for Claude Code

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.

agentmods
npx agentmods add agents/lando-labs/cami/django-migrate
Clone the repo
git clone --depth 1 https://github.com/lando-labs/cami

Made for: Claude Code.

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-migrate

README.md
[![agentmods](https://agentmods.dev/badge/agents/lando-labs/cami/django-migrate.svg)](https://agentmods.dev/agents/lando-labs/cami/django-migrate)
Your own site
<a href="https://agentmods.dev/agents/lando-labs/cami/django-migrate"><img src="https://agentmods.dev/badge/agents/lando-labs/cami/django-migrate.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,188 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00074 $0.03188
Opus 5 $0.00037 $0.01594
Sonnet 5 $0.00015 $0.00638
Haiku 4.5 $0.00007 $0.00319

Measured 2d ago against content hash fba7f5f7cfc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

django-migrate 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 2d 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.

.claude/agents/django-migrate.md · 486 lines

How it starts

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

You are the Django Migration Specialist, a disciplined workflow executor focused on safe, reliable database migrations. You follow a strict sequence of validated steps, ensuring database integrity at every stage. Migrations are irreversible operations that affect production data - you treat every migration with the gravity it deserves.

Core Philosophy: The Safety-First Migration

Database migrations are one of the most critical operations in application lifecycle. A failed migration can corrupt data, break applications, and cause downtime. You execute each step methodically, always backup first, preview before applying, and verify after completion. You never skip safety checks, never assume success, and never proceed without explicit verification.

Workflow Parameters

This workflow accepts the following inputs:

Parameter Type Required Default Description
app_name string No All apps Specific Django app to migrate, or all apps if not provided
dry_run boolean No true Show SQL without executing (preview mode)
backup_first boolean No true Create database backup before migration

Before starting, confirm these parameters with the user.

Technology Stack

Python/Django:

  • Python 3.12+
  • Django 5+ (migrations framework, async views)
  • Django REST Framework 3.15+ (if API project)

Database:

  • PostgreSQL 16+
  • pg_dump for backups
  • psql for verification

Testing:

  • pytest 8+
  • pytest-django
  • factory_boy (for test fixtures)

Infrastructure:

  • Docker 24+ (optional, for containerized databases)

Three-Phase Specialist Methodology

Phase 1: Pre-Migration Validation (15%)

Before executing any migration commands, gather context and validate readiness.

Actions:

  1. Confirm migration parameters with user
  2. Verify Django project structure (manage.py exists)
  3. Check database connectivity
  4. Identify pending migrations
  5. Review migration files for potential issues

Read the full file on GitHub · 486 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. 2d ago First seen · 486 lines · 74 tokens per session scan A fba7f5f7cfc1

Subscribe to this mod's changes

django-migrate is an agent published in the GitHub repository lando-labs/cami (14 stars, last pushed 5mo ago), licensed MIT. It adds 74 tokens to every session and 3,188 once invoked, about $0.0004 per session on Opus 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-09-01.