cloudflare-expert
Cloudflare Expert provides in-depth knowledge for building serverless applications on Cloudflare's edge platform. Learn to deploy code globally with Workers, optimize caching and CDN performance, implement security features like WAF and DDoS protection, and manage distributed state using Workers KV and Durable Objects.
Cloudflare Expert helps you build and deploy serverless edge computing applications using Workers, CDN, and security services.
AI-generated summary based on this skill's SKILL.md
Install
personamanagmentlayer/pcl/cloudflare-expert · repository language: TypeScript
git clone https://github.com/personamanagmentlayer/pcl
cp -r pcl/stdlib/cloud/cloudflare-expert ~/.claude/skills/cloudflare-expertFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I build serverless apps with Cloudflare Workers?
Cloudflare Expert teaches you to build serverless applications by deploying JavaScript or TypeScript code to Cloudflare's global edge network. Workers execute your code closer to users, reducing latency. Start with the Wrangler CLI to scaffold projects, write request handlers, and deploy instantly. Cloudflare Expert covers routing, middleware patterns, and integrating with Workers KV for persistent storage and Durable Objects for stateful logic.
What are Durable Objects and how do they enable stateful computing?
Cloudflare Expert explains that Durable Objects create stateful, real-time applications on the edge by providing isolated, persistent storage tied to unique IDs. Use them for WebSocket chat, collaborative editing, rate limiting counters, and session management. Each Durable Object instance maintains state across requests and coordinates with other objects, enabling complex distributed applications without traditional databases.
How can Cloudflare Workers optimize content delivery and caching?
Cloudflare Expert covers caching strategies including cache-first, network-first, and stale-while-revalidate patterns. Use Workers KV for global key-value storage, set appropriate Cache-Control headers, and leverage Cloudflare's CDN to serve content from edge locations. Implement geolocation routing to serve region-specific content, purge cache on demand, and monitor cache hit ratios for performance gains.
How do I implement security, rate limiting, and request handling in Workers?
Cloudflare Expert teaches security best practices including JWT authentication, CORS configuration, and request validation. Implement rate limiting using Durable Objects as distributed counters or Workers KV for simple thresholds. Add WAF rules, DDoS protection, and IP filtering. Use HTMLRewriter to sanitize responses, validate headers, and block malicious requests before they reach your origin.
What is the Wrangler CLI and how do I use it for deployment?
Cloudflare Expert covers Wrangler, the official CLI for developing and deploying Workers. Use `wrangler init` to scaffold projects, `wrangler dev` for local testing, and `wrangler publish` to deploy globally. Configure bindings for KV, Durable Objects, and environment variables in `wrangler.toml`. Manage multiple environments, preview deployments, and monitor logs through Wrangler.
How can I reduce latency using edge computing with Cloudflare?
Cloudflare Expert demonstrates latency reduction by running compute at the edge instead of centralized servers. Deploy Workers globally to execute logic near users, cache responses at edge locations, and use Durable Objects for distributed state. Implement A/B testing, personalization, and load balancing at the edge. Monitor performance with analytics and optimize cold start times through code splitting and efficient dependencies.
SKILL.md
rendered from the published skill — quoted content, verbatim
Cloudflare Expert
Expert guidance for Cloudflare Workers, edge computing, CDN optimization, and Cloudflare security services.
Core Concepts
Cloudflare Services
- Cloudflare Workers (serverless edge computing)
- CDN and caching
- DDoS protection
- Web Application Firewall (WAF)
- DNS management
- Load balancing
- Workers KV (key-value storage)
- Durable Objects
Edge Computing
- Deploy code globally
- Reduce latency
- Process at the edge
- Distributed state
- Real-time applications
Developer Tools
- Wrangler CLI
- Workers Playground
- Edge APIs
- Analytics and logs
Cloudflare Workers
```javascript // Basic Worker export default { async fetch(request, env, ctx) { return new Response('Hello from Cloudflare Workers!', { headers: { 'Content-Type': 'text/plain' } }); } };
// Advanced routing export default { async fetch(request, env, ctx) { const url = new
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
stdlib/cloud/cloudflare-expert/SKILL.md