config

config is a skill for Claude Code from kubb-labs/kubb. It costs 49 tokens per session (1,400 once invoked), scanned A, original, MIT.

A guide for configuring Kubb, a tool that generates TypeScript code from an OpenAPI or Swagger API description.

In plain words
What is it for?
Creating or changing a kubb.config.ts file, selecting TypeScript or Axios generators, and running Kubb’s validation, setup, and generation workflow.
Why use it?
It helps choose the right generator packages and diagnose missing or incorrect generated files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the kubb plugin — 2 skills, 3 commands, 1 agent shipped together

Good fit Creating or changing a kubb.config.ts file, selecting TypeScript or Axios generators, and running Kubb’s validation, setup, and generation workflow.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kubb-labs/kubb/config
About the project

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.

kubb-labs/kubb · 1,825 stars · on GitHub · kubb.dev

Install

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.

Any agent
npx skills add kubb-labs/kubb --skill config
Clone the repo
git clone --depth 1 https://github.com/kubb-labs/kubb

Made for: Claude Code.

Or install kubb, the plugin that ships this one along with the rest of its 2 skills, 3 commands, 1 agent.

Wrote 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.

agentmods badge for config

README.md
[![agentmods](https://agentmods.dev/badge/skills/kubb-labs/kubb/config/github.svg)](https://agentmods.dev/skills/kubb-labs/kubb/config)
Your own site
<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.

agentmods 80×15 button for config

Your own site · 80×15
<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>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,400 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 8d ago against content hash e5734a676079, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

tools/claude/skills/config/SKILL.md · 122 lines

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 Options type 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 (for validate, serverIndex, serverVariables, discriminator or contentType).

  • pluginTs is the base. Each installed plugin's node_modules/@kubb/plugin-<name>/kubb-extension.json says what else it needs:

    • Add every name in dependencies.
    • A plugin with "role": "consumer" (the framework plugins and pluginMcp) also needs a plugin with "role": "client": pluginAxios or pluginFetch.
    • Names in optionalDependencies are needed only for some option values, such as pluginFaker for pluginMsw({ 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>).

  • Each generator plugin takes its own output.path, resolved relative to the top-level output.path. Keep generated kinds in separate folders (models, clients, hooks, ...).

  • input accepts { path } for a file or URL. Validate untrusted specs with kubb validate before generating.

  • Generation is destructive when output.clean is true. Never point output.path at hand-written source.

  • Set output.format or output.lint to 'auto' to format and lint generated files with whatever tool the project already has (oxfmt, Biome, Prettier, oxlint or ESLint).

Read the full file on GitHub · 122 lines

Changes

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.

  1. 8d ago Changed · +6 lines e5734a676079
  2. 1mo ago First seen · 116 lines · 49 tokens per session scan A 9aea82acb5ac

Subscribe to this mod's changes

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.

Related

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/skmtc · 213 tokens

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/skmtc · 311 tokens

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…

skmtc/skmtc · 87 tokens

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…

skmtc/skmtc · 336 tokens

cli-wiring

Bug class: Commands implemented in packages/squad-cli/src/cli/commands/ but never routed in cli-entry.ts.

github/gh-aw · 0 tokens

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…

microsoft/Agents · 125 tokens