From claude-connoisseur
Reviews database schemas from SQL, Prisma, migrations, and models files, suggesting improvements for indexing, data types, constraints, normalization, naming, referential integrity, and performance.
npx claudepluginhub eugeniosegala/claude-connoisseur --plugin claude-connoisseurThis skill is limited to using the following tools:
Analyse the specified database schema files and provide actionable improvement suggestions.
Detects ORM and database engine, advises on schema design, migrations, ORM patterns, and safety. Analyzes schema health, produces safe migrations, validates backward compatibility for Prisma, Drizzle, etc.
Evaluates database migration safety, schema design integrity, query correctness, and connection management, inferring engine-specific rules for Postgres, MySQL, SQLite.
Designs PostgreSQL/MySQL schemas with normalization (1NF-3NF), relationships, constraints, audit columns. For new databases, reviews, migrations, or fixing missing PKs/FKs, wrong types, denormalization, EAV.
Share bugs, ideas, or general feedback.
Analyse the specified database schema files and provide actionable improvement suggestions.
Files and instructions: $ARGUMENTS
VARCHAR(255) where VARCHAR(50) suffices, BIGINT where INT is enough), incorrect types (e.g. strings for dates, floats for currency), and missing precision on decimals.NOT NULL where nullability is unlikely intentional, missing UNIQUE constraints, missing CHECK constraints for bounded values, and missing DEFAULT values.created_at/updated_at audit columns, soft-delete patterns without indexes on the deleted flag, missing composite primary keys on junction tables.The arguments are free-form and flexible. They may contain:
@schema.sql, migrations/001.sql, models.py, schema.prisma, schema.rb db/structure.sqlParse the arguments to identify which files to review and what additional instructions apply. When additional instructions reference related files (e.g. migrations, ORM models), follow those instructions to identify and include those files as well.
/db-review @schema.sql — review a single schema file/db-review schema.prisma, migrations/001.sql — review multiple files/db-review @models.py this is a write-heavy OLTP workload on PostgreSQL — review with workload context/db-review @schema.sql focus on indexing and performance only — targeted review