
postgres-drizzle
Write or review PostgreSQL schemas, queries, migrations, and Drizzle ORM code
by ccheneyFree
Description
A skill for AI coding agents that writes or reviews PostgreSQL schemas, queries, migrations and Drizzle ORM code. It is used for relations, indexing, connection pooling and query performance. The guidance tells the agent to match its work to the project's installed Drizzle and PostgreSQL versions, because the 0.x relations API and the v1 defineRelations API differ and should not be mixed. It covers keeping database foreign keys separate from ORM relation metadata, using the transaction handle for every statement in a transaction, indexing referencing columns, and generating and reviewing migration SQL without rewriting applied history. It also says to treat EXPLAIN ANALYZE as real execution, including writes, and to use a suitable test target for it.…
Highlights
- Writes and reviews PostgreSQL schemas, queries and migrations
- Matches Drizzle ORM code to the installed API version
- Covers indexing, connection pooling and query performance
- Keeps applied migration history intact when schemas change
- Warns that EXPLAIN ANALYZE executes the query
Ratings & Reviews
No ratings yet
Be the first to rate postgres-drizzle.
People also visit

postgresql-code-review
PostgreSQL code review assistant covering JSONB, arrays, custom types

database-optimizer
Optimizes database queries and improves performance across PostgreSQL

postgres-patterns
PostgreSQL database patterns for query optimization, schema design, indexing
postgres-drizzle FAQ
Which PostgreSQL versions does it cover?
The references cover PostgreSQL 17 and 18. For version-specific features the agent is told to establish the version first.
Does it handle both Drizzle APIs?
Yes. It separates Drizzle's 0.x relations() API from the v1 defineRelations() API and asks for the installed version when it is unknown.
Does it run migrations on my database?
Not by default. Writing or reviewing SQL does not require running it, and execution needs the target and action to be authorized.
How do I install it?
Run npx skills add https://github.com/ccheney/robust-skills --skill postgres-drizzle in your project.
What do the security audits show?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best postgres-drizzle alternatives?
Popular alternatives to postgres-drizzle include postgresql-code-review, database-optimizer and drizzle-orm-patterns. See all postgres-drizzle alternatives












