·cloudflare-d1
</>

cloudflare-d1

jezweb/claude-skills

Build with D1 serverless SQLite database on Cloudflare's edge. Use when: creating databases, writing SQL migrations, querying D1 from Workers, handling relational data, or troubleshooting D1_ERROR, statement too long, migration failures, or query performance issues. Prevents 14 documented errors.

414Installs·11Trend·@jezweb

Installation

$npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-d1

SKILL.md

Status: Production Ready ✅ Last Updated: 2026-01-20 Dependencies: cloudflare-worker-base (for Worker setup) Latest Versions: wrangler@4.59.2, @cloudflare/workers-types@4.20260109.0

| Statement too long | Large INSERT with 1000+ rows | Break into batches of 100-250 using batch() | | Network connection lost | Transient failure or large import | Implement retry logic (see below) or break into smaller chunks | | Too many requests queued | Individual queries in loop | Use batch() instead of loop |

| D1TYPEERROR | Using undefined in bind | Use null for optional values: .bind(email, bio \|\| null) | | Transaction conflicts | BEGIN TRANSACTION in migration | Remove BEGIN/COMMIT (D1 handles automatically) | | Foreign key violations | Schema changes break constraints | Use PRAGMA deferforeignkeys = true |

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-d1
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is cloudflare-d1?

Build with D1 serverless SQLite database on Cloudflare's edge. Use when: creating databases, writing SQL migrations, querying D1 from Workers, handling relational data, or troubleshooting D1_ERROR, statement too long, migration failures, or query performance issues. Prevents 14 documented errors. Source: jezweb/claude-skills.

How do I install cloudflare-d1?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-d1 Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/jezweb/claude-skills