agentleFS
roerohanroerohan/skills/cloudflare/SKILL.md

cloudflare

Skill29 starsChanged 7 months agoMITView on GitHub

Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), networking (Tunnel, Spectrum), security (WAF, DDoS), and infrastructure-as-code (Terraform, Pulumi). Use for any Cloudflare development task.

37 other projects use a version of this, 18 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use cloudflare-one-migrations, cloudflare-email-service and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CloudflareSkill

    cloudflare-one-migrations

    Assess and plan migrations from existing VPN, SWG, or SASE platforms to Cloudflare One, including policy mapping, parity gaps, and rollout.

    Also in 6 projects that use this

  • CloudflareSkill

    cloudflare-email-service

    Implement or troubleshoot Cloudflare Email Sending and Email Routing integrations and their delivery configuration.

    Also in 8 projects that use this

  • OpenAISkill

    workers-best-practices

    Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

    Also in 11 projects that use this

  • OpenAISkill

    durable-objects

    Create and review Cloudflare Durable Objects. Use when building stateful coordination (chat rooms, multiplayer games, booking systems), implementing RPC methods, SQLite storage, alarms, WebSockets, or reviewing DO code for best practices. Covers Workers integration, wrangler config, and testing with Vitest. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

    Also in 9 projects that use this

  • akornmeierSkill

    mongodb

    Guide for implementing MongoDB - a document database platform with CRUD operations, aggregation pipelines, indexing, replication, sharding, search capabilities, and comprehensive security. Use when working with MongoDB databases, designing schemas, writing queries, optimizing performance, configuring deployments (Atlas/self-managed/Kubernetes), implementing security, or integrating with applications through 15+ official drivers. (project)

    Also in 3 projects that use this

  • imehrSkill

    railway

    Railway.com deployment and management - deployment, logs, migrations, troubleshooting, monorepo strategies, security, and CLI reference. Use when deploying to Railway, configuring services, managing environment variables, or debugging deployment issues.

    Also in 3 projects that use this

  • +2 more from cloudflare
  • +4 more from openai

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 31 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Single-file format: All information consolidated in README.md.

    line 31

“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cloudflare Platform Skill

Consolidated skill for building on the Cloudflare platform. Use decision trees below to find the right product, then load detailed references.

How to Use This Skill

Reference File Structure

Each product in ./references/<product>/ contains a README.md as the entry point, which may be structured in one of two ways:

Multi-file format (5 files):

FilePurposeWhen to Read
README.mdOverview, when to use, getting startedAlways read first
api.mdRuntime API, types, method signaturesWriting code
configuration.mdwrangler.toml, bindings, setupConfiguring a project
patterns.mdCommon patterns, best practicesImplementation guidance
gotchas.mdPitfalls, limitations, edge casesDebugging, avoiding mistakes

Single-file format: All information consolidated in README.md.

Reading Order

  1. Start with README.md
  2. Then read additional files relevant to your task (if multi-file format):
    • Building feature → api.md + patterns.md
    • Setting up project → configuration.md
    • Troubleshooting → gotchas.md

Example Paths

./references/workflows/README.md         # Start here for Workflows
./references/workflows/api.md            # Workflow class, step methods
./references/durable-objects/gotchas.md  # DO limitations
./references/workers-ai/README.md        # Single-file - all Workers AI docs

Quick Decision Trees

"I need to run code"

Need to run code?
├─ Serverless functions at the edge → workers/
├─ Full-stack web app with Git deploys → pages/
├─ Stateful coordination/real-time → durable-objects/
├─ Long-running multi-step jobs → workflows/
├─ Run containers → containers/
├─ Multi-tenant (customers deploy code) → workers-for-platforms/
└─ Scheduled tasks (cron) → cron-triggers/

"I need to store data"

Need storage?
├─ Key-value (config, sessions, cache) → kv/
├─ Relational SQL → d1/ (SQLite) or hyperdrive/ (existing Postgres/MySQL)
├─ Object/file storage (S3-compatible) → r2/
├─ Message queue (async processing) → queues/
├─ Vector embeddings (AI/semantic search) → vectorize/
├─ Strongly-consistent per-entity state → durable-objects/ (DO storage)
├─ Secrets management → secrets-store/
└─ Streaming ETL to R2 → pipelines/

"I need AI/ML"

Need AI?
├─ Run inference (LLMs, embeddings, images) → workers-ai/
├─ Vector database for RAG/search → vectorize/
├─ Build stateful AI agents → agents-sdk/
├─ Gateway for any AI provider (caching, routing) → ai-gateway/
└─ AI-powered search widget → ai-search/

"I need networking/connectivity"

Need networking?
├─ Expose local service to internet → tunnel/
├─ TCP/UDP proxy (non-HTTP) → spectrum/
├─ WebRTC TURN server → turn/
├─ Private network connectivity → network-interconnect/
├─ Optimize routing → argo-smart-routing/
└─ Real-time video/audio → realtimekit/ or realtime-sfu/

"I need security"

Need security?
├─ Web Application Firewall → waf/
├─ DDoS protection → ddos/
├─ Bot detection/management → bot-management/
├─ API protection → api-shield/
├─ CAPTCHA alternative → turnstile/
└─ Credential leak detection → waf/ (managed ruleset)

"I need media/content"

Need media?
├─ Image optimization/transformation → images/
├─ Video streaming/encoding → stream/
├─ Browser automation/screenshots → browser-rendering/
└─ Third-party script management → zaraz/

"I need infrastructure-as-code"

Need IaC?
├─ Pulumi → pulumi/
├─ Terraform → terraform/
└─ Direct API → api/

Product Index

Compute & Runtime

ProductEntry File
Workers./references/workers/README.md
Pages./references/pages/README.md
Pages Functions./references/pages-functions/README.md
Durable Objects./references/durable-objects/README.md
Workflows./references/workflows/README.md
Containers./references/containers/README.md
Workers for Platforms./references/workers-for-platforms/README.md
Cron Triggers./references/cron-triggers/README.md
Tail Workers./references/tail-workers/README.md
Snippets./references/snippets/README.md
Smart Placement./references/smart-placement/README.md

Storage & Data

ProductEntry File
KV./references/kv/README.md
D1./references/d1/README.md
R2./references/r2/README.md
Queues./references/queues/README.md
Hyperdrive./references/hyperdrive/README.md
DO Storage./references/do-storage/README.md
Secrets Store./references/secrets-store/README.md
Pipelines./references/pipelines/README.md
R2 Data Catalog./references/r2-data-catalog/README.md
R2 SQL./references/r2-sql/README.md

AI & Machine Learning

ProductEntry File
Workers AI./references/workers-ai/README.md
Vectorize./references/vectorize/README.md
Agents SDK./references/agents-sdk/README.md
AI Gateway./references/ai-gateway/README.md
AI Search./references/ai-search/README.md

Networking & Connectivity

ProductEntry File
Tunnel./references/tunnel/README.md
Spectrum./references/spectrum/README.md
TURN./references/turn/README.md
Network Interconnect./references/network-interconnect/README.md
Argo Smart Routing./references/argo-smart-routing/README.md
Workers VPC./references/workers-vpc/README.md

Security

ProductEntry File
WAF./references/waf/README.md
DDoS Protection./references/ddos/README.md
Bot Management./references/bot-management/README.md
API Shield./references/api-shield/README.md
Turnstile./references/turnstile/README.md

Media & Content

ProductEntry File
Images./references/images/README.md
Stream./references/stream/README.md
Browser Rendering./references/browser-rendering/README.md
Zaraz./references/zaraz/README.md

Real-Time Communication

ProductEntry File
RealtimeKit./references/realtimekit/README.md
Realtime SFU./references/realtime-sfu/README.md

Developer Tools

ProductEntry File
Wrangler./references/wrangler/README.md
Miniflare./references/miniflare/README.md
C3./references/c3/README.md
Observability./references/observability/README.md
Analytics Engine./references/analytics-engine/README.md
Web Analytics./references/web-analytics/README.md
Sandbox./references/sandbox/README.md
Workerd./references/workerd/README.md
Workers Playground./references/workers-playground/README.md

Infrastructure as Code

ProductEntry File
Pulumi./references/pulumi/README.md
Terraform./references/terraform/README.md
API./references/api/README.md

Other Services

ProductEntry File
Email Routing./references/email-routing/README.md
Email Workers./references/email-workers/README.md
Static Assets./references/static-assets/README.md
Bindings./references/bindings/README.md
Cache Reserve./references/cache-reserve/README.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.