atelier-typescript-drizzle-orm

Define Drizzle ORM schemas and generate type-safe TypeScript queries.

39|4|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/martinffx/claude-code-atelier --skill atelier-typescript-drizzle-orm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: atelier-typescript-drizzle-orm
Source: https://github.com/martinffx/claude-code-atelier/tree/main/plugins/atelier-typescript/skills/atelier-typescript-drizzle-orm
Command: npx skills add https://github.com/martinffx/claude-code-atelier --skill atelier-typescript-drizzle-orm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Drizzle ORM provides a lightweight, typed interface for defining database schemas, writing queries, and managing migrations in TypeScript, reducing runtime errors and boilerplate.

Core Features & Use Cases

  • Type-safe schema definitions across PostgreSQL, MySQL, SQLite, Cloudflare D1, and Durable Objects
  • Relational queries with strong type inference and relations helpers
  • Seamless migrations and code-generated types for insert/select models

Quick Start

Define your first schema with drizzle-orm and generate type-safe queries against your database.

Frequently Asked Questions about atelier-typescript-drizzle-orm

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

FAQPage Schema
How do I define a type-safe database schema in TypeScript?

Drizzle-orm enables type-safe database schema definitions in TypeScript by using core APIs to declare tables and generate code-generated types for insert and select models. This provides a compile-time type-safe data layer that prevents runtime type errors.

What is the best way to manage SQL migrations with type inference in TypeScript?

Managing SQL migrations with type inference in TypeScript is handled through drizzle-orm's seamless migration tools. These tools ensure schema changes generate type-safe queries, maintaining correctness across PostgreSQL, MySQL, and SQLite without boilerplate.

Does drizzle-orm work with Cloudflare D1 and Durable Objects?

Yes, drizzle-orm works with Cloudflare D1 and Durable Objects. It targets multiple platforms including these edge environments, allowing you to write type-safe SQL queries and relational queries with strong type inference directly within your Cloudflare workers.

How do relational queries and type inference work in a TypeScript ORM?

Relational queries and type inference in a TypeScript ORM work by using drizzle-orm's relations helpers to fetch nested data. The ORM infers types at compile-time, ensuring the returned data structures are fully typed without needing manual type assertions or runtime checks.

Why should I use a type-safe SQL ORM for TypeScript instead of raw queries?

You should use a type-safe SQL ORM for TypeScript to solve boilerplate and runtime type errors. Drizzle-orm provides a lightweight, typed interface offering compile-time type safety, ensuring query correctness across PostgreSQL, MySQL, and SQLite without the risks of raw SQL.