hayatosc/dotfiles/hono-best-practices

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Implement or review Hono routes, middleware, validation, and RPC typing. Use for Hono-specific behavior or inference issues, not generic TypeScript work.

Install

npx vskill@latest install hayatosc/dotfiles/hono-best-practices

SKILL.md

Hono Best Practices

Preserve the inference chain from route definitions to the RPC client and validate external input at runtime. Follow the repository's runtime, validator, and test setup.

Required Baseline

  • Keep the typed result of chained route definitions and export its type for RPC. Mount feature routers with app.route() rather than losing their inferred route types.
  • Prefer inline route handlers. Before extracting handlers, read routing.md and preserve path, validator, and middleware inference.
  • Type bindings and context variables with the app's Env; ensure middleware initializes variables before handlers use them.
  • Validate external input with the project's validator and consume the validated result. Set the matching Content-Type in JSON/form request tests.
  • Register middleware in the intended scope and order. Keep authentication and error handling intact when reorganizing routes.

Select the Relevant Reference

TaskReference
Route composition, handler extraction, or missing client routesrouting.md
Bindings, context variables, middleware scope or orderingcontext-and-middleware.md
Request validation and Content-Type pitfallsrequest-validation.md
Multiple validators, schema reuse, or OpenAPIvalidation-patterns.md
Sharing route types with a clientrpc-basics.md
RPC error types, custom fetch, or monorepo setuprpc-patterns.md
Error responses or request-level testserrors-and-testing.md

Read the reference that resolves the current question; these are independent routes, not a reading checklist. Check the installed version and official Hono docs when an API or runtime detail is uncertain.

Common Failure Signals

  • Missing RPC routes: check whether the exported value retains the chained route type.
  • Unknown context variables: check the Env generic and the middleware that initializes them.
  • Empty JSON or form bodies: check the request's Content-Type.
  • Weakened path parameter inference: check detached handlers and factory boundaries.

Complete the affected behavior and use the relevant project checks. For RPC changes, establish both server behavior and client type inference; do not introduce a new dependency or reshape unrelated routes merely to match an example.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hayatosc/dotfiles/hono-best-practices/badge)](https://verified-skill.com/skills/hayatosc/dotfiles/hono-best-practices)

Something wrong with this skill or its page? Tell us.