cloudflare

Automate building, deploying, and running full-stack applications on Cloudflare's edge network.

Updated Jul 23, 2025
One-click install
npx skills add https://github.com/levanminhduc/LuongHoaThoNew --skill cloudflare-levanminhduc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare
Source: https://github.com/levanminhduc/LuongHoaThoNew/tree/main/.claude/skills/cloudflare
Command: npx skills add https://github.com/levanminhduc/LuongHoaThoNew --skill cloudflare-levanminhduc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides guidance for building on Cloudflare's edge ecosystem, including Workers, KV, and Pages.

Core Features & Use Cases

  • Edge compute: Deploy serverless functions at the edge for low latency.
  • KV, D1, R2 integrations: Store data with high availability and fast access.
  • Pages: Host static sites with edge functions.

Quick Start

Create a Worker and deploy a simple edge function that responds with "Hello, edge!".

Frequently Asked Questions about cloudflare

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

FAQPage Schema
How do I deploy serverless functions at the edge with low latency?

Edge deployment runs serverless functions globally on Cloudflare Workers, executing in V8 isolates with millisecond cold starts and automatic scaling. Deploy via Wrangler CLI with JavaScript, TypeScript, Python, or Rust/WASM for immediate global availability without regional selection.

Can I build full-stack applications on Cloudflare's edge network?

Yes, full-stack edge applications combine Workers for compute, D1 for databases, R2 for object storage, KV for key-value data, and Pages for static hosting. Support includes Durable Objects for real-time state, Workers AI for inference, and multiple handler types (fetch, scheduled, queue, email, alarm).

What's the best way to integrate KV storage and databases into edge functions?

KV, D1, and R2 integrate natively with Workers through bindings configured in wrangler.toml. KV provides millisecond access for caching and state; D1 handles relational data; R2 stores objects. All scale automatically and charge per-request with no minimum.

How do I host static sites with edge functions on Cloudflare Pages?

Pages hosts static sites globally and supports edge functions for dynamic logic. Deploy repositories directly via git integration or upload builds; add serverless functions using the /functions directory. Combine with Workers, KV, and D1 for full-featured applications.

Do edge functions support scheduled tasks, queues, and email handling?

Yes, Workers support multiple handler types: scheduled triggers run tasks on intervals, queue handlers process background jobs, email handlers parse incoming messages, tail handlers aggregate logs, and fetch handlers respond to HTTP requests. Configure all via Wrangler.

What are the limitations of edge compute for long-running or CPU-intensive workloads?

Edge functions have millisecond cold starts and automatic scaling but run in resource-constrained V8 isolates with request timeouts. Heavy computation, long-running processes, and large memory operations are unsuitable; use traditional serverless or dedicated servers for those workloads.