Import and use Kubb's generated code (types, clients, hooks, schemas, mocks). Use when writing app or test code that consumes a Kubb build.
57
66%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./tools/claude/skills/output/SKILL.mdThis skill instructs agents on importing and using the code Kubb generates from an OpenAPI/Swagger spec.
Kubb writes generated code under the output.path from kubb.config.ts (for example ./src/gen),
organized into the folders each plugin sets through its own output.path (for example models,
clients, hooks). Generated files carry a Do not edit manually banner and are rewritten on
every kubb generate, so change them by editing the spec or config and regenerating.
Export names derive from the spec's operationId and schema names. Casing and grouping are
configurable, so read the generated files for the exact names and signatures rather than assuming
them.
Inspect the real output instead of guessing:
kubb.config.ts for the top-level output.path and each plugin's output.path.Options type (node_modules/@kubb/plugin-<name>/src/types.ts
or the published type declarations) for its options and defaults, and the plugin's docs page
(https://kubb.dev/plugins/plugin-<name>) for dependencies. Use those as the source of truth
rather than assuming an option name.Import from a folder's index.ts when output.barrel is set, otherwise import the file directly.
output.path. Edit the spec or config and rerun kubb generate.| Skill | Use For |
|---|---|
| ../config/SKILL.md | Authoring kubb.config.ts and picking plugins |
8349acf
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.