Skip to content

Type-safe request validation for Hono using Zod, TypeBox, Valibot, or any Standard Schema library.

CCM score
57 of 100
skills.sh installs
438
GitHub stars
79
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers validation middleware for JSON bodies, forms, query params, headers, cookies, and path params
  • Includes Zod patterns for coercion, defaults, transformations, refinements, and discriminated unions
  • Shows custom error responses and chaining multiple validators on a single route
  • Designed for Hono apps that need inferred handler types from request schemas

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill hono-validation -y

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

Files

Hono Validation Patterns

Overview

Hono provides a lightweight built-in validator and integrates seamlessly with popular validation libraries like Zod, TypeBox, and Valibot. Validation happens as middleware, providing type-safe access to validated data in handlers.

Key Features:

  • Built-in lightweight validator
  • First-class Zod integration via @hono/zod-validator
  • Standard Schema support (works with any validation library)
  • Type inference from validation schemas
  • Validates: JSON, forms, query params, headers, cookies, path params

When to Use This Skill

Use Hono validation when:

  • Validating API request bodies (JSON, form data)
  • Ensuring query parameters meet requirements
  • Validating authentication headers
  • Type-safe path parameter parsing
  • Cookie validation

Installation

# Zod (recommended)
npm install @hono/zod-validator zod

# TypeBox
npm install @hono/typebox-validator @sinclair/typebox

# Valibot
npm install @hono/valibot-validator valibot

# Standard Schema (any compatible library)
npm install @hono/standard-validator

Zod Validation (Recommended)

Basic Usage

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Category
Backend & APIs
First seen
Jun 3, 2026

Questions

What does the hono-validation skill do?

hono-validation adds type-safe request validation to Hono apps using Zod, TypeBox, or Valibot. It checks JSON bodies, form data, query parameters, headers, cookies, and path parameters before a handler runs, so the handler receives typed data.

How do I install hono-validation?

Run npx -y skills add bobmatnyc/claude-mpm-skills --skill hono-validation -y in your project. After that, hono-validation lets the agent write Zod, TypeBox, or Valibot validators as Hono middleware.

Which validation libraries does hono-validation support?

hono-validation covers Zod, which it recommends, along with TypeBox and Valibot, plus a built-in validator for simple cases. It also supports any library that implements the Standard Schema spec.

Where does hono-validation fit in the Backend and APIs category?

hono-validation is one of the skills in the Backend and APIs category on Claude Marketplaces. Its focus on validating Hono request inputs with typed schemas sets it apart from the database and platform skills listed beside it.

More from bobmatnyc/claude-mpm-skills

All 154

Similar to Hono Validation

More Backend & APIs