cf-d1

Generate Cloudflare D1 SQLite schemas, queries, and migrations.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sitharaj88/claude-skills --skill cf-d1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cf-d1
Source: https://github.com/sitharaj88/claude-skills/tree/main/skills/cf-d1
Command: npx skills add https://github.com/sitharaj88/claude-skills --skill cf-d1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the creation, management, and querying of Cloudflare D1 SQLite databases, enabling developers to build robust, edge-native applications.

Core Features & Use Cases

  • Schema & Migration Management: Generate SQL schemas and apply migrations using wrangler.
  • Query Generation: Write type-safe D1 queries using plain SQL or Drizzle ORM.
  • Full-Text Search: Implement efficient text search capabilities with FTS5.
  • Use Case: You need to design a new D1 database schema for a user authentication system, including tables for users and posts, and then write TypeScript code to interact with it.

Quick Start

Use the cf-d1 skill to generate a D1 database schema for a blog with users and posts tables.

Frequently Asked Questions about cf-d1

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

FAQPage Schema
How do I create and apply D1 database migrations for Cloudflare Workers?

You can generate D1 SQLite database schemas and apply migrations using wrangler commands. The Skill provides detailed instructions for schema design and migration application to set up your Cloudflare Workers database.

Can I implement full-text search in Cloudflare D1 using FTS5?

FTS5 is supported for implementing efficient full-text search capabilities in Cloudflare D1. The Skill generates the necessary schema designs and query patterns to enable text search within your edge-native applications.

What is the best way to optimize D1 query performance for SQLite at the edge?

To optimize D1 query performance, the Skill generates production-ready schemas, batch operations, and JSON support patterns. It includes specific performance optimization instructions tailored for Cloudflare D1 SQLite databases.

Does this Skill support generating client APIs for D1 databases?

Yes, the Skill includes detailed instructions for client API generation alongside batch operations and JSON support. It helps you build robust integration patterns for Cloudflare Workers and Pages.