All skills
openai avatar

/cloudflare-deploy

@bf9e226 official
by openaiopenai/skills28k stars
1,891

Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.

Use this Skill: https://skilld.dev/gh/openai/skills/cloudflare-deploy

This session only. Nothing lands on disk.

SKILL.md

β‰ˆ52 tokens always: the name and description. β‰ˆ1.8k when used: this file. β‰ˆ271k more on demand in 248 files.

Cloudflare Deploy

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

Prerequisites

  • When sandboxing blocks the deployment network calls, rerun with sandbox_permissions=require_escalated.
  • The deployment might take a few minutes. Use appropriate timeout values.

Authentication (Required Before Deploy)

Verify auth before wrangler deploy, wrangler pages deploy, or npm run deploy:

npx wrangler whoami    # Shows account if authenticated

Not authenticated? β†’ references/wrangler/auth.md

  • Interactive/local: wrangler login (one-time OAuth)
  • CI/CD: Set CLOUDFLARE_API_TOKEN env var

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/
β”œβ”€ Lightweight edge logic (modify HTTP) β†’ snippets/
β”œβ”€ Process Worker execution events (logs/observability) β†’ tail-workers/
└─ Optimize latency to backend infrastructure β†’ smart-placement/

"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/
└─ Persistent cache (long-term retention) β†’ cache-reserve/

"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/
β”œβ”€ Optimize latency to backend (not user) β†’ smart-placement/
└─ 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), or api/ (REST API)

Product Index

Compute & Runtime

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

Storage & Data

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

AI & Machine Learning

Product Reference
Workers AI references/workers-ai/
Vectorize references/vectorize/
Agents SDK references/agents-sdk/
AI Gateway references/ai-gateway/
AI Search references/ai-search/

Networking & Connectivity

Product Reference
Tunnel references/tunnel/
Spectrum references/spectrum/
TURN references/turn/
Network Interconnect references/network-interconnect/
Argo Smart Routing references/argo-smart-routing/
Workers VPC references/workers-vpc/

Security

Product Reference
WAF references/waf/
DDoS Protection references/ddos/
Bot Management references/bot-management/
API Shield references/api-shield/
Turnstile references/turnstile/

Media & Content

Product Reference
Images references/images/
Stream references/stream/
Browser Rendering references/browser-rendering/
Zaraz references/zaraz/

Real-Time Communication

Product Reference
RealtimeKit references/realtimekit/
Realtime SFU references/realtime-sfu/

Developer Tools

Product Reference
Wrangler references/wrangler/
Miniflare references/miniflare/
C3 references/c3/
Observability references/observability/
Analytics Engine references/analytics-engine/
Web Analytics references/web-analytics/
Sandbox references/sandbox/
Workerd references/workerd/
Workers Playground references/workers-playground/

Infrastructure as Code

Product Reference
Pulumi references/pulumi/
Terraform references/terraform/
API references/api/

Other Services

Product Reference
Email Routing references/email-routing/
Email Workers references/email-workers/
Static Assets references/static-assets/
Bindings references/bindings/
Cache Reserve references/cache-reserve/

Troubleshooting

Escalated Network Access

If deployment fails due to network issues (timeouts, DNS errors, connection resets), rerun the deploy with escalated permissions (use sandbox_permissions=require_escalated). The deploy requires escalated network access when sandbox networking blocks outbound requests.

Example guidance to the user:

The deploy needs escalated network access to deploy to Cloudflare. I can rerun the command with escalated permissionsβ€”want me to proceed?

Source: SKILL.md on GitHub

2 warnings17d5 checks Β· Risk SAFE
  • Gen Agent Trust Hub17d

    This skill provides comprehensive guidance for deploying and managing infrastructure on the Cloudflare platform. It includes extensive educational material on secure development practices, such as preventing SQL injection and managing secrets effectively. No malicious patterns or security risks were identified.

  • Socket17d

    2 alerts: gptAnomaly

  • Snyk17d

    Risk: LOW Β· No issues

  • Runlayer7mo

    310/310 files flagged

  • ZeroLeaks5mo

    Score: 93/100 Β· 2 sections analyzed

Signed by skilld at bf9e226. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Activeupdated 8 months ago

README badge

README badge for openai/skills/cloudflare-deploy

Deploys applications and infrastructure to Cloudflare's platform, including Workers, Pages, D1, R2, Durable Objects, KV, and other services. Use decision trees to route to the right Cloudflare product based on compute, storage, AI, networking, security, or media needs.

Generated from the current SKILL.md.

Does this skill cover all Cloudflare products?
The skill is a consolidated index covering compute, storage, AI, networking, security, media, and developer tools on Cloudflare. It uses decision trees to route you to the right product reference, then loads detailed guidance for that product.
What authentication is required before deploying?
Run `npx wrangler whoami` to check if authenticated. For local deployment, use `wrangler login` (one-time OAuth). For CI/CD, set the `CLOUDFLARE_API_TOKEN` environment variable.
What should I do if deployment fails due to network issues?
Rerun the deploy with `sandbox_permissions=require_escalated` to grant elevated network access, which is required for outbound requests to Cloudflare during deployment.
How long does a Cloudflare deployment typically take?
Deployments may take several minutes. Use appropriate timeout values in your configuration or CI/CD environment.

Generated from the current SKILL.md. These answers refresh after source changes.