jezweb avatar

Cloudflare Worker Builder

Scaffolds Cloudflare Workers projects with Hono routing, the Vite plugin, and Static Assets, ready to deploy.

CCM score
66 of 100
skills.sh installs
1.4K
GitHub stars
1.1K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full flow: project brief, scaffold via npm create cloudflare, bindings setup, then local dev and deploy
  • Includes asset templates for wrangler.jsonc, vite.config.ts, src/index.ts, package.json, tsconfig.json, and public/index.html
  • Enforces run_worker_first: ["/api/*"] so SPA fallback does not return index.html in place of API JSON, and the export default app syntax
  • Designed for developers adding D1, R2, KV, or Queues bindings and troubleshooting Worker export, routing, HMR, or deployment failures

Install

$ npx -y skills add jezweb/claude-skills --skill cloudflare-worker-builder -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Cloudflare Worker Builder

Scaffold a working Cloudflare Worker project from a brief description. Produces a deployable project with Hono routing, Vite dev server, and Static Assets.

Workflow

Step 1: Understand the Project

Ask about the project to choose the right bindings and structure:

  • What does the app do? (API only, SPA + API, landing page)
  • What data storage? (D1 database, R2 files, KV cache, none)
  • Auth needed? (Clerk, better-auth, none)
  • Custom domain or workers.dev subdomain?

A brief like "todo app with database" is enough to proceed.

Step 2: Scaffold the Project

npm create cloudflare@latest my-worker -- --type hello-world --ts --git --deploy false --framework none
cd my-worker
npm install hono
npm install -D @cloudflare/vite-plugin vite

Copy and customise the asset files from this skill's assets/ directory:

  • wrangler.jsonc — Worker configuration
  • vite.config.ts — Vite + Cloudflare plugin
  • src/index.ts — Hono app with Static Assets fallback
  • package.json — Scripts and dependencies
  • tsconfig.json — TypeScript config
  • public/index.html — SPA entry point

Step 3: Configure Bindings

Details

Repository
github.com/jezweb/claude-skills
Categories
Backend & APIs, Frontend & UI Code, DevOps & Cloud
First seen
Apr 16, 2026

More from jezweb/claude-skills

All 64

Similar to Cloudflare Worker Builder

More Backend & APIs