What problem does it solve?
This Skill helps teams prepare PostgreSQL systems for future horizontal sharding by highlighting schema, query, and transaction patterns that would otherwise cause expensive rework later.
Core Features & Use Cases
- Shard-Key Planning: Choose and propagate a stable shard key across tenant-scoped tables before scaling pressure forces a redesign.
- Schema and Query Review: Check primary keys, indexes, joins, foreign keys, and filters so common queries stay shard-local instead of scattering across shards.
- Operational Readiness: Identify when to use mapping tables, app-level enforcement, rollups, and migration patterns that fit a sharded architecture.
- Use Case: A growing SaaS app can review its users, orders, and order_items tables now to ensure the data model will still work when it needs to split across shards.
Quick Start
Ask this Skill to review your PostgreSQL schema and query patterns for sharding readiness and summarize the changes needed to keep data shard-local.