decorators

Community

Master Vovk.ts decorators for secure APIs

Authorfinom
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Managing router logic in Vovk.ts can become error-prone when mixing HTTP decorators, metadata, and custom wrappers. This skill standardizes how decorators are defined, stacked, and consumed, reducing boilerplate and ensuring consistent auth and state sharing across controllers.

Core Features & Use Cases

  • Built-in HTTP decorators (@get, @post, etc.) and metadata decorators (@prefix, @operation) for clean route definitions.
  • Custom decorator patterns via createDecorator for pre- and post-handler logic, including auth guards and timing.
  • Shared per-request state via req.vovk.meta() enabling safe cross-decorator communication.
  • Support for local vs HTTP contexts with guidance on using next/headers to access request data.

Quick Start

Wrap a controller method with @prefix and an HTTP decorator, apply an auth wrapper, and read req.vovk.meta<AuthMeta>() inside the handler to enforce access.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: decorators
Download link: https://github.com/finom/vovk/archive/main.zip#decorators

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.