Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By secondskyv3.12.0MITIn 1 marketplace
Builds type-safe Hono APIs with routing, middleware, request validation via Zod or Valibot, and typed RPC clients. Covers middleware type inference and validation hook errors that often trip up RPC setups.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
request-validation, valibot, rpc, type-safe-api, middleware, hono-routing, routing, web ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Status: Production Ready ✅ Last Updated: 2025-10-22 Production Tested: Used across Cloudflare Workers, Deno, Bun, and Node.js applications
Claude Code automatically discovers this skill when you mention:
This skill provides comprehensive knowledge for building type-safe APIs with Hono, focusing on routing patterns, middleware composition, request validation, RPC client/server patterns, error handling, and context management.
✅ Routing Patterns - Route parameters, query params, wildcards, route grouping ✅ Middleware Composition - Built-in middleware, custom middleware, chaining strategies ✅ Request Validation - Zod, Valibot, Typia, ArkType validators with custom error hooks ✅ Typed Routes (RPC) - Type-safe client/server communication with full type inference ✅ Error Handling - HTTPException, onError hooks, custom error responses ✅ Context Extension - c.set/c.get patterns, custom context types, type-safe variables
| Issue | Why It Happens | Source | How Skill Fixes It |
|---|---|---|---|
| RPC Type Inference Slow | Complex type instantiation from many routes | hono#guides/rpc | Use route variable pattern: const route = app.get(...) |
| Middleware Response Not Typed | RPC mode doesn't infer middleware responses | hono#2719 | Export specific route types for RPC client |
| Validation Hook Confusion | Multiple validator libraries, different hook patterns | Context7 research | Provides consistent patterns for all validators |
| HTTPException Misuse | Throwing errors without proper status/message | Official docs | Shows proper HTTPException patterns |
| Context Type Safety | c.set/c.get without proper typing | Official docs | Demonstrates type-safe context extension |
| Error After Next | Not checking c.error after middleware | Official docs | Shows proper error checking pattern |
| Query/Param Validation | Direct access without validation | Official docs | Always use c.req.valid() after validation |
| Middleware Order | Incorrect middleware execution order | Official docs | Explains middleware flow and chaining |
cloudflare-worker-base instead)cloudflare-nextjs or Next.js docs)cloudflare-d1, cloudflare-kv, etc.)clerk-auth or other auth skills)import { Hono } from 'hono'
import { zValidator } from '@hono/zod-validator'
import { z } from 'zod'
const app = new Hono()
// Route with validation
const schema = z.object({
name: z.string(),
age: z.number(),
})
app.post('/user', zValidator('json', schema), (c) => {
const data = c.req.valid('json')
return c.json({ success: true, data })
})
// Type-safe RPC export
export type AppType = typeof app
Result: Fully type-safe API with validation, ready for RPC client
Full instructions: See SKILL.md
| Package | Version | Status |
|---|---|---|
| hono | 4.12.12 | ✅ Latest stable |
| zod | 4.3.6 | ✅ Latest stable |
| valibot | 1.1.0 | ✅ Latest stable |
| @hono/zod-validator | 0.7.4 | ✅ Latest stable |
| @hono/valibot-validator | 0.6.1 | ✅ Latest stable |
| @hono/typia-validator | 0.1.2 | ✅ Latest stable |
| @hono/arktype-validator | 2.0.1 | ✅ Latest stable |
Prerequisites: None (framework-agnostic)
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub secondsky/claude-skills --plugin hono-routingPlugins from other owners that cover similar ground