
Database Patterns
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.
- skills.sh installs
- 238
- GitHub stars
- 301
- last updated
- Aug 21, 2026
Install
$ npx -y skills add yonatangross/orchestkit --skill database-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
Database Patterns
Comprehensive patterns for database migrations, schema design, and version management. Each category has individual rule files in rules/ loaded on-demand.
Quick Reference
| 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
Details
- Repository
- github.com/yonatangross/orchestkit
- Categories
- Backend & APIs, Design & UI/UX, Databases
- First seen
- Jun 3, 2026
More from yonatangross/orchestkit
All 61- Architecture Patterns236
- Performance232
- Github Operations228
- Remember228
- Doctor227
- React Server Components Framework227
- Web Research Workflow227
- Explore224
- Errors223
- Issue Progress Tracking221
- Release Management220
- Fix Issue217
- Review Pr217
- Llm Integration216
- I18n Date Patterns215
- Task Dependency Patterns214
- Api Design211
- Assess211
- Analytics210
- Commit210
- Skill Evolution210
- Verify210
- Create Pr209
- Audit Full206