New advertisers: 50% off your first month with code FIRSTMONTHSee slots
jezweb avatar

Hono Api Scaffolder

Scaffolds Hono API routes for Cloudflare Workers with typed bindings, Zod validation, and endpoint docs.

skills.sh installs
1.6K
GitHub stars
1.1K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the full API build-out: resource route files, shared middleware, route wiring, and typed Env bindings
  • Includes route, middleware, and error-handler templates plus an API_ENDPOINTS.md generator with a per-endpoint format
  • Enforces JSON error responses on API routes and Zod validation on request bodies via @hono/zod-validator
  • Designed for adding routes to projects already created with cloudflare-worker-builder or vite-flare-starter

Install

$ npx -y skills add jezweb/claude-skills --skill hono-api-scaffolder -y

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

Files

Hono API Scaffolder

Add structured API routes to an existing Cloudflare Workers project. This skill runs AFTER the project shell exists (via cloudflare-worker-builder or vite-flare-starter) and produces route files, middleware, and endpoint documentation.

Workflow

Step 1: Gather Endpoints

Determine what the API needs. Either ask the user or infer from the project description. Group endpoints by resource:

Users:    GET /api/users, GET /api/users/:id, POST /api/users, PUT /api/users/:id, DELETE /api/users/:id
Posts:    GET /api/posts, GET /api/posts/:id, POST /api/posts, PUT /api/posts/:id
Auth:     POST /api/auth/login, POST /api/auth/logout, GET /api/auth/me

Step 2: Create Route Files

One file per resource group. Use the template from assets/route-template.ts:

// src/routes/users.ts
import { Hono } from 'hono'
import { zValidator } from '@hono/zod-validator'
import { z } from 'zod'
import type { Env } from '../types'

const app = new Hono<{ Bindings: Env }>()

Details

Repository
github.com/jezweb/claude-skills
Categories
Backend & APIs, Go
First seen
Apr 16, 2026

More from jezweb/claude-skills

All 64

Similar to Hono Api Scaffolder

More Backend & APIs