/xonovex-typescript:hono-opinionated-guidefrom xonovex-typescript
Provides opinionated Hono API conventions: inline OpenAPI handlers, explicit router selection (LinearRouter/RegExpRouter), sync handlers where possible, and bodyLimit middleware. Layers on top of generic hono-guide.
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.
An overlay on hono-guide. Apply hono-guide for all generic Hono work: application structure, validation/type safety, middleware patterns and combination, error handling, cookies, security, WebSockets, context storage, platform runtimes. This skill adds only the opinionated decisions on top.
Foundation - Everything generic lives in hono-guide; this skill layers OpenAPI-first conventions on top
Async controllers - Remove unnecessary async from synchronous handlers, see references/controllers.md
OpenAPIHono hierarchy - Every router in the chain must be OpenAPIHono, see references/openapi-router-hierarchy.md
OpenAPI documentation - Use app.doc() for automatic spec generation, see references/openapi-spec-generation.md
Router selection - RegExpRouter for high-throughput persistent servers, see references/router-selection.md
Request limits - Use bodyLimit middleware to prevent DoS, see references/body-limit.md
import {OpenAPIHono} from "@hono/zod-openapi";
import {bodyLimit} from "hono/body-limit";
import {secureHeaders} from "hono/secure-headers";
export function createApp() {
const app = new OpenAPIHono();
app.use("*", secureHeaders());
app.use("*", bodyLimit({maxSize: 100 * 1024}));
app.route("/api/v1", v1Router);
app.doc("/openapi.json", {
openapi: "3.1.0",
info: {title: "API", version: "1.0.0"},
});
return app;
}
.route() runs the parent middleware firstSOURCES.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/body-limit.md (opens in a new tab)references/controllers.md (opens in a new tab)references/openapi-router-hierarchy.md (opens in a new tab)references/openapi-spec-generation.md (opens in a new tab)references/router-selection.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub xonovex/platform --plugin xonovex-typescript9 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-guideUse when editing or scaffolding Hono 4.0+ API servers in TypeScript. Triggers on `.ts` files with `hono` or `@hono/*` imports, route handlers, middleware, and prompts about validation, error handling, WebSockets, CORS, or building an HTTP API in Hono, even when the user doesn't say 'Hono'./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'./react-guideUse when building or editing React 19+ components, hooks, or app routing. Triggers on `.tsx`/`.jsx` files with React imports, Vite/Next configs, Server Components, `'use client'` / `'use server'` directives, and on prompts about Form Actions, useActionState, useOptimistic, use(), Suspense streaming, ref-as-prop, or the React Compiler, even when the user doesn't say 'React'./threejs-guideUse when building or editing 3D scenes in vanilla Three.js for WebGL/WebGPU. Triggers on `.js`/`.ts` files with `three` or `three/*` imports, and on prompts about Scene, Renderer, Mesh, BufferGeometry, materials, lighting, GLTF loaders, raycasting, shaders, post-processing, instancing, or perf tuning, even when the user doesn't say 'Three.js'./typescript-guideUse when editing or reviewing TypeScript in Node.js ESM projects. Triggers on `.ts` files, ESM `package.json`, and prompts about async functions, type inference, strict mode, ESM imports, env handling, template literals, even when the user doesn't say 'TypeScript'.