From cloudflare
Use this skill when the user asks about Cloudflare D1, serverless SQL databases on Cloudflare, SQLite on the edge, or managing D1 databases with Pulumi.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cloudflare:d1The summary Claude sees in its skill listing — used to decide when to auto-load this skill
D1 is Cloudflare's serverless SQLite database. It runs on Cloudflare's edge with automatic read replication, point-in-time recovery, and native Worker bindings.
D1 is Cloudflare's serverless SQLite database. It runs on Cloudflare's edge with automatic read replication, point-in-time recovery, and native Worker bindings.
cloudflare.D1Database (docs)export default {
async fetch(request: Request, env: Env): Promise<Response> {
const { results } = await env.DB.prepare("SELECT * FROM users WHERE id = ?").bind(1).all();
return Response.json(results);
},
};
[[d1_databases]]
binding = "DB"
database_name = "my-database"
database_id = "xxxx-xxxx-xxxx"
# Create a database
npx wrangler d1 create my-database
# Run SQL
npx wrangler d1 execute my-database --command "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)"
# Run migrations
npx wrangler d1 migrations apply my-database
import * as cloudflare from "@pulumi/cloudflare";
const db = new cloudflare.D1Database("my-database", {
accountId,
name: "my-database",
});
export const databaseId = db.id;
| Resource | Free | Paid |
|---|---|---|
| Rows read | 5M/day | $0.001/M |
| Rows written | 100K/day | $1.00/M |
| Storage | 5 GB | $0.75/GB/month |
npx claudepluginhub nsheaps/ai-mktpl --plugin cloudflareProvides setup and usage guidance for Cloudflare D1 SQLite databases with Workers and Drizzle ORM, including schema definition, migrations, and project configuration.
Manage Cloudflare D1 serverless SQLite databases: queries, migrations, bindings, read replicas, and error handling for D1_ERROR, statement too long, and too many requests queued.
Guides Cloudflare D1 migrations with Drizzle: generate SQL, inspect for destructive changes, apply local/remote, verify schemas, fix stuck migrations and partial failures.