cf-workers

Generate Cloudflare Workers with routing, bindings, and TypeScript configuration.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sitharaj88/claude-skills --skill cf-workers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cf-workers
Source: https://github.com/sitharaj88/claude-skills/tree/main/skills/cf-workers
Command: npx skills add https://github.com/sitharaj88/claude-skills --skill cf-workers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @cloudflare/workers-types, typescript, vitest, wrangler, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the creation, configuration, and deployment of Cloudflare Workers, enabling efficient edge computing for various applications.

Core Features & Use Cases

  • Generate Worker Code: Creates production-ready Worker code in TypeScript using ES Modules or Service Worker syntax.
  • Configure Bindings: Sets up essential bindings like KV, R2, D1, Queues, Durable Objects, and AI.
  • Use Case: You need to build a fast, globally distributed API endpoint for your web application. This Skill can generate the necessary Cloudflare Worker code, configure routing, and set up a D1 database binding for data storage.

Quick Start

Generate a Cloudflare Worker with Hono framework and D1 database binding.

Frequently Asked Questions about cf-workers

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

FAQPage Schema
How do I create a Cloudflare Worker with Hono and D1 database bindings?

You can generate a Cloudflare Worker using TypeScript with Hono or itty-router frameworks, configure D1 bindings in wrangler.toml, and deploy serverless edge logic that integrates with Cloudflare services like KV, R2, and AI.

What types of Cloudflare Workers can I build for edge computing?

You can build fetch handlers, scheduled tasks, queue consumers, email workers, and Durable Objects in TypeScript. These worker types enable serverless edge computing with routing and bindings for Cloudflare services.

Can I use TypeScript with Cloudflare Workers and wrangler for deployment?

Yes, Cloudflare Workers support TypeScript natively with @cloudflare/workers-types. You configure projects via wrangler.toml, test using vitest, and deploy serverless edge logic using wrangler CLI commands.

How do I configure bindings like KV, R2, and Queues in a Cloudflare Worker?

Configure KV, R2, D1, Queues, Durable Objects, and AI bindings in your wrangler.toml file. The generated TypeScript Worker code accesses these Cloudflare services directly through environment bindings within the fetch handler context.

What is the best way to build a serverless API endpoint at the edge?

Using Cloudflare Workers with Hono or itty-router frameworks is an effective way to build serverless edge APIs. You generate TypeScript code, configure routing, set up D1 for data storage, and deploy globally using wrangler.

Does this Cloudflare Worker setup support scheduled tasks and Durable Objects?

Yes, the Cloudflare Workers setup supports scheduled tasks for cron execution and Durable Objects for stateful edge computing. You configure these worker types in wrangler.toml and implement their specific handler interfaces in TypeScript.