swagger

swagger is a skill for Claude Code from kavo-labs/kavo. It costs 58 tokens per session (987 once invoked), scanned A, original, MIT.

A reference for adding Swagger, also called OpenAPI, documentation to routes in a NestJS application. Swagger describes an API so people and tools can understand its endpoints and inputs.

In plain words
What is it for?
Use it when installing the Swagger package, connecting the documentation endpoint, or checking how Kavo routes appear in the API docs.
Why use it?
It explains which generated routes are documented automatically and which parts still require manual setup.

Skill for Claude Code

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

Part of the kavo-skills plugin — 15 skills shipped together

Good fit Use it when installing the Swagger package, connecting the documentation endpoint, or checking how Kavo routes appear in the API docs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kavo-labs/kavo/swagger
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 kavo-labs/kavo --skill swagger
Clone the repo
git clone --depth 1 https://github.com/kavo-labs/kavo

Made for: Claude Code.

Or install kavo-skills, the plugin that ships this one along with the rest of its 15 skills.

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 swagger

README.md
[![agentmods](https://agentmods.dev/badge/skills/kavo-labs/kavo/swagger/github.svg)](https://agentmods.dev/skills/kavo-labs/kavo/swagger)
Your own site
<a href="https://agentmods.dev/skills/kavo-labs/kavo/swagger"><img src="https://agentmods.dev/badge/skills/kavo-labs/kavo/swagger/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 swagger

Your own site · 80×15
<a href="https://agentmods.dev/skills/kavo-labs/kavo/swagger"><img src="https://agentmods.dev/badge/skills/kavo-labs/kavo/swagger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 987 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.00058 $0.00987
Opus 5.5 $0.00023 $0.00395
Sonnet 5.5 $0.00012 $0.00197
Haiku 4.5 $0.00006 $0.00099

Measured 2mo ago against content hash 6dbf3e0d07e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

swagger 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 2mo 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.

extensions/skills/swagger/SKILL.md · 86 lines

How it starts

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

Swagger / OpenAPI reference

@nestjs/swagger is an optional peer of @kavo/nest — install it and every generated route documents itself automatically; leave it out and @Kavo costs nothing extra. No config flag turns this on or off: Kavo detects the package at runtime (createRequire(...).require("@nestjs/swagger"), cached, never throws if absent) and documents routes only when it's there. Full detail: docs/internals/architecture/10-nestjs-integration.md §4.

Install

npm install @nestjs/swagger

That's the only step — no @Kavo config option, no KavoModule option. Existing @Kavo-decorated controllers pick up documentation the next time the app boots with @nestjs/swagger present.

Wiring the docs endpoint (main.ts)

This is plain Nest/Swagger, not Kavo-specific — SwaggerModule still needs to be told to build and serve a document:

import { NestFactory } from "@nestjs/core";
import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger";
import { AppModule } from "./app.module.js";

async function bootstrap(): Promise<void> {
  const app = await NestFactory.create(AppModule);

  const document = SwaggerModule.createDocument(
    app,
    new DocumentBuilder().setTitle("My API").setVersion("1.0.0").build(),
  );
  SwaggerModule.setup("docs", app, document); // → GET /docs

  await app.listen(3000);
}

void bootstrap();

What's documented automatically, per generated route

Piece Source
Operation id <Entity>_<operationId> (e.g. User_findMany)
:id path param Every operation with an id in its route
Query params on list routes filter/sort/fields/pagination/include shape (doc 05)
Request body schema schema.input.<slot> when registered and it implements toJSONSchema() (ADR-0055); else the class-shaped schema for that slot, or the entity's ORM metadata (ApiBody) — see dto-slots
Error response schemas Problem-details shape for 400/404, from the error catalog — see error-handling

Read the full file on GitHub · 86 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. 2mo ago Changed 6dbf3e0d07e1
  2. 2mo ago Changed · +7 lines ad62aa11302c
  3. 3mo ago First seen · 79 lines · 58 tokens per session scan A 38ec6648e5d1

Subscribe to this mod's changes

swagger is a skill published in the GitHub repository kavo-labs/kavo (16 stars, last pushed yesterday), licensed MIT. It adds 58 tokens to every session and 987 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-09-02.

Related

swagger compared with skills from other repositories

swagger next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swaggerkavo-labs/kavoSkill16yesterdayMITA58Claude Code
nestjs-expertpersonamanagmentlayer/pclSkill471mo agoApache-2.0A81Claude Code
nestjs-expertfindscripter/everything-skillsSkill14todaynoneA123Claude Code
prisma-8prisma/ormSkill48ktodayApache-2.0A216Claude Code, Codex
nestjsericrisco/rsc-harnessSkill7072d agoMITA81Claude Code, Codex
webiny-api-cms-content-modelswebiny/webiny-jsSkill8.1ktodaynoneA313Claude Code, Codex
webiny-api-architectwebiny/webiny-jsSkill8.1ktodaynoneA93Claude Code, Codex