hono-routing

hono-routing is a skill for Claude Code from secondsky/claude-skills. It costs 41 tokens per session (3,860 once invoked), scanned A, original, MIT.

A guide for building Hono web APIs with typed routes, middleware, request validation, and remote procedure calls (RPC), a way for code to call server functions. It covers TypeScript type inference and Zod or Valibot validation.

In plain words
What is it for?
Use it to create Hono endpoints, validate JSON or other request data, configure middleware, and troubleshoot type errors in Hono API code.
Why use it?
It helps prevent mismatches between incoming requests, validation rules, and handler code. It also addresses common middleware, validation-hook, and RPC errors.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the hono-routing plugin — 1 skill shipped together

Good fit Use it to create Hono endpoints, validate JSON or other request data, configure middleware, and troubleshoot type errors in Hono API code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/secondsky/claude-skills/hono-routing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add secondsky/claude-skills --skill hono-routing
Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Made for: Claude Code.

Or install hono-routing, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hono-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/secondsky/claude-skills/hono-routing/github.svg)](https://agentmods.dev/skills/secondsky/claude-skills/hono-routing)
Your own site
<a href="https://agentmods.dev/skills/secondsky/claude-skills/hono-routing"><img src="https://agentmods.dev/badge/skills/secondsky/claude-skills/hono-routing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hono-routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/secondsky/claude-skills/hono-routing"><img src="https://agentmods.dev/badge/skills/secondsky/claude-skills/hono-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,860 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.03860
Opus 5.5 $0.00016 $0.01544
Sonnet 5.5 $0.00008 $0.00772
Haiku 4.5 $0.00004 $0.00386

Measured 2d ago against content hash 5193d6de87b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hono-routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/check-versions.sh, templates/context-extension.ts, templates/error-handling.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/hono-routing/skills/hono-routing/SKILL.md · 509 lines

How it starts

The opening of the file, as written. The whole thing — 509 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hono Routing & Middleware

Status: Production Ready ✅ Last Updated: 2025-11-21 Dependencies: None (framework-agnostic) Latest Versions: [email protected], [email protected], [email protected]


Quick Start (5 Minutes)

Install

bun add [email protected]  # preferred
# or: bun add [email protected]

Why Hono:

  • Fast: Built on Web Standards, runs on any JavaScript runtime
  • Lightweight: ~10KB, no dependencies
  • Type-safe: Full TypeScript support with type inference
  • Flexible: Works on Cloudflare Workers, Deno, Bun, Node.js, Vercel

Basic App

import { Hono } from 'hono'

const app = new Hono()

app.get('/', (c) => {
  return c.json({ message: 'Hello Hono!' })
})

export default app

CRITICAL:

  • Use c.json(), c.text(), c.html() for responses
  • Return the response (don't use res.send() like Express)
  • Export app for runtime

Add Validation

bun add [email protected] @hono/[email protected]
import { zValidator } from '@hono/zod-validator'
import { z } from 'zod'

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 })
})

Critical Rules

Always Do

✅ Return responses from handlers (c.json, c.text, c.html, etc.)

✅ Use c.req.valid('source') after validation middleware to get typed data

✅ Export app for deployment (Cloudflare Workers, Bun, Deno, Node.js)

✅ Use validation middleware (zValidator, vValidator) for type-safe request data

✅ Call await next() in middleware to pass control to next handler

✅ Use HTTPException for expected errors (returns proper HTTP status)

✅ Use template tag validators (zValidator, vValidator) not hooks

✅ Define context types for custom variables (Hono<{ Variables: { ... } }>)

✅ Use sub-apps (app.route()) for organizing large APIs

✅ Type your RPC routes (export type AppType = typeof routes) for client

Read the full file on GitHub · 509 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 509 lines · 41 tokens per session scan A 5193d6de87b6

Subscribe to this mod's changes

hono-routing is a skill published in the GitHub repository secondsky/claude-skills (251 stars, last pushed 2d ago), licensed MIT. It adds 41 tokens to every session and 3,860 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.

Related

hono-routing compared with skills from other repositories

hono-routing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hono-routingsecondsky/claude-skillsSkill2512d agoMITA41Claude Code
imagegenopenai/codexSkill136ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill81k7d agoMITA200Claude Code, Codex
free-llm-apismnfst/awesome-free-llm-apisSkill14ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code