New advertisers: 50% off your first month with code FIRSTMONTHSee slots
ccheney avatar

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
View on GitHub

What it does

  • Covers schema design, queries, relations, migrations, PostgreSQL features, and performance, each mapped to its own reference file
  • Requires checking installed drizzle-orm and drizzle-kit versions, since the 0.x relations() and v1 defineRelations() 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 -y

Installs 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 5

Similar to Postgres Drizzle

More Databases