Skip to content
cogs
Menu

Skill

kubb-react-query

Stand up a typed React Query data layer from an OpenAPI spec with Kubb, compiled against the two Seams.

An API server emits a spec, the spec is vendored, and Kubb generates types, zod schemas, a fetch client and TanStack Query hooks into one package per service. The app lists and mutates data only through those generated hooks.

The Skill encodes the invariants from its provenance abstract: a vendored spec, one package per service, two hand-written Seams (@cogs/fetch-client and @cogs/react-query), tag grouping and one idempotent post-generation pass with @cogs/kubb-transforms.

This Skill on the docs site →