majinmagros/magros.ai-skills/database-migrations
Claude Code and agent skill by majinmagros/magros.ai-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when database migration best practices for schema changes, data migrations, rollbacks, and zero-downtime deployments across PostgreSQL, MySQL, and common ORMs (Prisma, Drizzle, Kysely, Django, TypeORM, golang-migrate). Triggers on \"database-migrations\", \"database migrations\", \"migrations\".
Install
npx vskill@latest install majinmagros/magros.ai-skills/database-migrationsSKILL.md
The same SKILL.md was published earlier as majinmagros/magros.ai-skills/database-migrations.
Database Migration Patterns
Safe, reversible schema changes: forward-only in production, schema and data migrations separate, expand-contract for renames. Detalhes em references/.
When to Activate
- Creating or altering database tables
- Adding/removing columns or indexes
- Running data migrations (backfill, transform)
- Planning zero-downtime schema changes
- Setting up migration tooling for a new project
Core Principles
- Every change is a migration — never alter production manually
- Forward-only in production — rollbacks are new forward migrations
- Schema and data separate — never mix DDL and DML
- Test at production scale — 100 rows OK can lock at 10M
- Immutable once deployed — never edit a ran migration
Safety Checklist
- [ ] UP and DOWN (or explicitly irreversible)
- [ ] No full table locks (concurrent ops on large tables)
- [ ] New columns nullable or with default
- [ ] Indexes via
CONCURRENTLY, backfill in separate migration - [ ] Tested on production-data copy, rollback plan documented
Example
References
references/postgres-patterns.md— safe ADD COLUMN, concurrent index, rename/drop, batched backfillreferences/orms-ts.md— Prisma, Drizzle, Kysely workflows + migration filesreferences/orms-py-go.md— Django data migrations, SeparateDatabaseAndState, golang-migratereferences/zero-downtime.md— expand-contract phases, timeline, anti-patterns table
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
- Repository stars
- 2
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. 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/majinmagros/magros.ai-skills/database-migrations)