cloudflare-worker-base

Automate Cloudflare Workers project setup with Hono, Vite, and Wrangler.

54|Updated Nov 19, 2025
One-click install
npx skills add https://github.com/dennislee928/Ethic-Latex --skill cloudflare-worker-base-dennislee928
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-worker-base
Source: https://github.com/dennislee928/Ethic-Latex/tree/main/.claude/skills/cloudflare-worker-base
Command: npx skills add https://github.com/dennislee928/Ethic-Latex --skill cloudflare-worker-base-dennislee928

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation and deployment of robust Cloudflare Workers projects, preventing common errors and saving significant development time.

Core Features & Use Cases

  • Production-Ready Setup: Installs Hono, Vite, and Wrangler with best practices.
  • Error Prevention: Avoids 10+ documented issues like export syntax errors, routing conflicts, and Vite compatibility problems.
  • Auto-Provisioning: Simplifies resource creation (D1, KV, R2) with Wrangler.
  • Use Case: Quickly scaffold a new Cloudflare Worker project that includes API routing with Hono, frontend asset serving, and reliable deployment configurations, avoiding common pitfalls from the start.

Quick Start

Use the cloudflare-worker-base skill to create a new Cloudflare Worker project named 'my-api'.

Frequently Asked Questions about cloudflare-worker-base

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

FAQPage Schema
How do I set up a Cloudflare Workers project with Hono and Vite?

Setting up a Cloudflare Workers project with Hono and Vite involves installing the frameworks with best practices. This skill automates that configuration, scaffolding a production-ready environment that avoids common Vite compatibility problems and export syntax errors.

Why does my Cloudflare Worker deployment fail with export syntax errors?

Cloudflare Worker deployment export syntax errors often occur due to misconfigured Wrangler settings or Vite compatibility problems. This skill addresses these documented issues directly, preventing routing conflicts and syntax errors during automated project setup.

Can I auto-provision D1, KV, and R2 resources when deploying Cloudflare Workers?

Yes, you can auto-provision D1, KV, and R2 resources when deploying Cloudflare Workers. This skill simplifies resource creation by automating Wrangler configuration, allowing you to generate and bind these storage resources without manual dashboard intervention.

What is the best way to serve static assets with Hono on Cloudflare Workers?

The best way to serve static assets with Hono on Cloudflare Workers is to use Vite for frontend asset bundling. This skill prevents common static asset routing conflicts, ensuring your API routes and frontend assets are served reliably together.

Does Vite work with Wrangler for serverless deployment without configuration conflicts?

Vite works with Wrangler for serverless deployment, but compatibility problems and routing conflicts frequently arise. This skill bypasses these issues by applying documented best practices, ensuring Vite and Wrangler integrate smoothly for Cloudflare Workers.