Databases & dataMIT

D1 Drizzle Schema

by Jeremy Dawes (opens in a new tab) jezweb/claude-skills

Generates D1-safe Drizzle schemas, migrations, types, and schema documentation.

Installation

Skills CLI

Skills CLI command
npx skills@latest add jezweb/claude-skills --skill d1-drizzle-schema

Requires Node.js and npm. Choose your agents in the installer; add -g for a global installation.

Fieldbook review

Reviewed 27 Sept 2026

This Claude Code-only skill writes schema and config files, package scripts, and DATABASE_SCHEMA.md around D1's enforced foreign keys, SQLite types, and 100-parameter limit. Wrangler and a Cloudflare D1 database are required, and it mandates applying migrations to both local and remote databases before testing, which changes hosted data structures.

  • LicenceMIT
  • FrontmatterValid name and description
  • Risky patternsNone found
  • Size153 lines
  • Last checked27 Sept 2026 · 23bd31f1e12fac278a899edfe18b66e495266ad052719ebffb406f30a076df1a

What it can touch

  • Edits code

    Changes files in your project.

  • Writes docs

    Creates or updates documents such as specs, plans or ADRs.

  • Runs commands

    Runs shell commands such as tests, builds or installs.

  • Network

    Reaches external services or the web.

Read the source

Fieldbook links to the original instead of copying it, so you always read the version you install.

plugins/cloudflare/skills/d1-drizzle-schema/SKILL.md on GitHub (opens in a new tab)