kubb-labs/kubb/output
- community
Checking that the SKILL.md file is still in the repository.
Import and use Kubb's generated code (types, clients, hooks, schemas, mocks). Use when writing app or test code that consumes a Kubb build.
Install
npx vskill@latest install kubb-labs/kubb/outputSKILL.md
Output Skill
This skill instructs agents on importing and using the code Kubb generates from an OpenAPI/Swagger spec.
When to Use
- Writing application code that calls the generated client or hooks
- Writing tests that use the generated mocks or schemas
- Wiring generated files into an app
What It Does
- Explains where generated code lands
- Shows how to discover the real exports and a plugin's options
- Lists the rules for keeping generated code in sync
Where output lands
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.
Find what was generated
Inspect the real output instead of guessing:
- Read
kubb.config.tsfor the top-leveloutput.pathand each plugin'soutput.path. - List the output directory for the actual file and export names.
- Read an installed plugin's
Optionstype (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/extensions/kubb-labs/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.
Rules
- Never edit files under
output.path. Edit the spec or config and rerunkubb generate. - Import generated code instead of copying it, so a regenerate keeps callers in sync.
- Configure the runtime client once. The client functions and framework hooks share it.
- Typecheck after regenerating so a spec change that broke a call site shows up.
Related Skills
| Skill | Use For | |
|---|---|---|
| [../config/SKILL.md](../config/SKILL.md) | Authoring kubb.config.ts and picking plugins |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtools/claude/skills/output/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kubb-labs/kubb/output)