cloud-cloudflare-workers-dev

Scaffold Cloudflare Workers projects with wrangler.toml and optional D1, KV, R2 bindings.

7|3|Updated Nov 15, 2025
One-click install
npx skills add https://github.com/aRustyDev/ai --skill cloud-cloudflare-workers-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloud-cloudflare-workers-dev
Source: https://github.com/aRustyDev/ai/tree/main/components/skills/cloud-cloudflare-workers-dev
Command: npx skills add https://github.com/aRustyDev/ai --skill cloud-cloudflare-workers-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a guided approach to building Cloudflare Workers, including wrangler configuration, storage bindings, Durable Objects, and deployment workflows.

Core Features & Use Cases

  • Scaffolding & bindings: Initialize new worker projects with optional D1/KV/R2/Durable Objects
  • Deployment & CI: Wrangler-based deployment, secrets management, and GitHub Actions templates
  • Use Case: Spin up a new edge app with a KV store and a Durable Object, then deploy

Quick Start

Run the included init-worker.py script to scaffold a new Cloudflare Worker with desired bindings, then install dependencies and start the dev server with npm run dev.

Frequently Asked Questions about cloud-cloudflare-workers-dev

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

FAQPage Schema
How do I scaffold a new Cloudflare Worker project with wrangler?

Scaffolding a Cloudflare Worker initializes a project structure with wrangler.toml configuration, TypeScript entry points, package.json, and optional bindings for D1, KV, R2, and Durable Objects. Run the included init-worker.py script to generate the skeleton, then npm install and npm run dev to start the development server.

Can I set up KV, D1, and R2 bindings in a single Worker project?

Yes. This Skill configures multiple storage bindings simultaneously during project initialization. The scaffolding process generates wrangler.toml with KV namespace, D1 database, and R2 bucket bindings, plus TypeScript types for accessing each service from your Worker code.

What files does the Worker bootstrap script generate?

The bootstrap generates wrangler.toml, src/index.ts, package.json, tsconfig.json, and .gitignore. For projects with databases, it also creates migration files. All files are pre-configured for TypeScript development and include CI-ready GitHub Actions templates.

How do I configure Durable Objects in my Worker?

During scaffolding, specify Durable Objects as an optional binding. The Skill generates the wrangler.toml binding configuration and TypeScript entry points to interact with Durable Objects, enabling stateful serverless compute on Cloudflare's edge.

Can I deploy my Worker with secrets and environment-specific configuration?

Yes. The Skill provides multi-environment support and secrets management through wrangler. The generated project includes templates for managing environment variables and GitHub Actions workflows to automate wrangler-based deployment with secret handling.

Do I need to manually write wrangler.toml, or does the script handle it?

The init-worker.py script generates wrangler.toml automatically based on your project specification, including all selected bindings and multi-environment settings. You receive a production-ready configuration file without manual authoring.