What problem does it solve? Spring Boot / JPA applications often drift away from the actual database schema, causing slow queries, missing indexes on foreign keys, orphan records, and silent data integrity issues. This Skill connects to the live PostgreSQL database via MCP and audits the real schema instead of guessing from code. ## Core Features & Use Cases - Schema Health Checks: Detects tables without primary keys, mixed boolean/numeric(1,0) types, and json columns that should be jsonb. - Index & Performance Analysis: Finds missing FK indexes, unused or duplicate indexes, over-indexed tables, table bloat, and sequential-scan hotspots. - Entity-DB Drift Detection: Compares JPA entity annotations against actual columns, constraints, and indexes to surface mismatches before they cause production failures. - Use Case: Before merging a PR that touches JPA entities or Flyway migrations, run a pre-migration safety check to verify lock-safe DDL patterns, dependent foreign keys, and entity alignment. ## Quick Start Ask the AI to run a full database health check on the ONLINE schema and report missing indexes and entity drift.