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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-connoisseur:db-reviewThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyse the specified database schema files and provide actionable improvement suggestions.
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 reviewnpx claudepluginhub eugeniosegala/claude-connoisseur --plugin claude-connoisseurReviews database migration safety, schema design, query correctness, and data integrity with engine-specific knowledge (Postgres, MySQL, SQLite).
Guides schema design, migration safety, and ORM analysis. Detects database engine and ORM, evaluates normalization and indexing, and validates backward compatibility.
Provides schema design principles, index strategy, migration safety, and query analysis for database optimization. Useful when designing tables, writing migrations, or diagnosing slow queries.