
This is your reference when you're writing Alembic migrations or designing schemas and don't want to break production. It covers the stuff that bites you: two-phase NOT NULL additions, concurrent index creation, proper downgrade implementations, and when to denormalize. The zero-downtime migration patterns using expand-contract are solid, and the anti-patterns section actually calls out real footguns like running autogenerate in production or modifying deployed migrations. Defaults to PostgreSQL with asyncpg, includes NoSQL patterns when you need them. The 12 rules split across migration mechanics, schema design, and versioning are all lazy-loaded, so it stays out of your way until you hit a migration file or schema pattern.
$ npx -y skills add yonatangross/orchestkit --skill database-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Comprehensive patterns for database migrations, schema design, and version management. Each category has individual rule files in rules/ loaded on-demand.
| Category | Rules | Impact | When to Use |
|---|---|---|---|
| Alembic Migrations | 2 | CRITICAL | Data migrations, branch management |
| Schema Design | 3 | HIGH | Normalization, indexing strategies, NoSQL patterns |
| Versioning | 2 | HIGH | Changelogs, schema drift detection |
| Zero-Downtime Migration | 2 | CRITICAL | Expand-contract, pgroll, rollback monitoring |
| Database Selection | 1 | HIGH | Choosing the right database, PostgreSQL vs MongoDB, cost analysis |
Total: 10 rules across 5 categories
Sponsors