cloudflare

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

Updated Dec 9, 2025
One-click install
npx skills add https://github.com/Aki2022/skills --skill cloudflare-aki2022
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare
Source: https://github.com/Aki2022/skills/tree/main/cloudflare
Command: npx skills add https://github.com/Aki2022/skills --skill cloudflare-aki2022

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. This Skill routes any Cloudflare task through decision trees to the right product reference and prioritizes live documentation over stale pre-trained knowledge. ## Core Features & Use Cases - Product Decision Trees: Route tasks like "I need storage" or "I need AI/ML" to the correct product (KV vs D1 vs R2, Workers AI vs Vectorize vs Agents SDK) with quick comparison tables. - Deep Product References: Per-product guides covering configuration, APIs, patterns, and gotchas for Workers, Pages, Durable Objects, D1, R2, Workers AI, Terraform, WAF, and 50+ other services. - Retrieval-First Guidance: Directs lookups to live Cloudflare docs, Wrangler config schemas, and workers-types packages so limits, pricing, and type signatures stay current. - Use Case: When asked to build a RAG chatbot on Cloudflare, the Skill routes you to Workers AI for embeddings, Vectorize for the vector index, and Workers for serving, then loads each product's setup and API reference. ## Quick Start Ask the assistant to help you build or configure any Cloudflare product, such as setting up a Worker with a D1 database, and it will load the relevant references.

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 KV, D1, and R2 for storage?

Use KV for high-read key-value data like config and sessions, D1 for relational SQL data with strong consistency, and R2 for S3-compatible object and file storage. The Skill's storage decision tree maps each need to the right product.

How do I build a RAG application on Cloudflare Workers?

Generate embeddings with Workers AI models like bge-base-en-v1.5, store and query them in Vectorize, and serve responses from a Worker. The Skill's workers-ai and vectorize references cover bindings, model selection, and integration patterns.

When should I use Durable Objects instead of KV?

Use Durable Objects when you need strongly-consistent per-entity state, coordination like rate limiting or locks, or WebSocket-based real-time features. KV is better for globally cached, eventually-consistent reads.

Does the Cloudflare skill support Terraform and Pulumi?

Yes, it includes references for both the Cloudflare Terraform provider (including v5 breaking changes and cf-terraforming imports) and Pulumi, plus the REST API for direct infrastructure automation.

Why does the skill prefer fetching Cloudflare docs over built-in knowledge?

Cloudflare limits, pricing, type signatures, and config options change frequently, so pre-trained knowledge may be outdated. The Skill directs retrieval from developers.cloudflare.com, Wrangler's config schema, and workers-types for current values.

What are the limits of Cloudflare Snippets versus Workers?

Snippets run within a 5ms CPU limit and 32KB size cap with 2-5 subrequests, suited for simple request/response modifications. Workers support longer execution, npm dependencies, and bindings like KV, D1, and Durable Objects for full applications.