nestjs-validation-pipes

nestjs-validation-pipes is a skill for Claude Code from dkmqflx/nestjs-best-practices-plugin. It costs 62 tokens per session (483 once invoked), scanned A, original, MIT.

A set of NestJS rules for checking and transforming incoming web-request data. NestJS is a framework for building server applications with TypeScript; these rules cover request schemas, validation pipes, and type conversion.

In plain words
What is it for?
Use it for validating request bodies, query values, and route parameters, including custom validation or conversion pipes.
Why use it?
It prevents invalid or unexpected input from reaching application code and keeps request requirements in one clear place.

Skill for Claude Code

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

Part of the nestjs-best-practices plugin — 12 skills shipped together

Good fit Use it for validating request bodies, query values, and route parameters, including custom validation or conversion pipes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dkmqflx/nestjs-best-practices-plugin/nestjs-validation-pipes
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 dkmqflx/nestjs-best-practices-plugin --skill nestjs-validation-pipes
Clone the repo
git clone --depth 1 https://github.com/dkmqflx/nestjs-best-practices-plugin

Made for: Claude Code.

Or install nestjs-best-practices, the plugin that ships this one along with the rest of its 12 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 nestjs-validation-pipes

README.md
[![agentmods](https://agentmods.dev/badge/skills/dkmqflx/nestjs-best-practices-plugin/nestjs-validation-pipes/github.svg)](https://agentmods.dev/skills/dkmqflx/nestjs-best-practices-plugin/nestjs-validation-pipes)
Your own site
<a href="https://agentmods.dev/skills/dkmqflx/nestjs-best-practices-plugin/nestjs-validation-pipes"><img src="https://agentmods.dev/badge/skills/dkmqflx/nestjs-best-practices-plugin/nestjs-validation-pipes/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 nestjs-validation-pipes

Your own site · 80×15
<a href="https://agentmods.dev/skills/dkmqflx/nestjs-best-practices-plugin/nestjs-validation-pipes"><img src="https://agentmods.dev/badge/skills/dkmqflx/nestjs-best-practices-plugin/nestjs-validation-pipes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 483 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.
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.00062 $0.00483
Opus 5 $0.00031 $0.00242
Sonnet 5 $0.00012 $0.00097
Haiku 4.5 $0.00006 $0.00048

Measured 12d ago against content hash 6c1ec947989e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

nestjs-validation-pipes 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 12d 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.

plugins/nestjs-best-practices/skills/nestjs-validation-pipes/SKILL.md · 36 lines

What it actually says

NestJS Validation & Pipes

Pipes run before route handlers to validate and transform incoming request data. Combined with class-validator and class-transformer, they keep DTOs the single source of truth for input shape and constraints.

When to Apply

  • Validating request bodies, query params, or route params in a NestJS app.
  • Configuring ValidationPipe (globally or per-route).
  • Annotating DTOs with class-validator decorators.
  • Coercing param types with built-in parse pipes (ParseIntPipe, ParseUUIDPipe, ...).
  • Writing a reusable custom pipe via PipeTransform.

Rules

  • global-validation-pipe - Register ValidationPipe once in main.ts so every endpoint is validated.
  • whitelist-strip-unknown - Use whitelist + forbidNonWhitelisted to strip or reject unexpected properties.
  • transform-payloads - Enable transform: true to auto-instantiate DTO classes and coerce primitive types.
  • dto-classes-not-interfaces - Define DTOs as classes; interfaces are erased at runtime and carry no metadata.
  • class-validator-decorators - Annotate every DTO field with class-validator decorators.
  • nested-object-validation - Use @ValidateNested + @Type to validate nested DTOs and arrays.
  • built-in-parse-pipes - Use ParseIntPipe/ParseUUIDPipe/ParseBoolPipe to coerce and validate params.
  • custom-pipe-implementation - Implement PipeTransform for reusable custom validation or transformation.

How to Use

Read the relevant file under rules/ for the topic at hand. Each rule states why it matters and shows an incorrect vs. correct example. Apply them when writing or reviewing NestJS input-handling code.

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 36 lines · 62 tokens per session scan A 6c1ec947989e

Subscribe to this mod's changes

nestjs-validation-pipes is a skill published in the GitHub repository dkmqflx/nestjs-best-practices-plugin (1 stars, last pushed 2mo ago), licensed MIT. It adds 62 tokens to every session and 483 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

better-auth

Skill for integrating Better Auth - comprehensive TypeScript authentication framework for Cloudflare D1, Next.js, Nuxt, and 15+ frameworks. Use when adding auth, encountering D1 adapter errors, or implementing OAuth/2FA/RBAC features.

secondsky/claude-skills · 53 tokens

nodejs-backend

Node.js backend patterns: layered architecture, TypeScript, validation, error handling, security, observability, logging, metrics, deployment. Use when building REST APIs, REST endpoints, middleware, Express/Fastify/Hono/NestJS/Koa servers, tRPC procedures, Bun servers, or server-side TypeScript.

iliaal/ai-skills · 69 tokens

node-patterns

Use when writing Node.js/TypeScript backend code — Express, Fastify, or NestJS services, APIs, workers. Builder playbook: project layout, async discipline, typed config, error taxonomy, DI boundaries, testing shape. Complements typescript-reviewer (this prevents, the reviewer catches).

jdanigo/hydraia · 0 tokens

fastapi-best-practices

Use when writing, reviewing, or refactoring FastAPI code — endpoints, APIRouter, query/path parameters, dependencies (Depends), Pydantic request/response models, error handling, async def vs def, lifespan events, streaming, background tasks, settings, middleware, or CORS. Triggers on FastAPI backend work, route…

dkmqflx/fastapi-best-practices-plugin · 97 tokens

feathers-service

Scaffold or extend a FeathersJS v5 (Dove) service using the idiomatic four-file pattern ( .ts, .class.ts, .schema.ts, .shared.ts), register it with app.configure, and wire it into the ServiceTypes declaration. Use this whenever the user wants to add a new resource, endpoint, collection, table-backed CRUD service, or…

hassan4702/feathers-plugin · 155 tokens

backend-dev-guidelines

Opinionated backend development standards for Node.js + Express + TypeScript microservices. Covers layered architecture, BaseController pattern, dependency injection, Prisma repositories, Zod validation, unifiedConfig, Sentry error tracking, async safety, and testing discipline.

agent-skills-hub/agent-skills-hub · 54 tokens