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.

referencesargo-smart-routingREADME.md

≈1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Cloudflare Argo Smart Routing Skill Reference

Overview

Cloudflare Argo Smart Routing is a performance optimization service that detects real-time network issues and routes web traffic across the most efficient network path. It continuously monitors network conditions and intelligently routes traffic through the fastest, most reliable routes in Cloudflare's network.

Note on Smart Shield: Argo Smart Routing is being integrated into Cloudflare's Smart Shield product for enhanced DDoS protection and performance. Existing Argo customers maintain full functionality with gradual migration to Smart Shield features.

Quick Start

Enable via cURL

curl -X PATCH "https://api.cloudflare.com/client/v4/zones/{zone_id}/argo/smart_routing" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"value": "on"}'

Enable via TypeScript SDK

import Cloudflare from 'cloudflare';

const client = new Cloudflare({ apiToken: process.env.CLOUDFLARE_API_TOKEN });

const result = await client.argo.smartRouting.edit({
  zone_id: 'your-zone-id',
  value: 'on',
});

console.log(`Argo enabled: ${result.value}`);

Core Concepts

What It Does

  • Intelligent routing: Detects congestion, outages, packet loss in real-time
  • Global optimization: Routes across 300+ Cloudflare data centers
  • Automatic failover: Switches paths when issues detected (typically <1s)
  • Works with existing setup: No origin changes required

Billing Model

  • Usage-based: Charged per GB of traffic (excluding DDoS/WAF mitigated traffic)
  • Requires billing configuration before enabling
  • Available on Enterprise+ plans (check zone eligibility)

When to Use

  • High-traffic production sites with global user base
  • Latency-sensitive applications (APIs, real-time services)
  • Sites behind Cloudflare proxy (orange-clouded DNS records)
  • Combined with Tiered Cache for maximum performance gains

When NOT to Use

  • Development/staging environments (cost control)
  • Low-traffic sites (<1TB/month) where cost may exceed benefit
  • Sites with primarily single-region traffic

Should I Enable Argo?

Your Situation Recommendation
Global production app, >1TB/month traffic ✅ Enable - likely ROI positive
Enterprise plan, latency-critical APIs ✅ Enable - performance matters
Regional site, <100GB/month traffic ⚠️ Evaluate - cost may not justify
Development/staging environment ❌ Disable - use in production only
Not yet configured billing ❌ Configure billing first

Reading Order by Task

Your Goal Start With Then Read
Enable Argo for first time Quick Start above → configuration.md gotchas.md
Use TypeScript/Python SDK api.md patterns.md
Terraform/IaC setup configuration.md -
Enable for Spectrum TCP app patterns.md → Spectrum section api.md
Troubleshoot enablement issue gotchas.md api.md
Manage billing/usage patterns.md → Billing section gotchas.md

In This Reference

  • api.md - API endpoints, SDK methods, error handling, Python/TypeScript examples
  • configuration.md - Terraform setup, environment config, billing configuration
  • patterns.md - Tiered Cache integration, Spectrum TCP apps, billing management, validation patterns
  • gotchas.md - Common errors, permission issues, limits, best practices

See Also

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.