hono
hono
What it does
- Write handlers inline in route definitions for proper type inference of path params.
- Use app.route() to organize large apps by feature, not Rails-style controllers.
- Use createFactory() to share Env type across app, middleware, and handlers.
- Use c.set()/c.get() to pass data between middleware and handlers.
- Chain validators for multiple request parts (param + query + json).
- Export app type for RPC: export type AppType = typeof routes
- Use app.request() for testing — no server startup needed.
Requirements & configuration
- const token = c.req.header('Authorization')
- if (!token) return c.json({ error: 'Unauthorized' }, 401)
- // Create middleware (Env type is inherited, no need to pass generics)
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
hono FAQ
What does the hono skill do?
Use when building Hono web applications or when the user asks about Hono APIs, routing, middleware, JSX, validation, testing, or streaming. TRIGGER when code imports from 'hono' or 'hono/*', or user mentions Hono. Use `npx hono request` to test endpoints. Write handlers inline in route definitions for proper type inference of path params. Use app.route() to organize large apps by feature, not Rails-style controllers.
What does hono require?
const token = c.req.header('Authorization') if (!token) return c.json({ error: 'Unauthorized' }, 401) // Create middleware (Env type is inherited, no need to pass generics)
How do I install hono?
Run: npx -y skills add https://github.com/yusukebe/hono-skill --skill hono --agent claude-code — the source lives at github.com/yusukebe/hono-skill.
Maintain hono?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/yusukebe-hono-skill-hono?ref=badge) npx agentictools info skills/yusukebe-hono-skill-hono The second line is the CLI lookup for this page — handy in READMEs and docs.