Skip to content
mindrally avatar

Cloudflare Development

Best-practice guide for building Cloudflare Workers, Pages, KV, D1, R2, and Durable Objects apps at the edge.

CCM score
48 of 100
skills.sh installs
742
GitHub stars
321
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Workers, Pages, KV, D1, R2, and Durable Objects, with typed bindings, wrangler.toml setup, and code patterns for each
  • Includes environment type definitions, Pages Functions layout, and examples for queries, object storage, WebSocket coordination, and rate limiting
  • Enforces parameterized D1 queries, request validation, and token-based auth checks as baseline edge security practice
  • Designed for developers building edge-hosted APIs and stateful services on Cloudflare's global network

Install

$ npx -y skills add mindrally/skills --skill cloudflare-development -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Cloudflare Development Best Practices

Overview

This skill provides comprehensive guidelines for developing applications on Cloudflare's edge platform, including Workers, Pages, KV storage, D1 databases, R2 object storage, and Durable Objects.

Core Principles

  • Write lightweight, fast code optimized for edge execution
  • Minimize cold start times and execution duration
  • Use appropriate storage solutions for each use case
  • Follow security best practices for edge computing
  • Leverage Cloudflare's global network for performance

Cloudflare Workers Guidelines

Basic Worker Structure

export default {
  async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
    try {
      const url = new URL(request.url);

      // Route handling
      if (url.pathname === '/api/data') {
        return handleApiRequest(request, env);
      }

      return new Response('Not Found', { status: 404 });
    } catch (error) {
      console.error('Worker error:', error);
      return new Response('Internal Server Error', { status: 500 });
    }
  },
} satisfies ExportedHandler<Env>;

Details

Repository
github.com/mindrally/skills
Categories
Backend & APIs, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the cloudflare-development skill cover?

It gives Claude guidelines for building on Cloudflare's edge platform, including Workers, Pages, KV storage, D1 databases, R2 object storage, and Durable Objects. It includes example code, Wrangler configuration, and edge security patterns such as request validation, authentication, and rate limiting.

How do I install the cloudflare-development skill?

Run npx -y skills add mindrally/skills --skill cloudflare-development -y inside your project. The skills CLI requires Node.js and then adds the skill for your agent to use.

Which skills are related to cloudflare-development in the Backend & APIs category?

In the Backend & APIs category, cloudflare-development sits alongside entra-app-registration, neon, firebase-basics, firebase-auth-basics, and workers-best-practices. Those skills cover other backend platforms, while this one focuses on Cloudflare's edge services.

More from mindrally/skills

All 240

Similar to Cloudflare Development

More Backend & APIs