decorators

decorators is a skill for Claude Code from finom/vovk. It costs 207 tokens per session (3,466 once invoked), scanned A, original, MIT.

A set of Vovk.ts decorators, which are annotations that add routing, metadata, or wrapper behavior to controller methods. It includes HTTP route decorators and custom wrappers for tasks such as authorization or logging.

In plain words
What is it for?
Use it to define GET, POST, PUT, PATCH, and DELETE routes, add route prefixes or documentation metadata, or wrap handlers with authorization, logging, and feature-flag checks.
Why use it?
It keeps route setup and request-related behavior close to the controller code. Custom decorators can run logic before and after a request handler without rewriting each handler.

Skill for Claude Code

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

Part of the vovk plugin — 15 skills shipped together

Good fit Use it to define GET, POST, PUT, PATCH, and DELETE routes, add route prefixes or documentation metadata, or wrap handlers with authorization, logging, and feature-flag checks.

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

Made for: Claude Code.

Or install vovk, 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 decorators

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/finom/vovk/decorators"><img src="https://agentmods.dev/badge/skills/finom/vovk/decorators.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 207 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,466 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.00207 $0.03466
Opus 5.5 $0.00083 $0.01386
Sonnet 5.5 $0.00041 $0.00693
Haiku 4.5 $0.00021 $0.00347

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

Security

Grade A, and why

decorators 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 7d 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.

skills/decorators/SKILL.md · 276 lines

How it starts

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

Vovk.ts decorators

Decorators wrap static methods on controllers. Three kinds:

  • HTTP decorators (@get, @post, @put, @patch, @del) — mark procedure as HTTP route. See procedure skill.
  • Metadata decorators (@prefix, @operation) — attach info, no behavior change.
  • Custom decorators (createDecorator) — middleware wrapping handler. How auth, logging, feature flags attach.

One syntax: @decorator. vovk init enables experimentalDecorators in tsconfig.json; a webpack build (next build --webpack, Next.js 15's default) needs it, Turbopack (Next.js 16's default) compiles vovk's decorators either way.

@prefix

Class-level route prefix:

import { prefix, get, procedure } from 'vovk';

@prefix('users')
export default class UserController {
  @get('{id}')
  static getUser = procedure({ /* ... */ }).handle(/* ... */);
}
// → GET /api/users/{id}

Root-level — @prefix('') or omit (same effect):

export default class RootController {
  @get()
  static ping = procedure().handle(() => ({ ok: true }));
}
// → GET /api

.auto() — name-derived routes

Use method name instead of path:

@put.auto()
static doSomething = procedure().handle(/* ... */);
// → PUT /api/<prefix>/do-something

Method names → kebab-case. Works with every HTTP decorator (@get.auto(), @post.auto(), etc.), same options.

HTTP decorator options

Second arg: response-header + CORS config.

@put('do-something', {
  headers: { 'x-hello': 'world' },
  cors: true,
})
static doSomething = procedure().handle(/* ... */);
  • headers — merged into response.
  • cors: true — permissive CORS for that route (access-control-allow-origin: *, preflight answered). Needs OPTIONS in segment's initSegment() exports — else Next.js answers the preflight itself (204 with Allow, no Access-Control-* headers), and the browser blocks the cross-origin call. Exact headers and CORS for every route → base.

Custom decorators — createDecorator

Read the full file on GitHub · 276 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. 7d ago Changed · -20 lines 5045db15bc96
  2. 13d ago Changed · +2 lines 4148224003ca
  3. 14d ago Changed · -35 lines · -21 tokens per session d59a3ae07a23
  4. 1mo ago First seen · 329 lines · 228 tokens per session scan A 4727bd26c307

Subscribe to this mod's changes

decorators is a skill published in the GitHub repository finom/vovk (53 stars, last pushed today), licensed MIT. It adds 207 tokens to every session and 3,466 once invoked, about $0.0008 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

client-setup

Create a vanilla tRPC client with createTRPCClient (), configure link chain with httpBatchLink/httpLink, dynamic headers for auth, transformer on links (not client constructor). Infer types with inferRouterInputs and inferRouterOutputs. AbortController signal support. TRPCClientError typing.

trpc/trpc · 63 tokens

adapter-express

Mount tRPC as Express middleware with createExpressMiddleware() from @trpc/server/adapters/express. Access Express req/res in createContext via CreateExpressContextOptions. Mount at a path prefix like app.use('/trpc', ...). Avoid global express.json() conflicting with tRPC body parsing for FormData.

trpc/trpc · 67 tokens

trpc-router

Entry point for all tRPC skills. Decision tree routing by task: initTRPC.create(), t.router(), t.procedure, createTRPCClient, adapters, subscriptions, React Query, Next.js, links, middleware, validators, error handling, caching, FormData.

trpc/trpc · 59 tokens

pinme-email

Use this skill when a PinMe project (Worker TypeScript) needs to integrate email sending (sendemail). Guides AI to generate correct Worker TS code.

glitternetwork/pinme · 35 tokens

node-modern

Use this skill when writing, reviewing, or refactoring Node.js code — modules, async flow, cancellation, file and process I/O, HTTP — on a current Node.js release. Triggers: user mentions "Node", "Node.js", "ESM", "CommonJS", "require", "import", "fetch", "AbortSignal", "AbortController", "stream", "childprocess"…

WrongStack/WrongStack · 93 tokens

nestjs

Use when building or structuring a NestJS backend — feature modules, providers and DI wiring, provider scopes and request-lifecycle order, where to bind guards/pipes/interceptors/filters, and testing with Test.createTestingModule. NOT a bare Express/Fastify service with no DI (that is nodejs), NOT framework-agnostic…

ericrisco/rsc-harness · 81 tokens