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.

referencesnetwork-interconnectpatterns.md

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

CNI Patterns

See README.md for overview.

High Availability

Critical: Design for resilience from day one.

Requirements:

  • Device-level diversity (separate hardware)
  • Backup Internet connectivity (no SLA on CNI)
  • Network-resilient locations preferred
  • Regular failover testing

Architecture:

Your Network A ──10G CNI v2──> CF CCR Device 1
                                     │
Your Network B ──10G CNI v2──> CF CCR Device 2
                                     │
                            CF Global Network (AS13335)

Capacity Planning:

  • Plan across all links
  • Account for failover scenarios
  • Your responsibility

Pattern: Magic Transit + CNI v2

Use Case: DDoS protection, private connectivity, no GRE overhead.

// 1. Create interconnect
const ic = await client.networkInterconnects.interconnects.create({
  account_id: id,
  type: 'direct',
  facility: 'EWR1',
  speed: '10G',
  name: 'magic-transit-primary',
});

// 2. Poll until active
const status = await pollUntilActive(id, ic.id);

// 3. Configure Magic Transit tunnel via Dashboard/API

Benefits: 1500 MTU both ways, simplified routing.

Pattern: Multi-Cloud Hybrid

Use Case: AWS/GCP workloads with Cloudflare.

AWS Direct Connect:

// 1. Order Direct Connect in AWS Console
// 2. Get LOA + VLAN from AWS
// 3. Send to CF account team (no API)
// 4. Configure static routes in Magic WAN

await configureStaticRoutes(id, {
  prefix: '10.0.0.0/8',
  nexthop: 'aws-direct-connect',
});

GCP Cloud Interconnect:

1. Get VLAN attachment pairing key from GCP Console
2. Create via Dashboard: Interconnects → Create → Cloud Interconnect → Google
   - Enter pairing key, name, MTU, speed
3. Configure static routes in Magic WAN (BGP routes from GCP ignored)
4. Configure custom learned routes in GCP Cloud Router

Note: Dashboard-only. No API/SDK support yet.

Pattern: Multi-Location HA

Use Case: 99.99%+ uptime.

// Primary (NY)
const primary = await client.networkInterconnects.interconnects.create({
  account_id: id,
  type: 'direct',
  facility: 'EWR1',
  speed: '10G',
  name: 'primary-ewr1',
});

// Secondary (NY, different hardware)
const secondary = await client.networkInterconnects.interconnects.create({
  account_id: id,
  type: 'direct',
  facility: 'EWR2',
  speed: '10G',
  name: 'secondary-ewr2',
});

// Tertiary (LA, different geography)
const tertiary = await client.networkInterconnects.interconnects.create({
  account_id: id,
  type: 'partner',
  facility: 'LAX1',
  speed: '10G',
  name: 'tertiary-lax1',
});

// BGP local preferences:
// Primary: 200
// Secondary: 150
// Tertiary: 100
// Internet: Last resort

Pattern: Partner Interconnect (Equinix)

Use Case: Quick deployment, no colocation.

Setup:

  1. Order virtual circuit in Equinix Fabric Portal
  2. Select Cloudflare as destination
  3. Choose facility
  4. Send details to CF account team
  5. CF accepts in portal
  6. Configure BGP

No API automation – partner portals managed separately.

Failover & Security

Failover Best Practices:

  • Use BGP local preferences for priority
  • Configure BFD for fast detection (v1)
  • Test regularly with traffic shift
  • Document runbooks

Security:

  • BGP password authentication
  • BGP route filtering
  • Monitor unexpected routes
  • Magic Firewall for DDoS/threats
  • Minimum API token permissions
  • Rotate credentials periodically

Decision Matrix

Requirement Recommended
Collocated with CF Direct
Not collocated Partner
AWS/GCP workloads Cloud
1500 MTU both ways v2
VLAN tagging v1
Public peering v1
Simplest config v2
BFD fast failover v1
LACP bundling v1

Resources

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.