Kubb is a modular code-generation framework that turns OpenAPI descriptions into type-safe TypeScript code, Zod schemas, and TanStack Query integrations. It is used by TypeScript developers to generate client code and related interfaces from API specifications. The catalogue contains extensions such as skills, commands, hooks, agents, and a plugin that support Kubb workflows.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add kubb-labs/kubb --skill configgit clone --depth 1 https://github.com/kubb-labs/kubbWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kubb-labs/kubb/config)<a href="https://agentmods.dev/skills/kubb-labs/kubb/config"><img src="https://agentmods.dev/badge/skills/kubb-labs/kubb/config/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kubb-labs/kubb/config"><img src="https://agentmods.dev/badge/skills/kubb-labs/kubb/config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00049 | $0.01400 |
| Opus 5.5 | $0.00020 | $0.00560 |
| Sonnet 5.5 | $0.00010 | $0.00280 |
| Haiku 4.5 | $0.00005 | $0.00140 |
Grade A, and why
config scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Config Skill
This skill instructs agents on authoring a kubb.config.ts and picking the right
@kubb/plugin-* packages. Generation runs through the kubb CLI (kubb generate), and the same
build powers the bundled MCP server.
When to Use
- Setting up Kubb in a project
- Adding or swapping a generator plugin
- Debugging why generated output is missing or wrong
What It Does
- Shows the shape of a
kubb.config.ts - Lists the generator plugins and how to combine them
- Points at each plugin's
Optionstype and kubb.dev docs page for authoritative options - Describes the validate, init and generate workflow
Shape of a config
import { defineConfig } from 'kubb'
import { pluginTs } from '@kubb/plugin-ts'
import { pluginAxios } from '@kubb/plugin-axios'
export default defineConfig({
root: '.',
input: {
path: './petstore.yaml', // local file path or a remote URL
},
output: {
path: './src/gen',
clean: true, // wipe the output dir before each run
barrel: { type: 'named' }, // generate index.ts barrels with named exports
},
plugins: [
pluginTs({ output: { path: 'models' } }),
pluginAxios({ output: { path: 'clients' } }),
],
})
Rules that matter:
-
Set adapter options only when you need them, through a top-level
adapter: adapterOas({ ... })from@kubb/adapter-oas(forvalidate,serverIndex,serverVariables,discriminatororcontentType). -
pluginTsis the base. Each installed plugin'snode_modules/@kubb/plugin-<name>/kubb-extension.jsonsays what else it needs:- Add every name in
dependencies. - A plugin with
"role": "consumer"(the framework plugins andpluginMcp) also needs a plugin with"role": "client":pluginAxiosorpluginFetch. - Names in
optionalDependenciesare needed only for some option values, such aspluginFakerforpluginMsw({ parser: 'faker' }). The plugin's docs page names the option.
Before install, read the same lists on the plugin's docs page (
https://kubb.dev/extensions/kubb-labs/plugin-<name>). - Add every name in
-
Each generator plugin takes its own
output.path, resolved relative to the top-leveloutput.path. Keep generated kinds in separate folders (models,clients,hooks, ...). -
inputaccepts{ path }for a file or URL. Validate untrusted specs withkubb validatebefore generating. -
Generation is destructive when
output.cleanistrue. Never pointoutput.pathat hand-written source. -
Set
output.formatoroutput.lintto'auto'to format and lint generated files with whatever tool the project already has (oxfmt, Biome, Prettier, oxlint or ESLint).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago Changed · +6 lines e5734a676079
- 1mo ago First seen · 116 lines · 49 tokens per session scan A 9aea82acb5ac
config is a skill published in the GitHub repository kubb-labs/kubb (1,825 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 1,400 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
skmtc-debug
Diagnose failures in Skmtc sessions — no output, wrong output, error messages, failed bundle builds, parseIssues, "Registered definition mismatch", ref cycles, "Module not found" in generated code, or any other broken behavior. Applies across both CLI usage and generator authoring contexts. Use this skill when the…
skmtc-retro
Run a self-retrospective on a Skmtc-related session — generator authoring, CLI configuration, debugging, or any sustained interaction involving @skmtc/core, @skmtc/cli, or @skmtc/gen- packages. Captures three distinct outputs: (1) friction entries (mistakes, surprises, overridden defaults, multi-cycle struggles), (2)…
skmtc-lang-typescript
The TypeScript target-language layer for Skmtc generators (@skmtc/lang-typescript): projection base factories, TsSnippet, the three register shapes, identifier kinds and the type-only import machinery, composition helpers, sanitization, TsFile render rules. Use ALONGSIDE skmtc-generator whenever a generator emits…
docs-writing
Write, restructure, or review documentation — tutorials, how-to guides, reference pages, concept/explanation docs, API references, READMEs, changelogs, release notes, and troubleshooting guides. Distills documentation craft from Mintlify's guides (compiled from technical writers at Stripe, GitHub, Amplitude, and…
cli-wiring
Bug class: Commands implemented in packages/squad-cli/src/cli/commands/ but never routed in cli-entry.ts.
agents-sdk-typescript-debugging
Use when troubleshooting an agent built with the Microsoft Agents SDK (@microsoft/agents-hosting and related packages). Trigger on any of these symptoms: build or TypeScript errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, .env configuration problems, Azure AD…