output

output is a skill for Claude Code, Codex from kubb-labs/kubb. It costs 35 tokens per session (553 once invoked), scanned A, original, MIT.

Instructions for using code generated by Kubb from an OpenAPI or Swagger specification. Kubb can generate types, API clients, hooks, schemas, and test mocks for an application.

In plain words
What is it for?
Use it when wiring Kubb-generated code into application or test code, finding generated exports, and keeping usage aligned with the API specification.
Why use it?
Generated files are overwritten when Kubb runs again, and their names depend on the specification and configuration, so the guide helps you use the real output correctly.

Skill for Claude CodeCodex

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

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,791 stars · on GitHub

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.

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

Made for: Claude Code, Codex.

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

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 output

README.md
[![agentmods](https://agentmods.dev/badge/skills/kubb-labs/kubb/output.svg)](https://agentmods.dev/skills/kubb-labs/kubb/output)
Your own site
<a href="https://agentmods.dev/skills/kubb-labs/kubb/output"><img src="https://agentmods.dev/badge/skills/kubb-labs/kubb/output.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 553 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.00553
Opus 5 $0.00017 $0.00277
Sonnet 5 $0.00007 $0.00111
Haiku 4.5 $0.00003 $0.00055

Measured 5d ago against content hash 82d9ae7eed40, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

output 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 5d 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/output/SKILL.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

  1. Read kubb.config.ts for the top-level output.path and each plugin's output.path.
  2. List the output directory for the actual file and export names.
  3. Read an installed plugin's 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.

Rules

  • Never edit files under output.path. Edit the spec or config and rerun kubb 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.

Read the full file on GitHub · 59 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. 5d ago First seen · 59 lines · 35 tokens per session scan A 82d9ae7eed40

Subscribe to this mod's changes

output is a skill published in the GitHub repository kubb-labs/kubb (1,791 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 553 once invoked, about $0.0002 per session on Opus 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-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

typescript

Write clear, predictable TypeScript and Vue TypeScript code with strong typing, maintainability, and consistent documentation conventions.

scalar/scalar · 25 tokens

orval

Generate type-safe API clients, TanStack Query/SWR hooks, Zod schemas, MSW mocks, Hono server handlers, MCP servers, and SolidStart actions from OpenAPI specs using Orval. Covers all clients (React/Vue/Svelte/Solid/Angular Query, Fetch, Axios), custom HTTP mutators, authentication patterns, NDJSON streaming…

orval-labs/orval · 83 tokens

figma-typings-audit

Upgrade @figma/plugin-typings and absorb what the new version exposes. Diffs the .d.ts between the installed and the target version (that package ships no changelog), sorts the changes into breakage / new API / silently-added fields, maps each onto the sandbox handlers, the hand-written Zod mirrors in shared, and the…

awdr74100/figwright · 133 tokens

ocli-api

Turn any OpenAPI/Swagger API into CLI commands and call them. Search endpoints with BM25, check parameters, execute — no MCP server needed.

EvilFreelancer/openapi-to-cli · 34 tokens

lathe

Initialize CLI-first applications and keep their OpenAPI contract, generated CLI, and Agent Skill synchronized. Use when creating an application with lathe init or changing a Lathe-generated application.

lathe-cli/lathe · 39 tokens