Skip to main content
skill

drizzle-orm-expert — Claude Code skill: what it does, how to install

Guides schema authoring, relational queries, and migrations in Drizzle ORM. Helpful when structuring type-safe database layers in TypeScript.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill web-development/drizzle-orm-expert
Open on GitHub

What drizzle-orm-expert does

This skill assists Claude Code with setting up type-safe persistence using Drizzle ORM in TypeScript projects. It supplies patterns for table declarations via pgTable, entity associations with relations, and automatic type inference using InferSelectModel.

The guidelines cover SQL-style selects with joins, batch inserts, and nested relational reads without N+1 query pitfalls. It also details migration handling via drizzle-kit commands, transactional updates, and client connections for Neon, Turso, or PlanetScale.

Drizzle translates directly into SQL without relying on an external engine binary. Because of this architecture, your schemas require exact TypeScript type definitions upfront.

What it helps with

  • define database tables and foreign keys in TypeScript
  • execute nested relational queries without triggering N+1 issues
  • generate and run schema migrations using drizzle-kit
  • connect Drizzle to serverless drivers like Neon, LibSQL, or PlanetScale

Example prompts for the agent

  • Generate a Drizzle schema for users and posts with a one-to-many relation
  • Write a relational query fetching authors and their published posts
  • Configure drizzle.config.ts and generate a migration for PostgreSQL

How to install drizzle-orm-expert

1claude-code-templates

npx claude-code-templates@latest --skill web-development/drizzle-orm-expert

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill drizzle-orm-expert -a claude-code

3Manually: put the files in place

~/.claude/skills/drizzle-orm-expert/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/drizzle-orm-expert/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about drizzle-orm-expert

How do I install drizzle-orm-expert in Claude Code?

Run npx claude-code-templates@latest --skill web-development/drizzle-orm-expert in your terminal.

What is the purpose of drizzle-orm-expert?

It guides Claude Code in writing TypeScript schemas, relational queries, migrations, and database clients using Drizzle ORM.

Which serverless databases are covered?

The skill includes setup patterns for Neon serverless PostgreSQL, Turso LibSQL, and PlanetScale MySQL.

Similar skills

All skills for Backend and APIs →

From the same set804

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor