Hono API Scaffolder
Scaffolds Hono API routes, middleware, Zod validation and endpoint docs for Cloudflare Workers projects.
Web & APIIntermediate★ 1,034⑂ 105AI score 9/10Last updated: Sep 29, 2026
What it does
- Creates one route file per resource (
src/routes/users.ts,posts.ts,auth.ts) with CRUD handlers. - Adds request-body validation using Zod and
@hono/zod-validatorwith fully typedc.req.valid(). - Drops in auth (Bearer token) middleware, CORS setup, and a global JSON error handler.
- Defines a typed
Envinterface for D1, KV, R2 bindings and secrets, then mounts routes insrc/index.ts. - Generates
API_ENDPOINTS.mddocumenting auth, request body and response codes per endpoint. - Recommends file structure based on endpoint count and shows Hono RPC (
hc) for end-to-end typing.
Who it's for
- Backend/fullstack developers building APIs with Hono on Cloudflare Workers.
- Teams who already scaffolded a project with
cloudflare-worker-builderorvite-flare-starter. - Anyone whose Worker has outgrown a single
index.tsand needs structured routes plus docs.
Examples
- "Add REST endpoints for users, posts and auth" → three route files plus mounting code in index.ts.
- "Validate the email field on POST /api/users" → Zod schema, zValidator middleware, and a consistent 400 error shape.
- "Document the current API" → an
API_ENDPOINTS.mdlisting auth requirements, bodies 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/archive/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 archive/plugins/cloudflare/skills/hono-api-scaffolder folder from the GitHub repo jezweb/claude-skills into my ~/.claude/skills/jezweb-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/archive/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 - Make sure the skills folder exists:
mkdir -p ~/.claude/skills - Copy the skill in:
cp -r claude-skills/archive/plugins/cloudflare/skills/hono-api-scaffolder ~/.claude/skills/ - Verify with
ls ~/.claude/skills/hono-api-scaffolder— you should seeSKILL.md,assets/, andreferences/. - Restart Claude Code, open your existing Cloudflare Workers project, and ask it to "scaffold the Hono API routes".
- Install the runtime dependencies in your project:
pnpm add hono @hono/zod-validator zod
View source on GitHub ↗License: MIT