yonatangross avatar

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

Installs 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

CategoryRulesImpactWhen to Use
Alembic Migrations2CRITICALData migrations, branch management
Schema Design3HIGHNormalization, indexing strategies, NoSQL patterns
Versioning2HIGHChangelogs, schema drift detection
Zero-Downtime Migration2CRITICALExpand-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
1yonatangross avatarreact-server-components-frameworkyonatangross/orchestkitUse when building Next.js 16+ apps with React Server Components. Covers App Router, Cache Components (replacing experimental_ppr), streaming SSR, Server Actions227skills.sh installs
2davila7 avatarhmdb-databasedavila7/claude-code-templatesAccess Human Metabolome Database (220K+ metabolites). Search by name/ID/structure, retrieve chemical properties, biomarker data, NMR/MS spectra, pathways, for m222skills.sh installs
3PicsArt avatarpicsart-apiPicsArt/gen-ai-skillsGenerate and edit media via Picsart MCP API tools.222skills.sh installs
4sickn33 avatarsupabase-postgres-best-practicessickn33/antigravity-awesome-skillssupabase postgres best practices217skills.sh installs
5firebase avatarfirebase-crashlyticsfirebase/skillsfirebase crashlytics216skills.sh installs
62025emma avatarpostgresql2025emma/vibe-coding-cnpostgresql215skills.sh installs