/xonovex-typescript:hono-guidefrom xonovex-typescript
Provides coding guidelines for building typed Hono 4.0+ API servers in TypeScript, covering validation, middleware, WebSockets, error handling, and security.
Ships in xonovex-typescript. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build typed Hono APIs with explicit validation, middleware order, and error responses.
c.req.valid boundary; schema design in zod-guide, see references/validation-type-safety.mdsome()/every()/except(), see references/middleware-patterns.md, references/middleware-combine.mdthis binding, see references/websocket-support.mdapplication/problem+json, see references/error-handling.mdsecureHeaders() for security headers, see references/security-middleware.mdenv(c) for environment, getRuntimeKey() for detection, see references/platform-runtime.mdimport {Hono} from "hono";
import {secureHeaders} from "hono/secure-headers";
export function createApp() {
const app = new Hono();
app.use("*", secureHeaders());
app.route("/api/v1", v1Router);
return app;
}
c.req.valid('json') is typed by inference only when zValidator is chained inline on the route; an imported base-Context controller sees any, so cast there, but that cast is unchecked and can hide schema driftenv(c) is the portable way to read env vars across runtimes: process.env works on Node but not Workers/Denothis from the closing object: assigning the handler to a variable loses the bindingSOURCES.md (opens in a new tab)eval-queries.json (opens in a new tab)evals.json (opens in a new tab)moon.yml (opens in a new tab)references/application-structure.md (opens in a new tab)references/context-storage.md (opens in a new tab)references/cookie-handling.md (opens in a new tab)references/error-handling.md (opens in a new tab)references/middleware-combine.md (opens in a new tab)references/middleware-patterns.md (opens in a new tab)references/platform-runtime.md (opens in a new tab)references/security-middleware.md (opens in a new tab)references/validation-type-safety.md (opens in a new tab)references/websocket-support.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub xonovex/platform --plugin xonovex-typescriptOther plugins' skills for the same job
9 skills in this plugin
/astro-guideUse when editing or scaffolding Astro sites with islands architecture. Triggers on `.astro` files, `astro:content` imports, `Astro.props`, `client:` hydration directives, content-collection schemas, and on prompts about pages, layouts, MDX, content collections, image optimization, view transitions, or accessibility in an Astro project, even when the user doesn't say 'Astro'./hono-opinionated-guideUse when editing Hono APIs that follow the opinionated style: inline OpenAPI handlers, explicit router selection (LinearRouter / RegExpRouter), sync handlers where possible, bodyLimit middleware. A focused overlay that covers only house-style decisions, not generic Hono usage. Triggers on `.ts` files with `OpenAPIHono`, inline route schemas, and prompts about router perf, payload limits, or sync-vs-async handlers, even when the user doesn't say 'opinionated'./npm-guideUse when publishing an npm package or checking that one is ready to publish. Triggers on prompts about npm publish, publish-readiness or package.json validation (name/version/license/repository/files/publishConfig/private), idempotent publishing (skip if the version already exists), provenance and access flags, dist-tags, or platform-specific (os/cpu/libc) native-binary packages, even when the user doesn't say 'npm'.