Cloudflare D1

🌐Community
by alinaqi · vlatest · Repository

Deploy, manage, and query data in Alinaqi's Cloudflare D1 databases directly through this AI agent skill.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add alinaqi-cloudflare-d1 npx -- -y @trustedskills/alinaqi-cloudflare-d1
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "alinaqi-cloudflare-d1": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/alinaqi-cloudflare-d1"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill allows AI agents to interact with Cloudflare D1 databases, a serverless SQLite database designed for use with Cloudflare Workers. It enables deploying, managing, and querying data within these globally distributed, zero-cold-start databases. The skill leverages the simplicity of SQLite combined with tools like Drizzle ORM for type safety and migrations, facilitating horizontal scaling across multiple smaller databases.

When to use it

  • Building serverless applications that require persistent data storage close to users.
  • Managing database schemas and migrations within a version control system.
  • Developing Cloudflare Workers that need to interact with structured data.
  • Creating type-safe queries and ensuring data integrity using Drizzle ORM.
  • Deploying lightweight web applications utilizing the Hono framework (optional).

Key capabilities

  • Direct interaction with Cloudflare D1 databases.
  • Support for SQLite database operations.
  • Integration with Drizzle ORM for type-safe queries and migrations.
  • Deployment and management of D1 databases through Wrangler CLI.
  • Leveraging horizontal scaling across multiple small databases.

Example prompts

  • "Create a new table called 'products' in the D1 database."
  • "Run the latest migration on the D1 database."
  • "Query the D1 database for all users with the role of 'admin'."
  • "Insert a new record into the 'posts' table with the given title and content."

Tips & gotchas

  • Requires familiarity with SQLite, Wrangler CLI, and ideally Drizzle ORM.
  • D1 databases are designed for horizontal scaling; avoid using them as single large databases.
  • Ensure proper configuration of wrangler.toml to correctly bind the database environment variable (e.g., "DB").

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
alinaqi
Installs
63

🌐 Community

Passed automated security scans.