What problem does it solve?
This skill eliminates the risk of production outages, data loss, and performance bottlenecks caused by inconsistent database schema naming, unsafe migration patterns, unoptimized queries, and poorly chosen deletion strategies.
Core Features & Use Cases
- Schema & Naming Standards: Enforce consistent snake_case naming for tables, columns, and foreign keys to improve team readability and long-term maintainability.
- Safe Migration Guidance: Provide additive, backward-compatible migration workflows to avoid downtime and data loss during schema changes.
- Query & Index Optimization: Identify N+1 query issues, recommend targeted indexes aligned with real access patterns, and define clear transaction boundaries to boost query performance.
- Deletion Strategy Support: Help teams choose between soft and hard delete based on audit requirements, compliance rules, and data retention needs.
- Use Case Example: If you need to add an org_id column to the invoices table, this skill will guide you to add the column first, backfill existing rows, and dual-write during the rollout to avoid breaking existing functionality.
Quick Start
Ask the database skill to review your planned user table migration for safety, naming consistency, and performance best practices.