Hono API Scaffolder (Cloudflare Workers)
Scaffolds Hono route files, middleware, Zod validation, typed bindings and API docs for an existing Cloudflare Workers project.
Dev & CodingIntermediate★ 1,018⑂ 102AI score 9/10Last updated: Jul 2, 2026
What it does
Adds a structured Hono API layer to a Cloudflare Workers project that already exists.
- Generates one route file per resource (
src/routes/users.ts,posts.ts, ...) - Adds auth middleware, CORS, and a standard JSON error handler
- Defines the
Envinterface for D1, KV, R2 and secret bindings - Validates request bodies with
@hono/zod-validator - Wires every route group into
src/index.tsplus a health check - Produces an
API_ENDPOINTS.mdreference document - Shows end-to-end RPC type safety with the
hcHono client
Includes a sizing table for when to use a single file vs. route modules vs. shared middleware.
Who it's for
- Backend/fullstack developers building APIs on Cloudflare Workers with Hono
- Teams that want type-safe D1/KV/R2 access
- Projects that need API documentation kept in sync with the code
- Anyone who just bootstrapped a project with
cloudflare-worker-builderorvite-flare-starter
Examples
- "Create CRUD endpoints for users and posts" → resource route files, Zod schemas, and mounting in index.ts.
- "Protect /api/admin routes with a Bearer token middleware" → generates and applies
requireAuth. - "Document all current endpoints" → writes
API_ENDPOINTS.mdwith method, auth, body and response codes.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/jezweb/claude-skills/HEAD/plugins/cloudflare/skills/hono-api-scaffolder/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the plugins/cloudflare/skills/hono-api-scaffolder folder from the GitHub repo jezweb/claude-skills into my ~/.claude/skills/hono-api-scaffolder/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/jezweb/claude-skills.git /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/plugins/cloudflare/skills/hono-api-scaffolder ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/jezweb/claude-skills.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy just this skill:
cp -r claude-skills/plugins/cloudflare/skills/hono-api-scaffolder ~/.claude/skills/ - Verify the
assets/andreferences/subfolders came along. - Restart Claude Code, open your existing Cloudflare Workers project, and ask it to "scaffold Hono API routes".
- Install the runtime dependencies:
pnpm add hono @hono/zod-validator zod
View source on GitHub ↗License: MIT