cloudflare

Guides development across Cloudflare Workers, storage, AI, networking, and security products.

Updated May 23, 2026
One-click install
npx skills add https://github.com/Oatse/CWE-Automation --skill cloudflare-oatse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare
Source: https://github.com/Oatse/CWE-Automation/tree/main/.agents/skills/cloudflare
Command: npx skills add https://github.com/Oatse/CWE-Automation --skill cloudflare-oatse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Cloudflare's platform spans dozens of products with evolving APIs, limits, and configuration options, making it hard to pick the right product and write correct code without outdated assumptions. This Skill routes any Cloudflare task to the right product reference and prioritizes live documentation over stale pre-trained knowledge. ## Core Features & Use Cases - Product Decision Trees: Route tasks like running code, storing data, AI inference, networking, security, and media to the correct Cloudflare product reference. - Deep Product References: Progressive-disclosure guides for Workers, Pages, D1, KV, R2, Durable Objects, Workers AI, Vectorize, AI Gateway, Terraform, and 50+ other products. - Retrieval-First Guidance: Directs verification of limits, pricing, and API signatures against live Cloudflare docs, Wrangler schemas, and workers-types packages. - Use Case: When asked to build a RAG chatbot, the Skill routes you to Workers AI for embeddings, Vectorize for the vector database, and D1 for metadata, with current API patterns for each. ## Quick Start Ask the assistant to help you build, configure, or debug any Cloudflare product such as deploying a Worker with a D1 database binding.

Frequently Asked Questions about cloudflare

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

FAQPage Schema
How do I choose between Cloudflare Workers, Pages, and Durable Objects?

Use Workers for serverless functions at the edge, Pages for full-stack web apps with Git deploys, and Durable Objects for stateful coordination or real-time workloads. The Skill's decision trees route based on whether you need compute, hosting, or strongly-consistent state.

What Cloudflare storage should I use for my application?

Use KV for high-read key-value data like config and sessions, D1 for relational SQLite queries, R2 for S3-compatible object storage, and Durable Object storage for strongly-consistent per-entity state. The Skill provides a storage decision tree comparing consistency, latency, and use cases.

How do I run AI inference on Cloudflare Workers?

Use the Workers AI binding with env.AI.run() and a model like @cf/meta/llama-3.1-8b-instruct for text generation or BGE models for embeddings. For RAG patterns, combine Workers AI embeddings with Vectorize as the vector database.

Can I manage Cloudflare infrastructure with Terraform?

Yes, the Cloudflare Terraform provider v5 manages zones, DNS records, Workers, KV, R2, D1, and Pages as code. Note that v5 renamed many resources from v4, and you should never mix Terraform with wrangler.jsonc for the same resources.

Why might Cloudflare API limits or pricing in this Skill be outdated?

Cloudflare limits, pricing, and API signatures change frequently, so the Skill explicitly instructs verifying against live docs at developers.cloudflare.com, the wrangler config schema, and workers-types packages. Reference files are starting points, not the source of truth.

When should I use Snippets instead of Workers?

Use Snippets for lightweight HTTP request/response modifications under 5ms CPU time and 32KB code size, included free on paid plans. Choose Workers when you need bindings like KV or D1, more than 5 subrequests, or complex application logic.