
Postgres Drizzle
Structured guidance for PostgreSQL schemas, queries, migrations, and Drizzle ORM work, scoped to the installed API version.
- skills.sh installs
- 1.6K
- GitHub stars
- 61
- last updated
- Aug 21, 2026
What it does
- Covers schema design, queries, relations, migrations, PostgreSQL features, and performance, each mapped to its own reference file
- Requires checking installed
drizzle-ormanddrizzle-kitversions, since the 0.xrelations()and v1defineRelations()APIs must not be mixed - Enforces separating database foreign keys from ORM relation metadata, and running every statement in a transaction through its transaction handle
- Designed for Drizzle and PostgreSQL projects where schema, query, or migration work needs version-correct code and safe rollout
Install
$ npx -y skills add ccheney/robust-skills --skill postgres-drizzle -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
PostgreSQL and Drizzle ORM
Match database work to the project's installed API and deployment context. The user's explicit instructions take precedence over this skill's guidelines.
Establish the database contract
Use the relevant schema/query, migration history, and requested behavior as input. For Drizzle code, inspect installed drizzle-orm/drizzle-kit versions and the driver; for SQL, establish the PostgreSQL version when a version-specific feature matters.
The references cover PostgreSQL 17/18 and distinguish Drizzle's 0.x relations() API from the v1 defineRelations() API. Do not mix them or infer the installed API from an npm dist-tag. When the version is unknown, use imports/lockfiles or ask for the missing version before giving version-dependent code.
Keep changes consistent
Details
- Repository
- github.com/ccheney/robust-skills
- Categories
- Databases, Backend & APIs
- First seen
- Apr 16, 2026
More from ccheney/robust-skills
All 5Similar to Postgres Drizzle
More Databases
drizzle-best-practiceshonra-io/drizzle-best-practices720 installsDrizzle ORM guidance for PostgreSQL that selects the correct v1 or legacy 0.45.x API before writing code.
drizzlelobehub/lobehub5.5K installsSchema and query style guide for Drizzle ORM on PostgreSQL, covering table naming, keys, and column conventions.
drizzle-ormmindrally/skills1.1K installsLightweight type-safe TypeScript ORM guidelines covering schemas, connections, queries, migrations, and performance.
drizzle-orm-patternsgiuseppe-trisciuoglio/developer-kit5.9K installsComprehensive Drizzle ORM guide for type-safe schemas, queries, relations, transactions, and migrations across five databases.
postgres-best-practicesneondatabase/postgres-skills2.1K installsComprehensive Postgres guidance covering schema design, indexing, query tuning, and replication for PostgreSQL 14 through 18.
neon-drizzleneondatabase/ai-rules1K installsGuided Drizzle ORM setup that provisions a Neon database and runs migrations so code connects immediately.