cloud-architecture-cloudflare

Provides Cloudflare edge architecture guidance covering Workers, R2, D1, KV, Durable Objects, Queues, AI, Hyperdrive.

1|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/eric-sabe/engsys --skill cloud-architecture-cloudflare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloud-architecture-cloudflare
Source: https://github.com/eric-sabe/engsys/tree/main/stacks/cloud/cloudflare/skills/cloud-architecture-cloudflare
Command: npx skills add https://github.com/eric-sabe/engsys --skill cloud-architecture-cloudflare

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building on Cloudflare's unique edge platform requires specialized knowledge of its primitives, limits, and billing models that differ sharply from traditional cloud providers. Without this expertise, teams regularly hit unexpected CPU limits, consistency bugs, cost overruns, and architectural dead ends when designing or scaling Cloudflare-backed systems.

Core Features & Use Cases

  • Comprehensive primitive guidance: Detailed breakdowns of all core Cloudflare edge services (Workers, R2, D1, KV, Durable Objects, Queues, Workers AI, Hyperdrive) including their consistency models, hard limits, and ideal use cases.
  • Pitfall prevention: Explicit documentation of common failure modes (e.g., Exceeded CPU errors, KV stale reads, Durable Object hot bottlenecks) with clear steps to diagnose and avoid them.
  • Cost optimization insights: Cloudflare-specific billing guidance (no R2 egress, CPU-time billing for Workers, D1 rows-based billing) to help teams minimize spend on edge workloads.
  • Use case example: A team building a global real-time collaboration app can use this skill to select Durable Objects for WebSocket coordination instead of KV to avoid stale state, and pair Workers with Smart Placement and Hyperdrive to reduce origin latency for their Postgres backend.

Quick Start

Use the cloud-architecture-cloudflare skill to design a scalable, cost-effective Cloudflare edge architecture for your new global SaaS application, including guidance on selecting the right storage primitives and avoiding common platform limit pitfalls.

Frequently Asked Questions about cloud-architecture-cloudflare

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between Cloudflare R2, D1, KV, and Durable Objects for my edge architecture?

Choosing between Cloudflare R2, D1, KV, and Durable Objects depends on your consistency and latency requirements. This skill provides detailed breakdowns of these edge primitives, including their consistency models and ideal use cases, to guide your selection.

What causes Exceeded CPU errors in Cloudflare Workers and how can I avoid them?

Exceeded CPU errors in Cloudflare Workers stem from hitting hard platform CPU-time billing limits. This skill provides explicit documentation of this failure mode along with actionable steps to diagnose the issue and optimize your edge workloads to prevent it.

How do I design a global real-time collaboration app using Cloudflare edge primitives?

Designing a global real-time collaboration app on Cloudflare involves using Durable Objects for WebSocket coordination to avoid stale state. This skill guides pairing Workers with Smart Placement and Hyperdrive to reduce Postgres origin latency.

Why am I getting stale reads from Cloudflare KV and when should I use Durable Objects instead?

Stale reads from Cloudflare KV occur due to its eventual consistency model, making Durable Objects necessary for strong consistency. This skill explains these consistency models and failure modes to prevent architectural dead ends.

How can I optimize Cloudflare Workers and R2 billing to prevent cost overruns?

Optimize Cloudflare Workers and R2 billing by understanding platform-specific models like CPU-time billing and no R2 egress fees. This skill delivers cost optimization insights to help teams minimize spend on edge workloads and avoid overruns.

Can I use Cloudflare Hyperdrive to reduce latency for my existing Postgres backend?

Cloudflare Hyperdrive effectively reduces latency for existing Postgres backends when paired with edge Workers. This skill guides using Hyperdrive alongside Smart Placement to optimize origin database connections for global applications.