db-drizzle

Generate Drizzle ORM schemas, queries, and migrations for TypeScript projects.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sitharaj88/claude-skills --skill db-drizzle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-drizzle
Source: https://github.com/sitharaj88/claude-skills/tree/main/skills/db-drizzle
Command: npx skills add https://github.com/sitharaj88/claude-skills --skill db-drizzle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of working with Drizzle ORM, enabling users to efficiently generate database schemas, queries, and migrations for TypeScript projects.

Core Features & Use Cases

  • Schema Generation: Create production-ready TypeScript schemas for various databases (PostgreSQL, MySQL, SQLite).
  • Query Building: Generate type-safe queries for data manipulation and retrieval.
  • Migrations: Automate the creation and application of database migrations using Drizzle Kit.
  • Use Case: When setting up a new backend service, use this Skill to define your user and post tables, establish relationships, and generate the initial migration files.

Quick Start

Use the db-drizzle skill to generate a PostgreSQL schema for a 'products' table with 'name' and 'price' columns.

Frequently Asked Questions about db-drizzle

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Drizzle ORM schema for a TypeScript project?

To generate Drizzle ORM schemas, define TypeScript table structures with typed columns and relations. This Skill creates production-ready schemas for PostgreSQL, MySQL, and SQLite, establishing table relationships and preparing your database design.

How do I create and apply database migrations using Drizzle Kit?

Creating database migrations with Drizzle Kit involves executing commands to generate migration files from your schema changes. This Skill automates Drizzle Kit command execution for migration management, allowing you to apply schema updates to PostgreSQL, MySQL, or SQLite databases.

Can I build type-safe queries with Drizzle ORM for PostgreSQL and MySQL?

Yes, you can build type-safe queries with Drizzle ORM for PostgreSQL and MySQL. This Skill generates type-safe queries for data manipulation and retrieval, ensuring your database interactions are validated at compile time across supported database drivers.

Does Drizzle ORM work with SQLite databases in a TypeScript backend?

Drizzle ORM works with SQLite databases in TypeScript backends, supporting various SQLite drivers. This Skill generates SQLite schemas, defines table relations, and constructs type-safe queries, enabling complete SQLite database management within TypeScript.

What is the best way to define table relations in Drizzle ORM?

The best way to define table relations in Drizzle ORM is by explicitly mapping relationships between your TypeScript schema models. This Skill facilitates schema design and relation definition, helping you establish clear relational links between tables like users and posts.