romankovsv/claude-code-python-devops-mlops/database-migrations
Claude Code and agent skill by romankovsv/claude-code-python-devops-mlops
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Database migration best practices for schema changes, data migrations, rollbacks, and zero-downtime deployments. Covers Alembic, Django, and raw SQL.
Install
npx vskill@latest install romankovsv/claude-code-python-devops-mlops/database-migrationsSKILL.md
The same SKILL.md was published earlier as izangi2714/claude-code-python-stack/database-migrations.
Database Migration Patterns
Safe, reversible database schema changes for production systems.
When to Activate
- Creating or altering database tables
- Adding/removing columns or indexes
- Running data migrations (backfill, transform)
- Planning zero-downtime schema changes
Core Principles
- Every change is a migration -- never alter production databases manually
- Migrations are forward-only in production -- rollbacks use new forward migrations
- Schema and data migrations are separate -- never mix DDL and DML
- Test against production-sized data -- a migration that works on 100 rows may lock on 10M
- Migrations are immutable once deployed -- never edit a deployed migration
Migration Safety Checklist
- [ ] Migration has both UP and DOWN (or is marked irreversible)
- [ ] No full table locks on large tables (use concurrent operations)
- [ ] New columns have defaults or are nullable
- [ ] Indexes created concurrently
- [ ] Data backfill is separate from schema change
- [ ] Tested against production-sized data
- [ ] Rollback plan documented
PostgreSQL Safe Patterns
Django Migrations
Data Migration (Django)
Alembic (SQLAlchemy)
Zero-Downtime Strategy (Expand-Contract)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/database-migrations/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/romankovsv/claude-code-python-devops-mlops/database-migrations)