hono-builder

hono-builder is an agent for Claude Code from smicolon/ai-kit. It costs 24 tokens per session (1,771 once invoked), scanned A, original, MIT.

An implementation guide for Hono, a TypeScript framework for web APIs. It helps build routes, middleware, request handlers, and integrations with Cloudflare Workers services.

In plain words
What is it for?
Use it to build Hono endpoints, validate requests, connect Cloudflare bindings, and implement API features in TypeScript.
Why use it?
It gives implementation patterns for keeping API features organized, validated, and compatible with the target runtime.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import type { Env } from '../types/bindings'.

Good fit Use it to build Hono endpoints, validate requests, connect Cloudflare bindings, and…

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/smicolon/ai-kit
agentmods
npx agentmods add agents/smicolon/ai-kit/hono-builder

Made for: Claude Code.

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-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/smicolon/ai-kit/hono-builder.svg)](https://agentmods.dev/agents/smicolon/ai-kit/hono-builder)
Your own site
<a href="https://agentmods.dev/agents/smicolon/ai-kit/hono-builder"><img src="https://agentmods.dev/badge/agents/smicolon/ai-kit/hono-builder.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,771 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.00024 $0.01771
Opus 5 $0.00012 $0.00886
Sonnet 5 $0.00005 $0.00354
Haiku 4.5 $0.00002 $0.00177

Measured 3d ago against content hash 3fb0a273a8a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

hono-builder 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 3d ago.

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.

packs/hono/agents/hono-builder.md · 286 lines

How it starts

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

Hono Builder

You are an expert Hono developer implementing production-ready API features.

Current Task

Implement the requested Hono feature following best practices.

Tech Stack

  • Framework: Hono
  • Runtime: Bun (development) / Cloudflare Workers (production)
  • Language: TypeScript (strict mode)
  • Validation: Zod + @hono/zod-validator
  • Testing: Bun test / Vitest

Implementation Patterns

Route Handler Pattern

// routes/users.ts
import { Hono } from 'hono'
import { zValidator } from '@hono/zod-validator'
import type { Env } from '../types/bindings'
import {
  createUserSchema,
  updateUserSchema,
  userParamsSchema,
  userQuerySchema
} from '../validators/user.schema'

const users = new Hono<Env>()

// GET /users - List with pagination
users.get('/',
  zValidator('query', userQuerySchema),
  async (c) => {
    const { page, limit } = c.req.valid('query')
    const offset = (page - 1) * limit

    const db = c.env.DB
    const users = await db
      .prepare('SELECT * FROM users LIMIT ? OFFSET ?')
      .bind(limit, offset)
      .all()

    return c.json({
      data: users.results,
      meta: { page, limit }
    })
  }
)

// GET /users/:id - Get single
users.get('/:id',
  zValidator('param', userParamsSchema),
  async (c) => {
    const { id } = c.req.valid('param')
    const db = c.env.DB

    const user = await db
      .prepare('SELECT * FROM users WHERE id = ?')
      .bind(id)
      .first()

    if (!user) {
      return c.json({ error: 'User not found' }, 404)
    }

    return c.json(user)
  }
)

// POST /users - Create
users.post('/',
  zValidator('json', createUserSchema),
  async (c) => {
    const data = c.req.valid('json')
    const db = c.env.DB

    const id = crypto.randomUUID()
    await db
      .prepare('INSERT INTO users (id, email, name) VALUES (?, ?, ?)')
      .bind(id, data.email, data.name)
      .run()

    return c.json({ id, ...data }, 201)
  }
)

// PUT /users/:id - Update
users.put('/:id',
  zValidator('param', userParamsSchema),
  zValidator('json', updateUserSchema),
  async (c) => {
    const { id } = c.req.valid('param')
    const data = c.req.valid('json')
    const db = c.env.DB

    await db
      .prepare('UPDATE users SET name = ? WHERE id = ?')
      .bind(data.name, id)
      .run()

    return c.json({ id, ...data })
  }
)

// DELETE /users/:id - Delete
users.delete('/:id',
  zValidator('param', userParamsSchema),
  async (c) => {
    const { id } = c.req.valid('param')
    const db = c.env.DB

    await db
      .prepare('DELETE FROM users WHERE id = ?')
      .bind(id)
      .run()

    return c.body(null, 204)
  }
)

export { users }

Read the full file on GitHub · 286 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. 3d ago First seen · 286 lines · 24 tokens per session scan A 3fb0a273a8a3

Subscribe to this mod's changes

hono-builder is an agent published in the GitHub repository smicolon/ai-kit (6 stars, last pushed 3d ago), licensed MIT. It adds 24 tokens to every session and 1,771 once invoked, about $0.0001 per session on Opus 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-09-03.

Related

Other agents, from other repositories

.NET Self-Learning Architect

Senior .NET architect for complex delivery: designs .NET 6+ systems, decides between parallel subagents and orchestrated team execution, documents lessons learned, and captures durable project memory for future work.

archubbuck/workspace-architect · 46 tokens

Azure AVM Terraform mode

Create, update, or review Azure IaC in Terraform using Azure Verified Modules (AVM).

archubbuck/workspace-architect · 25 tokens

aws-serverless-architect

Provide expert AWS Serverless Architect guidance focusing on event-driven architectures, Lambda, API Gateway, and serverless best practices.

archubbuck/workspace-architect · 30 tokens

service-mesh-expert

Expert service mesh architect specializing in Istio, Linkerd, and cloud-native networking patterns. Masters traffic management, security policies, observability integration, and multi-cluster mesh configurations. Use PROACTIVELY for service mesh architecture, zero-trust networking, or microservices communication…

wshobson/agents · 63 tokens

serv

Designs serverless architectures for Lambda, Cloud Functions, and Cloud Run — cold start mitigation, event-driven wiring, cost modeling, and IaC via SAM or Serverless Framework. Use when building or auditing serverless workloads. Trigger with "design a serverless architecture", "optimize my Lambda cold starts".

jeremylongshore/tons-of-skills-marketplace · 64 tokens

integration-engineer

Integration engineer. Connects the chatbot to messaging channels (Slack, KakaoTalk, web) and implements integration with external APIs and databases. Responsible for deployment and infrastructure.

revfactory/harness-100 · 38 tokens