cloudflare-workers

Build and deploy edge functions with Cloudflare Workers and the Wrangler CLI.

46|4|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill cloudflare-workers-bagelhole
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-workers
Source: https://github.com/BagelHole/DevOps-Security-Agent-Skills/tree/main/infrastructure/cloudflare/cloudflare-workers
Command: npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill cloudflare-workers-bagelhole

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables developers to deploy and manage serverless JavaScript/TypeScript functions at the edge of Cloudflare's network, reducing latency and improving application performance.

Core Features & Use Cases

  • Global Edge Deployment: Run code close to your users worldwide.
  • API Development: Build fast, scalable APIs without managing servers.
  • Edge Middleware: Intercept and modify requests/responses before they hit your origin.
  • Cron Jobs: Schedule tasks to run at the edge.
  • Use Case: Create a dynamic API endpoint that serves personalized content based on user location, deployed globally with minimal latency.

Quick Start

Use the cloudflare-workers skill to deploy a new worker by running npm create cloudflare@latest my-worker and following the prompts.

Frequently Asked Questions about cloudflare-workers

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

FAQPage Schema
How do I deploy serverless JavaScript functions to the edge?

You can deploy serverless JavaScript functions to the edge by building and deploying them globally using Cloudflare Workers and the Wrangler CLI. This reduces latency by running code close to users worldwide.

Can I use TypeScript to build APIs with Cloudflare Workers?

Yes, you can use TypeScript to build APIs with Cloudflare Workers. The skill supports API development and edge middleware using JavaScript or TypeScript for fast, scalable endpoints without managing servers.

Does Cloudflare Workers support scheduled cron jobs at the edge?

Yes, Cloudflare Workers supports scheduled cron jobs at the edge. You can schedule tasks to run automatically on Cloudflare's edge network, enabling low-latency execution without managing external servers.

How do I intercept requests with edge middleware before they hit my origin?

You intercept requests with edge middleware by deploying functions to Cloudflare Workers. This allows you to modify requests and responses globally before they reach your origin server, improving application performance.

What is the best way to start a new Cloudflare Worker project?

The best way to start a new Cloudflare Worker project is running `npm create cloudflare@latest my-worker` and following the prompts. This sets up the foundational files needed for edge deployment.