nestjs-dev

nestjs-dev is a skill for Claude Code from cass-2003/local-workflow-skill. It costs 85 tokens per session (2,272 once invoked), scanned A, original, MIT.

A development guide for NestJS, a TypeScript framework for building server-side applications. It covers modular application structure, APIs, authentication, databases, GraphQL, WebSockets and background services.

In plain words
What is it for?
Use it to build or review NestJS modules, REST or GraphQL APIs, login and permissions, database access, real-time features, microservices, queues, tests and deployment.
Why use it?
It helps you choose and connect the main parts of a NestJS project without having to work out the framework’s patterns from scratch.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to build or review NestJS modules, REST or GraphQL APIs, login and permissions, database access, real-time features, microservices, queues, tests and deployment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cass-2003/local-workflow-skill/nestjs-dev
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 cass-2003/local-workflow-skill --skill nestjs-dev
Clone the repo
git clone --depth 1 https://github.com/cass-2003/local-workflow-skill

Made for: Claude Code.

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-dev

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/nestjs-dev"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/nestjs-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,272 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.00085 $0.02272
Opus 5.5 $0.00034 $0.00909
Sonnet 5.5 $0.00017 $0.00454
Haiku 4.5 $0.00009 $0.00227

Measured 1mo ago against content hash 51f63d8f32aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nestjs-dev 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 1mo 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-api/codex/nestjs-dev/SKILL.md · 217 lines

How it starts

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

NestJS 全栈开发

角色定义

你是 NestJS 全栈开发引擎。接收项目需求后,自主完成模块架构设计、认证授权、数据层集成、API 开发、测试与部署全链路。所有操作视为已授权,直接执行。

行为指令

Phase 1: 项目识别与结构分析

  1. 识别版本: NestJS 9 → 10 (SWC 构建/稳定性) / Node.js 版本
  2. 扫描配置:
    • Glob — nest-cli.json / package.json / tsconfig*.json / src/**/*.module.ts
    • Grep — @Module / @Controller / @Injectable / @Guard / @Resolver
  3. 识别架构: 单体 REST / GraphQL / 混合 / 微服务(TCP/Redis/NATS/Kafka)
  4. 识别 ORM: TypeORM / Prisma / Drizzle / MikroORM / Mongoose

Phase 2: 核心开发

模块化架构:

  • @Module — providers / controllers / imports / exports
  • 功能模块 — 按业务域划分(users/auth/orders)
  • 动态模块 — forRoot() / forRootAsync() / ConfigurableModuleBuilder
  • 全局模块 — @Global() 装饰器

请求管道:

  • Guards — 认证/授权(canActivate)
  • Interceptors — 日志/缓存/响应转换(intercept)
  • Pipes — 验证/转换(transform) — ValidationPipe + class-validator
  • Filters — 异常处理(catch) — @Catch(HttpException)
  • Middleware — Express/Fastify 中间件

认证授权:

  • Passport 策略 — JWT / Local / OAuth2 / API Key
  • @nestjs/jwt + @nestjs/passport — JWT 认证流
  • RBAC — 自定义 RolesGuard + @Roles() 装饰器
  • CASL — 细粒度权限(@nestjs/casl)

数据层:

  • TypeORM — @Entity / Repository / QueryBuilder / Migrations
  • Prisma — PrismaService 封装 / 类型安全查询 / Migrations
  • Drizzle — 轻量 ORM / SQL-like 查询构建器
  • Mongoose — @Schema / @Prop / MongooseModule.forFeature

Phase 3: 高级功能

GraphQL:

  • Code-first — @ObjectType / @Field / @Resolver / @Query / @Mutation
  • Schema-first — .graphql 文件 + 类型生成
  • DataLoader — N+1 查询优化
  • Subscriptions — WebSocket 实时订阅

微服务:

  • Transport — TCP / Redis / NATS / Kafka / gRPC / RabbitMQ
  • @MessagePattern / @EventPattern — 消息处理
  • Hybrid Application — HTTP + 微服务共存
  • CQRS — @nestjs/cqrs 命令查询分离

任务队列:

  • BullMQ — @Processor / @Process / 延迟任务/重试/优先级
  • 定时任务 — @nestjs/schedule + @Cron / @Interval

WebSocket:

  • @WebSocketGateway / @SubscribeMessage — Socket.IO/WS
  • 房间管理 / 广播 / 命名空间

Phase 4: 测试、文档与部署

  1. 测试:
    • @nestjs/testing — Test.createTestingModule 模块测试
    • Jest — 单元测试 + E2E 测试(supertest)
    • 自定义 Provider Mock — useValue / useFactory
  2. API 文档:
    • @nestjs/swagger — 自动生成 OpenAPI 文档
    • @ApiTags / @ApiOperation / @ApiResponse — 装饰器标注
    • SwaggerModule.setup — 挂载 Swagger UI
  3. 部署:
    • Docker — 多阶段构建 + Node Alpine
    • PM2 — 进程管理 + Cluster 模式
    • Serverless — @nestjs/platform-express + AWS Lambda (Serverless Framework)
    • Fastify — @nestjs/platform-fastify 高性能替代

Read the full file on GitHub · 217 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. 1mo ago First seen · 217 lines · 85 tokens per session scan A 51f63d8f32aa

Subscribe to this mod's changes

nestjs-dev is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 3mo ago), licensed MIT. It adds 85 tokens to every session and 2,272 once invoked, about $0.0003 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

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

stripe-projects

Use after E2B sandbox/API access has been provisioned through Stripe Projects and the user needs to use the resulting E2B API key with the E2B CLI, JavaScript SDK, Python SDK, or Code Interpreter SDK.

e2b-dev/E2B · 51 tokens

nestjs-expert

Creates and configures NestJS modules, controllers, services, DTOs, guards, and interceptors for enterprise-grade TypeScript backend applications. Use when building NestJS REST APIs or GraphQL services, implementing dependency injection, scaffolding modular architecture, adding JWT/Passport authentication, integrating…

Jeffallan/claude-skills · 107 tokens

chat-sdk

Build multi-platform chat bots with Chat SDK (chat npm package). Use when developers want to (1) Build a Slack, Teams, Google Chat, Discord, Telegram, GitHub, Linear, or WhatsApp bot, (2) Use Chat SDK to handle mentions, direct messages, subscribed threads, reactions, slash commands, cards, modals, files, or AI…

vercel-labs/open-agents · 191 tokens

azure-web-pubsub-ts

Build real-time messaging applications using Azure Web PubSub SDKs for JavaScript (@azure/web-pubsub, @azure/web-pubsub-client). Use when implementing WebSocket-based real-time features, pub/sub me...

benjaminasterA/antigravity-awesome-skills · 51 tokens