[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MTEZV8SAZNS20YDSB7KG2":3,"skill-same:01M75MTEZV8SAZNS20YDSB7KG2":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M75MTEZV8SAZNS20YDSB7KG2","hono-api",null,"Use when building or extending REST APIs with Hono + @hono\u002Fzod-openapi. Covers schema-first route declaration with createRoute, feature-grouped composable routers, a class-based service layer behind interfaces, the strategy pattern for multi-event webhooks, typed request validation, and auto-generated OpenAPI docs.","whimzyLive\u002Fnightshift-ai","whimzyLive","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F22066605?v=4","01M75MMH22XX6R3NTAFHD7HEN7","Rushi Patel","01M75MMH32DHVVC61XRSHWVEV2",3,"MIT","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Fhono-api\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: hono-api\ndescription: Use when building or extending REST APIs with Hono + @hono\u002Fzod-openapi. Covers schema-first route declaration with createRoute, feature-grouped composable routers, a class-based service layer behind interfaces, the strategy pattern for multi-event webhooks, typed request validation, and auto-generated OpenAPI docs.\n---\n\n# Hono REST API — Composable Architecture\n\nA scalable structure for Hono APIs using `@hono\u002Fzod-openapi`: routes are schema-first, business\nlogic lives in a class-based service layer, and the OpenAPI document is generated from the route\ndefinitions — never written by hand.\n\n## Core principle\n\nRoutes are **schema-first**: declare the request\u002Fresponse shape with Zod via `createRoute`, then write\nthe handler. `c.req.valid(...)` returns typed, validated input, and the OpenAPI spec is derived from\nthe same definitions.\n\n## Folder structure\n\nGroup by **feature**, co-locate each route\u002Fservice with its own schema, and keep one source root:\n\n```\nsrc\u002F\n├── app.ts                       # OpenAPIHono root — mounts routers + docs + error handler\n├── index.ts                     # runtime entry (server \u002F serverless adapter)\n├── routes\u002F\n│   └── health\u002F\n│       ├── route.ts             # createRoute + handler\n│       └── schema.ts            # Zod schemas for this route only\n└── services\u002F\n    └── orders\u002F\n        ├── service.interface.ts # the contract\n        ├── service.ts           # class implements the interface\n        └── schema.ts            # Zod schemas for this service only\n```\n\nRules:\n- **Group by feature** — each route and service gets its own directory; files are `route.ts` \u002F\n  `schema.ts` \u002F `service.ts` (no repeated prefix — the directory name gives context).\n- **Schema co-location** — a `schema.ts` lives in the same directory as its `route.ts` \u002F `service.ts`.\n  Only cross-cutting shared schemas move to a shared location.\n- **One source root** — keep a single `src\u002F`; never nest another `src\u002F` inside a feature directory.\n\n## Route + schema pattern\n\n```typescript\n\u002F\u002F routes\u002Fhealth\u002Fschema.ts\nimport { z } from 'zod';\n\nexport const HealthResponseSchema = z.object({\n  status: z.literal('ok'),\n  uptime: z.number(),\n});\n\nexport type HealthResponse = z.infer\u003Ctypeof HealthResponseSchema>;\n```\n\n```typescript\n\u002F\u002F routes\u002Fhealth\u002Froute.ts\nimport { OpenAPIHono, createRoute } from '@hono\u002Fzod-openapi';\nimport { HealthResponseSchema } from '.\u002Fschema';\n\nconst healthRoute = createRoute({\n  method: 'get',\n  path: '\u002Fhealth',                 \u002F\u002F relative — the prefix is added by app.route()\n  responses: {\n    200: {\n      content: { 'application\u002Fjson': { schema: HealthResponseSchema } },\n      description: 'Liveness probe',\n    },\n  },\n});\n\nexport const healthRouter = new OpenAPIHono();\n\nhealthRouter.openapi(healthRoute, (c) => {\n  return c.json({ status: 'ok' as const, uptime: process.uptime() });\n});\n```\n\n## Service layer — class-based, noun-based, interface-first\n\nBusiness logic lives in **service classes** grouped by the **noun they talk to** (orders, payments,\nnotifications) — never by verb. Each noun directory holds `service.interface.ts` (the contract) and\n`service.ts` (the `class … implements I\u003CNoun>Service`). Consumers depend on the interface type.\n\n```typescript\n\u002F\u002F services\u002Forders\u002Fservice.interface.ts\nimport type { Order, CreateOrder } from '.\u002Fschema';\n\nexport interface IOrderService {\n  get(id: string): Promise\u003COrder | null>;\n  create(input: CreateOrder): Promise\u003COrder>;\n}\n```\n\n```typescript\n\u002F\u002F services\u002Forders\u002Fservice.ts\nimport type { IOrderService } from '.\u002Fservice.interface';\n\nexport class OrderService implements IOrderService {\n  async get(id: string): Promise\u003COrder | null> { \u002F* ... *\u002F return null; }\n  async create(input: CreateOrder): Promise\u003COrder> { \u002F* ... *\u002F }\n}\n\n\u002F\u002F Export a singleton instance — import this (typed as the interface), not the class.\nexport const orderService = new OrderService();\n```\n\n- **Interface first, class implements it** — compile-time enforcement and a clear extension contract.\n- **All I\u002FO lives in the service** (DB, queues, outbound HTTP, signature checks) — keep it out of\n  routes. Routes stay thin: validate → call a service → serialise the result.\n- **Services stay pure of Hono** — no `Context`, no `c`. They take plain inputs and return plain data,\n  so they are trivially unit-testable against the interface with a stub.\n- Constructor injection of dependencies is fine where it aids testing.\n\n## Multi-event webhooks — strategy pattern\n\nWhen **one endpoint** receives many event types from a provider, accept all valid events and dispatch\nby type. Never expose one endpoint per event, and never grow an `if`\u002F`switch` over event types in the\nhandler.\n\n**Rule:** one endpoint → one dispatcher → one strategy class per event type, each implementing a\nshared interface. A new event is a new strategy class registered in one place; the route and\ndispatcher stay untouched.\n\n```typescript\n\u002F\u002F routes\u002Fwebhook\u002Fstrategies\u002Fstrategy.interface.ts\nexport interface IEventStrategy\u003CTPayload, TResult> {\n  readonly event: string;                  \u002F\u002F matched against the payload's event-type field\n  handle(payload: TPayload): Promise\u003CTResult>;\n}\n```\n\n```typescript\n\u002F\u002F routes\u002Fwebhook\u002Fstrategies\u002Fdispatcher.ts\nimport type { IEventStrategy } from '.\u002Fstrategy.interface';\nimport { NoopStrategy } from '.\u002Fnoop.strategy';\n\nexport class WebhookDispatcher\u003CTPayload, TResult> {\n  private readonly registry = new Map\u003Cstring, IEventStrategy\u003CTPayload, TResult>>();\n  constructor(\n    strategies: IEventStrategy\u003CTPayload, TResult>[],\n    private readonly fallback: IEventStrategy\u003CTPayload, TResult> = new NoopStrategy(),\n    private readonly keyOf: (p: TPayload) => string,\n  ) {\n    for (const s of strategies) this.registry.set(s.event, s);\n  }\n  dispatch(payload: TPayload): Promise\u003CTResult> {\n    return (this.registry.get(this.keyOf(payload)) ?? this.fallback).handle(payload);\n  }\n}\n```\n\n- **A typed `NoopStrategy` is the default** — a valid event with no registered strategy resolves to it\n  and returns **200** (acknowledge, no side effect). Never return 4xx for an event you simply do not\n  act on yet — that triggers provider retry storms.\n- Strategy classes hold **flow logic only**; all I\u002FO is delegated to the service classes above.\n- The route does only: verify the signature on the raw body → parse → `dispatcher.dispatch(payload)`\n  → serialise the result as a 200 body.\n\n## Root app — mount routers, docs, error handler\n\n```typescript\n\u002F\u002F app.ts\nimport { OpenAPIHono } from '@hono\u002Fzod-openapi';\nimport { HTTPException } from 'hono\u002Fhttp-exception';\nimport { healthRouter } from '.\u002Froutes\u002Fhealth\u002Froute';\n\nexport const app = new OpenAPIHono();\n\napp.route('\u002F', healthRouter);                    \u002F\u002F mount feature routers with their prefix\n\napp.doc('\u002Fopenapi.json', {\n  openapi: '3.0.0',\n  info: { title: 'API', version: '1.0.0' },\n});\n\napp.onError((err, c) => {\n  if (err instanceof HTTPException) {\n    return c.json({ success: false, message: err.message }, err.status);\n  }\n  return c.json({ success: false, message: 'Internal Server Error' }, 500);\n});\n```\n\nHono is runtime-agnostic. Pick the matching entry adapter, e.g.:\n\n```typescript\n\u002F\u002F index.ts — Node server\nimport { serve } from '@hono\u002Fnode-server';\nimport { app } from '.\u002Fapp';\nserve(app);\n\n\u002F\u002F index.ts — AWS Lambda\nimport { handle } from 'hono\u002Faws-lambda';\nimport { app } from '.\u002Fapp';\nexport const handler = handle(app);\n```\n\n## Typed request validation\n\n`c.req.valid(...)` returns typed, Zod-validated input — never parse manually:\n\n```typescript\nconst route = createRoute({\n  method: 'post',\n  path: '\u002Forders',\n  request: { body: { content: { 'application\u002Fjson': { schema: CreateOrderSchema } } } },\n  responses: {\n    201: { content: { 'application\u002Fjson': { schema: OrderSchema } }, description: 'Created' },\n  },\n});\n\nrouter.openapi(route, async (c) => {\n  const body = c.req.valid('json');   \u002F\u002F typed as CreateOrder\n  return c.json(await orderService.create(body), 201);\n});\n```\n\n## Quick reference\n\n| Task | Pattern |\n|------|---------|\n| New domain | `routes\u002F\u003Cname>\u002Froute.ts` + `routes\u002F\u003Cname>\u002Fschema.ts`; mount in `app.ts` |\n| New route | `createRoute({})` → `router.openapi(route, handler)` |\n| Route \u002F service schema | `schema.ts` inside the same feature directory |\n| New service | `services\u002F\u003Cnoun>\u002Fservice.interface.ts` + `class … implements I\u003CNoun>Service`; export a singleton; group by noun, not verb |\n| Multi-event webhook | One endpoint → `WebhookDispatcher` → one strategy class per event; `NoopStrategy` default |\n| Path \u002F query params | declare in `request` on `createRoute`; read via `c.req.valid('param' | 'query')` |\n| Error | `throw new HTTPException(status, { message })` |\n| OpenAPI | auto-generated from routes — never hand-write YAML\u002FJSON |\n\n## Additional resources\n\nPortable bash scaffolders (coreutils only, never overwrite existing files) live in `scripts\u002F`. Run\nthem from a consumer project's root:\n\n- `scripts\u002Fnew-route.sh \u003Cname>` — scaffolds `src\u002Froutes\u002F\u003Cname>\u002Froute.ts` + `schema.ts` following the\n  route + schema pattern (`createRoute` + `OpenAPIHono` + a co-located Zod schema). Use when adding a\n  new feature route; then mount the exported router in `app.ts`.\n- `scripts\u002Fnew-service.sh \u003Cnoun>` — scaffolds `src\u002Fservices\u002F\u003Cnoun>\u002Fservice.interface.ts` + `service.ts`\n  + `schema.ts` following the class-based noun-service pattern (`class \u003CNoun>Service implements\n  I\u003CNoun>Service`, exported as an interface-typed singleton). Use when adding business logic for a new\n  noun, kept out of the routes.\n\n## Common mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Schema defined inside the route file | Separate `schema.ts` — enables reuse and testing |\n| `c.req.json()` instead of `c.req.valid('json')` | `valid()` returns typed + validated data |\n| Routes registered directly on the root `app` | Feature routers + `app.route()` — keeps `app.ts` thin |\n| Hand-writing OpenAPI | `createRoute` + `app.doc()` generates it |\n| Hono imports inside services | Services stay pure — no `Context`, no `c` |\n| Service as loose exported functions | `class … implements I\u003CNoun>Service` — interface first |\n| Verb-named service directories | Name by noun (`services\u002Forders\u002F`, not `services\u002Fcreate-order\u002F`) |\n| One endpoint per webhook event type | Single endpoint + `WebhookDispatcher` keyed on event type |\n| 4xx for an unhandled-but-valid event | `NoopStrategy` → 200; avoids provider retry storms |\n","# Hono REST API — Composable Architecture\n\nA scalable structure for Hono APIs using `@hono\u002Fzod-openapi`: routes are schema-first, business\nlogic lives in a class-based service layer, and the OpenAPI document is generated from the route\ndefinitions — never written by hand.\n\n## Core principle\n\nRoutes are **schema-first**: declare the request\u002Fresponse shape with Zod via `createRoute`, then write\nthe handler. `c.req.valid(...)` returns typed, validated input, and the OpenAPI spec is derived from\nthe same definitions.\n\n## Folder structure\n\nGroup by **feature**, co-locate each route\u002Fservice with its own schema, and keep one source root:\n\n```\nsrc\u002F\n├── app.ts                       # OpenAPIHono root — mounts routers + docs + error handler\n├── index.ts                     # runtime entry (server \u002F serverless adapter)\n├── routes\u002F\n│   └── health\u002F\n│       ├── route.ts             # createRoute + handler\n│       └── schema.ts            # Zod schemas for this route only\n└── services\u002F\n    └── orders\u002F\n        ├── service.interface.ts # the contract\n        ├── service.ts           # class implements the interface\n        └── schema.ts            # Zod schemas for this service only\n```\n\nRules:\n- **Group by feature** — each route and service gets its own directory; files are `route.ts` \u002F\n  `schema.ts` \u002F `service.ts` (no repeated prefix — the directory name gives context).\n- **Schema co-location** — a `schema.ts` lives in the same directory as its `route.ts` \u002F `service.ts`.\n  Only cross-cutting shared schemas move to a shared location.\n- **One source root** — keep a single `src\u002F`; never nest another `src\u002F` inside a feature directory.\n\n## Route + schema pattern\n\n```typescript\n\u002F\u002F routes\u002Fhealth\u002Fschema.ts\nimport { z } from 'zod';\n\nexport const HealthResponseSchema = z.object({\n  status: z.literal('ok'),\n  uptime: z.number(),\n});\n\nexport type HealthResponse = z.infer\u003Ctypeof HealthResponseSchema>;\n```\n\n```typescript\n\u002F\u002F routes\u002Fhealth\u002Froute.ts\nimport { OpenAPIHono, createRoute } from '@hono\u002Fzod-openapi';\nimport { HealthResponseSchema } from '.\u002Fschema';\n\nconst healthRoute = createRoute({\n  method: 'get',\n  path: '\u002Fhealth',                 \u002F\u002F relative — the prefix is added by app.route()\n  responses: {\n    200: {\n      content: { 'application\u002Fjson': { schema: HealthResponseSchema } },\n      description: 'Liveness probe',\n    },\n  },\n});\n\nexport const healthRouter = new OpenAPIHono();\n\nhealthRouter.openapi(healthRoute, (c) => {\n  return c.json({ status: 'ok' as const, uptime: process.uptime() });\n});\n```\n\n## Service layer — class-based, noun-based, interface-first\n\nBusiness logic lives in **service classes** grouped by the **noun they talk to** (orders, payments,\nnotifications) — never by verb. Each noun directory holds `service.interface.ts` (the contract) and\n`service.ts` (the `class … implements I\u003CNoun>Service`). Consumers depend on the interface type.\n\n```typescript\n\u002F\u002F services\u002Forders\u002Fservice.interface.ts\nimport type { Order, CreateOrder } from '.\u002Fschema';\n\nexport interface IOrderService {\n  get(id: string): Promise\u003COrder | null>;\n  create(input: CreateOrder): Promise\u003COrder>;\n}\n```\n\n```typescript\n\u002F\u002F services\u002Forders\u002Fservice.ts\nimport type { IOrderService } from '.\u002Fservice.interface';\n\nexport class OrderService implements IOrderService {\n  async get(id: string): Promise\u003COrder | null> { \u002F* ... *\u002F return null; }\n  async create(input: CreateOrder): Promise\u003COrder> { \u002F* ... *\u002F }\n}\n\n\u002F\u002F Export a singleton instance — import this (typed as the interface), not the class.\nexport const orderService = new OrderService();\n```\n\n- **Interface first, class implements it** — compile-time enforcement and a clear extension contract.\n- **All I\u002FO lives in the service** (DB, queues, outbound HTTP, signature checks) — keep it out of\n  routes. Routes stay thin: validate → call a service → serialise the result.\n- **Services stay pure of Hono** — no `Context`, no `c`. They take plain inputs and return plain data,\n  so they are trivially unit-testable against the interface with a stub.\n- Constructor injection of dependencies is fine where it aids testing.\n\n## Multi-event webhooks — strategy pattern\n\nWhen **one endpoint** receives many event types from a provider, accept all valid events and dispatch\nby type. Never expose one endpoint per event, and never grow an `if`\u002F`switch` over event types in the\nhandler.\n\n**Rule:** one endpoint → one dispatcher → one strategy class per event type, each implementing a\nshared interface. A new event is a new strategy class registered in one place; the route and\ndispatcher stay untouched.\n\n```typescript\n\u002F\u002F routes\u002Fwebhook\u002Fstrategies\u002Fstrategy.interface.ts\nexport interface IEventStrategy\u003CTPayload, TResult> {\n  readonly event: string;                  \u002F\u002F matched against the payload's event-type field\n  handle(payload: TPayload): Promise\u003CTResult>;\n}\n```\n\n```typescript\n\u002F\u002F routes\u002Fwebhook\u002Fstrategies\u002Fdispatcher.ts\nimport type { IEventStrategy } from '.\u002Fstrategy.interface';\nimport { NoopStrategy } from '.\u002Fnoop.strategy';\n\nexport class WebhookDispatcher\u003CTPayload, TResult> {\n  private readonly registry = new Map\u003Cstring, IEventStrategy\u003CTPayload, TResult>>();\n  constructor(\n    strategies: IEventStrategy\u003CTPayload, TResult>[],\n    private readonly fallback: IEventStrategy\u003CTPayload, TResult> = new NoopStrategy(),\n    private readonly keyOf: (p: TPayload) => string,\n  ) {\n    for (const s of strategies) this.registry.set(s.event, s);\n  }\n  dispatch(payload: TPayload): Promise\u003CTResult> {\n    return (this.registry.get(this.keyOf(payload)) ?? this.fallback).handle(payload);\n  }\n}\n```\n\n- **A typed `NoopStrategy` is the default** — a valid event with no registered strategy resolves to it\n  and returns **200** (acknowledge, no side effect). Never return 4xx for an event you simply do not\n  act on yet — that triggers provider retry storms.\n- Strategy classes hold **flow logic only**; all I\u002FO is delegated to the service classes above.\n- The route does only: verify the signature on the raw body → parse → `dispatcher.dispatch(payload)`\n  → serialise the result as a 200 body.\n\n## Root app — mount routers, docs, error handler\n\n```typescript\n\u002F\u002F app.ts\nimport { OpenAPIHono } from '@hono\u002Fzod-openapi';\nimport { HTTPException } from 'hono\u002Fhttp-exception';\nimport { healthRouter } from '.\u002Froutes\u002Fhealth\u002Froute';\n\nexport const app = new OpenAPIHono();\n\napp.route('\u002F', healthRouter);                    \u002F\u002F mount feature routers with their prefix\n\napp.doc('\u002Fopenapi.json', {\n  openapi: '3.0.0',\n  info: { title: 'API', version: '1.0.0' },\n});\n\napp.onError((err, c) => {\n  if (err instanceof HTTPException) {\n    return c.json({ success: false, message: err.message }, err.status);\n  }\n  return c.json({ success: false, message: 'Internal Server Error' }, 500);\n});\n```\n\nHono is runtime-agnostic. Pick the matching entry adapter, e.g.:\n\n```typescript\n\u002F\u002F index.ts — Node server\nimport { serve } from '@hono\u002Fnode-server';\nimport { app } from '.\u002Fapp';\nserve(app);\n\n\u002F\u002F index.ts — AWS Lambda\nimport { handle } from 'hono\u002Faws-lambda';\nimport { app } from '.\u002Fapp';\nexport const handler = handle(app);\n```\n\n## Typed request validation\n\n`c.req.valid(...)` returns typed, Zod-validated input — never parse manually:\n\n```typescript\nconst route = createRoute({\n  method: 'post',\n  path: '\u002Forders',\n  request: { body: { content: { 'application\u002Fjson': { schema: CreateOrderSchema } } } },\n  responses: {\n    201: { content: { 'application\u002Fjson': { schema: OrderSchema } }, description: 'Created' },\n  },\n});\n\nrouter.openapi(route, async (c) => {\n  const body = c.req.valid('json');   \u002F\u002F typed as CreateOrder\n  return c.json(await orderService.create(body), 201);\n});\n```\n\n## Quick reference\n\n| Task | Pattern |\n|------|---------|\n| New domain | `routes\u002F\u003Cname>\u002Froute.ts` + `routes\u002F\u003Cname>\u002Fschema.ts`; mount in `app.ts` |\n| New route | `createRoute({})` → `router.openapi(route, handler)` |\n| Route \u002F service schema | `schema.ts` inside the same feature directory |\n| New service | `services\u002F\u003Cnoun>\u002Fservice.interface.ts` + `class … implements I\u003CNoun>Service`; export a singleton; group by noun, not verb |\n| Multi-event webhook | One endpoint → `WebhookDispatcher` → one strategy class per event; `NoopStrategy` default |\n| Path \u002F query params | declare in `request` on `createRoute`; read via `c.req.valid('param' | 'query')` |\n| Error | `throw new HTTPException(status, { message })` |\n| OpenAPI | auto-generated from routes — never hand-write YAML\u002FJSON |\n\n## Additional resources\n\nPortable bash scaffolders (coreutils only, never overwrite existing files) live in `scripts\u002F`. Run\nthem from a consumer project's root:\n\n- `scripts\u002Fnew-route.sh \u003Cname>` — scaffolds `src\u002Froutes\u002F\u003Cname>\u002Froute.ts` + `schema.ts` following the\n  route + schema pattern (`createRoute` + `OpenAPIHono` + a co-located Zod schema). Use when adding a\n  new feature route; then mount the exported router in `app.ts`.\n- `scripts\u002Fnew-service.sh \u003Cnoun>` — scaffolds `src\u002Fservices\u002F\u003Cnoun>\u002Fservice.interface.ts` + `service.ts`\n  + `schema.ts` following the class-based noun-service pattern (`class \u003CNoun>Service implements\n  I\u003CNoun>Service`, exported as an interface-typed singleton). Use when adding business logic for a new\n  noun, kept out of the routes.\n\n## Common mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Schema defined inside the route file | Separate `schema.ts` — enables reuse and testing |\n| `c.req.json()` instead of `c.req.valid('json')` | `valid()` returns typed + validated data |\n| Routes registered directly on the root `app` | Feature routers + `app.route()` — keeps `app.ts` thin |\n| Hand-writing OpenAPI | `createRoute` + `app.doc()` generates it |\n| Hono imports inside services | Services stay pure — no `Context`, no `c` |\n| Service as loose exported functions | `class … implements I\u003CNoun>Service` — interface first |\n| Verb-named service directories | Name by noun (`services\u002Forders\u002F`, not `services\u002Fcreate-order\u002F`) |\n| One endpoint per webhook event type | Single endpoint + `WebhookDispatcher` keyed on event type |\n| 4xx for an unhandled-but-valid event | `NoopStrategy` → 200; avoids provider retry storms |\n",{"name":5,"description":7},"main","7d4ebd573a4218d5e92eced411b259f34e9203fe","skills\u002Fhono-api",0,"https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai","https:\u002F\u002Fwithnightshift.com\u002F","https:\u002F\u002Fgithub.com\u002FwhimzyLive","Creator of @typedorm","2026-11-14 22:45:42",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add whimzyLive\u002Fnightshift-ai --skill hono-api",{"tool":39,"command":40},"bunx","bunx skills add whimzyLive\u002Fnightshift-ai --skill hono-api",{"tool":42,"command":43},"pnpm","pnpm dlx skills add whimzyLive\u002Fnightshift-ai --skill hono-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Fhono-api\u002FSKILL.md",true,[47,53,59],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"evals\u002Fevals.json","REFERENCE","参考文档",3863,"https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Fhono-api\u002Fevals\u002Fevals.json",{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"scripts\u002Fnew-route.sh","SCRIPT","脚本",2209,"https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Fhono-api\u002Fscripts\u002Fnew-route.sh",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"scripts\u002Fnew-service.sh",2694,"https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Fhono-api\u002Fscripts\u002Fnew-service.sh",[64,72,79,86,93,100],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":71},"01M7BCEWYHDS1FWAJ6G4CD9P54","designing-in-patterns","Use when designing, planning or auditing UI against a component library — naming surfaces with the repo's pattern vocabulary, deciding reuse versus extend versus new, exploring compositions, or writing the reuse table (component-plan.md, a spec's `## Reuse`, a UI audit). Carries the design method; the repo's own vocabulary, bundle and board rules come from project-context and the designer override.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fdesigning-in-patterns\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M75MVN6GACAC87SV9RBPBMKH","typeorm","Use when defining TypeORM entities, writing migrations, or building repository\u002Fquery-builder code in TypeScript. Covers entity and relation decorators, the Data Mapper pattern, migrations, the query builder, transactions, and multi-database configuration.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Ftypeorm\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M75MTB91SB6HPB3ZRT20F950","electrodb","Use when defining DynamoDB entities, modeling indexes, or writing queries\u002Fmutations with the ElectroDB ORM. Covers entity schema, access patterns, CRUD operations, update expressions, and single-table design patterns.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Felectrodb\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M75MT7KT9A3XYX38TX5MY6MA","atomic-design","Use when structuring or decomposing any frontend UI into reusable components, regardless of framework. Applies Brad Frost's atomic design methodology — atoms, molecules, organisms, templates, and pages — to guide consistent component hierarchy, naming, and composition decisions.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Fatomic-design\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M75MSTQ54EY0K29PKBF212K1","writing-docs","Use when writing, restructuring, or reviewing any prose documentation — a tutorial, how-to guide, reference page, or explanation\u002Fconceptual doc — for a public docs site (e.g. Mintlify MDX, docs\u002F, README material), a getting-started guide, an API\u002FCLI reference page, or a \"why we built it this way\" conceptual page. Applies the Diátaxis framework (see https:\u002F\u002Fdiataxis.fr\u002F) — every document belongs to exactly one of the four quadrants (tutorial \u002F how-to guide \u002F reference \u002F explanation), and mixing quadrants inside one document is the single most common documentation failure. Covers the four-quadrant compass for picking the right form, per-quadrant structure templates, an anti-pattern list for quadrant drift, and generic voice\u002Fcraft rules — repo-specific voice and target output format (e.g. Mintlify MDX) are resolved from the repo's docs-manifest (falling back to project-context), never hardcoded here.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fwriting-docs\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M75MSM0Z0AHA6YS4Q5E6R65T","writing-adrs","Use when authoring an Architecture Decision Record (ADR) — a short document that captures one significant, hard-to-reverse technical or architectural decision, its context, and its consequences. Triggered by the sdlc ADR pipeline (the knowledge-engineer agent behind \u002Fsdlc:docs seed adr and \u002Fsdlc:docs distill) when generating an ADR from a story, and by anyone hand-authoring an ADR under docs\u002Fadr\u002F today. Covers why ADRs are kept short and inverted-pyramid, the required sections (Title, Status, Decision, Context, Alternatives Considered, Consequences), the proposed→accepted→superseded (or →rejected) status lifecycle and the never-edit-only-supersede immutability rule, the NNNN-decision-slug.md filename convention, and the ADR frontmatter fields (status, agents, source-stories) the pipeline reads to route a generated ADR into docs\u002Fadr\u002Findex.md.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fwriting-adrs\u002FSKILL.md",[],[]]