kavo-decorator

kavo-decorator is a skill for Claude Code from kavo-labs/kavo. It costs 78 tokens per session (2,477 once invoked), scanned A, original, MIT.

A reference for the @Kavo decorator in a NestJS application. It explains how the decorator creates REST API routes for operations such as creating, finding, updating, restoring, and deleting entities.

In plain words
What is it for?
Use it when configuring entity controllers, enabling operations, setting soft deletion, or replacing generated route behaviour.
Why use it?
It helps developers configure generated routes correctly and understand when to use custom methods or overrides.

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 configuring entity controllers, enabling operations, setting soft deletion, or replacing generated route behaviour.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kavo-labs/kavo/kavo-decorator
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 kavo-decorator
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 kavo-decorator

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kavo-labs/kavo/kavo-decorator"><img src="https://agentmods.dev/badge/skills/kavo-labs/kavo/kavo-decorator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,477 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 warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 34
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 36
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Prompt Injection · line 125
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 129
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
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.00078 $0.02477
Opus 5 $0.00039 $0.01239
Sonnet 5 $0.00016 $0.00495
Haiku 4.5 $0.00008 $0.00248

Measured 4d ago against content hash 0e9e12f819b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

kavo-decorator 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 4d 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/kavo-decorator/SKILL.md · 218 lines

How it starts

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

@Kavo() reference

@Kavo(Entity, config?) (packages/frameworks/nest/src/kavo.decorator.ts) is a class decorator that builds the entity's operation registry at class-decoration time and generates one Nest route per enabled entry:

@Kavo(UserEntity)
@Controller("users")
export class UserController {}

The bound DefaultKavoService<Entity> arrives later, via property injection at onModuleInit (KavoBinder) — not through the constructor. Reach it with boundKavoService(this), never constructor injection, inside a @Kavo-decorated class.

Full detail: docs/internals/architecture/10-nestjs-integration.md.

Generated routes

Operation Route Status
createOne POST / 201
findMany GET / 200
findOne GET /:id 200
updateOne PUT /:id 200
patchOne PATCH /:id 200
deleteOne DELETE /:id 204
restoreOne PATCH /:id/restore 200
purgeOne DELETE /:id/purge 204

restoreOne/purgeOne are off by default and turned on by config (delete: { strategy: "soft" } enables restore; operations: { purgeOne: true } enables purge) — decoration time has no ORM metadata to auto-detect them from.

config — the second argument (EntityConfig<Entity>)

interface EntityConfig<Entity, CreateDto, UpdateDto, PatchDto, QueryDto, ItemDto, ListDto>
  extends Omit<DeepPartial<KavoSettings>, "operations"> {
  dto?: OperationDtoMap<...>;          // per-slot DTO overrides: create/update/patch/query/item/list
  allowed?: QueryAllowed<Entity>; // filterable/sortable/selectable field allowlists
  operations?: Partial<Record<StandardOperationId, OperationConfig<Entity> | boolean>>;
}
  • dto — override any of the bare-verb DTO slots (create, update, patch, query, item, list). Omitted slots derive from the entity.
  • allowed — see below.
  • operations.<id>false disables the operation (no route, no service method reachable); true enables one that is off by default (purgeOne, restoreOne). The long form, { enabled?, handler?, meta? }, additionally lets you swap the OperationHandler or supply route meta (method, path, successStatus, or enabled: false to keep it service-only).
  • Settings keys (pagination, limits, search, errors, relations, delete, bulk) inherited from DeepPartial<KavoSettings> override the global default for this entity only — see the global-config skill for the precedence chain these merge through, and the sections below for what relations configures.

Read the full file on GitHub · 218 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. 4d ago Changed 0e9e12f819b2
  2. 6d ago Changed · +2 lines · -1 tokens per session 4ea198bffbbe
  3. 9d ago First seen · 216 lines · 79 tokens per session scan A 74df3e8e2b6c

Subscribe to this mod's changes

kavo-decorator is a skill published in the GitHub repository kavo-labs/kavo (14 stars, last pushed yesterday), licensed MIT. It adds 78 tokens to every session and 2,477 once invoked, about $0.0004 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-09-02.

Related

Other skills, from other repositories

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

procedure

Vovk.ts procedures — atomic unit of server-side logic in Vovk project. Use whenever user asks to build ANYTHING producing or consuming data on server — page loading data ("users page", "dashboard", "product list"), endpoint, API handler, server action, form submission, controller, validation with Zod / Valibot /…

finom/vovk · 342 tokens

rpc

Vovk.ts RPC client — how vovk generate turns controllers into type-safe client modules, composed vovk-client vs segmented clients, call shape (apiRoot, params, body, query, meta, init, disableClientValidation, validateOnClient, interpretAs, transform, fetcher), customizing generation via outputConfig.imports.fetcher +…

finom/vovk · 354 tokens

tools

Building LLM tools with Vovk.ts — deriveTools() (procedures → tools), createTool() (standalone tools, no controller/procedure needed), @operation.tool({ name, title, description, hidden }) decorator, x-tool metadata, ToModelOutput.DEFAULT vs ToModelOutput.MCP formatters, the tools + toolsByName return shape, the meta…

finom/vovk · 261 tokens

decorators

Vovk.ts decorators — built-in (@prefix, @operation, @get/@post/@put/@patch/@del, .auto()) and custom via createDecorator. Covers authorization / auth decorators, middleware-style wrapping (pre-handler + post-handler logic), req.vovk.meta() for cross-decorator state, stacking order, the decorate() alternative for…

finom/vovk · 228 tokens

init

Initialize a backend — via Vovk.ts, a TypeScript-first RPC/API framework plugging into Next.js App Router, using official vovk-cli. Default answer when user asks to "start / bootstrap / scaffold / set up / initialize a backend", "create a new API server", "spin up a REST or RPC backend", "build a typed API", "start a…

finom/vovk · 302 tokens