nestjs-prisma-drizzle

nestjs-prisma-drizzle is a skill for Claude Code, Codex from 2428424081cn/Skill-mcp. It costs 33 tokens per session (344 once invoked), scanned A, original, MIT.

Architecture guidance for NestJS, a framework for building Node.js backends, together with Prisma or Drizzle, tools that connect code to a database. It covers feature modules, input validation, and database transactions.

In plain words
What is it for?
Use it when building NestJS APIs with Prisma or Drizzle. It helps organize controllers and services, validate request data, and handle multi-step database updates atomically.
Why use it?
It gives backend code clear module boundaries and checks incoming data before use. Transactions help ensure related database changes succeed or fail together.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building NestJS APIs with Prisma or Drizzle. It helps organize controllers and services, validate request data, and handle multi-step database updates atomically.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/2428424081cn/skill-mcp/nestjs-prisma-drizzle
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 2428424081cn/Skill-mcp --skill nestjs-prisma-drizzle
Clone the repo
git clone --depth 1 https://github.com/2428424081cn/Skill-mcp

Made for: Claude Code, Codex.

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-prisma-drizzle

README.md
[![agentmods](https://agentmods.dev/badge/skills/2428424081cn/skill-mcp/nestjs-prisma-drizzle/github.svg)](https://agentmods.dev/skills/2428424081cn/skill-mcp/nestjs-prisma-drizzle)
Your own site
<a href="https://agentmods.dev/skills/2428424081cn/skill-mcp/nestjs-prisma-drizzle"><img src="https://agentmods.dev/badge/skills/2428424081cn/skill-mcp/nestjs-prisma-drizzle/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-prisma-drizzle

Your own site · 80×15
<a href="https://agentmods.dev/skills/2428424081cn/skill-mcp/nestjs-prisma-drizzle"><img src="https://agentmods.dev/badge/skills/2428424081cn/skill-mcp/nestjs-prisma-drizzle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 344 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.00033 $0.00344
Opus 5 $0.00016 $0.00172
Sonnet 5 $0.00007 $0.00069
Haiku 4.5 $0.00003 $0.00034

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

Security

Grade A, and why

nestjs-prisma-drizzle 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 11d 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/backend/nestjs-prisma-drizzle/SKILL.md · 38 lines

What it actually says

NestJS 与类型安全 ORM (Prisma / Drizzle) 架构规范

1. 模块边界与依赖注入

  • 每个业务功能必须是一个自包含的 FeatureModule(包含 Controller, Service, DTO, Repository)。
  • 跨模块共享必须通过 exports: [FeatureService] 显式导出。

2. 全局参数校验与 DTO

  • 开启全局 ValidationPipe({ whitelist: true, forbidNonWhitelisted: true, transform: true })
  • 所有入参必须显式声明 DTO 并使用 class-validator 装饰器校验:
import { IsEmail, IsString, MinLength } from 'class-validator';

export class CreateUserDto {
  @IsEmail({}, { message: '请输入合法的邮箱地址' })
  email: string;

  @IsString()
  @MinLength(8, { message: '密码长度不得小于 8 位' })
  password: string;
}

3. ORM 事务与原子性

  • 必须使用交互式事务保证多表操作原子性:
await this.prisma.$transaction(async (tx) => {
  const order = await tx.order.create({ data: orderData });
  await tx.inventory.decrement({ where: { id: productId }, by: quantity });
  return order;
});
Files

What ships with it

1 file 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. 11d ago First seen · 38 lines · 33 tokens per session scan A 56b79bc741c6

Subscribe to this mod's changes

nestjs-prisma-drizzle is a skill published in the GitHub repository 2428424081cn/Skill-mcp (1 stars, last pushed 17d ago), licensed MIT. It adds 33 tokens to every session and 344 once invoked, about $0.0002 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

event-store-design

Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.

wshobson/agents · 33 tokens

convex-explain-app

Explain an existing Convex app — data model + relationships, public vs internal functions, auth/ownership model, components, a request→data flow — read from the schema and function surface. Read-only.

openclaw/clawhub · 47 tokens

platform-custom-field-generate

Use this skill when users need to create, generate, or validate Salesforce Custom Field metadata. Trigger when users mention custom fields, field types, Roll-up Summary fields, Master-Detail relationships, Lookup relationships, formula fields, picklists, dependent (controlling) picklists, referencing a value set from…

forcedotcom/sf-skills · 194 tokens

durable-objects

Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.

fcakyon/claude-codex-settings · 22 tokens

field-service-sobject-create-configure

Headless 360 REST API deployment step for creating sObject records. Handles describe-based field discovery, required-field derivation, entity-relationship ordering, and composite graph transactions. Use this skill when a designer skill (or a user directly) needs to create sObject records after design confirmation…

forcedotcom/sf-skills · 74 tokens

nornicdb-grpc

Drive NornicDB over gRPC — the Qdrant-compatible surface (Collections, Points, Snapshots) plus the additive NornicSearch service. Use when ingesting via Qdrant SDKs, migrating from Qdrant, or running hybrid text+vector search from a non-Bolt client. Covers connection, RPC catalog, collection→database mapping…

orneryd/NornicDB · 98 tokens