Cloudflare D1 Database
Builds, optimizes, and manages serverless SQLite databases on Cloudflare D1 with schema migrations and low-latency edge queries.
Cloudflare D1 is a specialized Claude Code skill for designing, deploying, and querying serverless SQLite databases running globally at the edge on Cloudflare Workers. It provides expert guidance on configuring Wrangler bindings, executing atomic batch transactions, crafting idempotent migrations, setting up global read replicas via the Sessions API, and diagnosing edge database errors such as D1_ERROR or statement length limits.
Key Features
01Idempotent migration workflows with local and remote Wrangler support
02Safe prepared statements and atomic batch transaction patterns
03Diagnostic error prevention for D1_ERROR, 429 limits, and query size constraints
04Edge SQLite schema optimization, index strategies, and type affinity handling
05Read replication and global read configuration via the Sessions API
06239 GitHub stars
Use Cases
01Optimizing read-heavy edge workloads with multi-region read replicas and session consistency
02Building global CRUD REST APIs backed by edge SQLite in Cloudflare Workers or Hono
03Managing database schema migrations safely across local and production environments