nestjs-dev

nestjs-dev is a skill for Claude Code, Codex 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 CodeCodex

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.

agentmods
npx agentmods add skills/cass-2003/local-workflow-skill/nestjs-dev
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, 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-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/nestjs-dev.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00085 $0.02272
Opus 5 $0.00043 $0.01136
Sonnet 5 $0.00017 $0.00454
Haiku 4.5 $0.00009 $0.00227

Measured 4d ago against content hash 51f63d8f32aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 扫描配置:
    • Globnest-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/testingTest.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. 4d 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 1mo ago), licensed MIT. It adds 85 tokens to every session and 2,272 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

schema-exploration

Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.

langchain-ai/deepagents · 57 tokens

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens

deploy-docker-compose

Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…

omnigent-ai/omnigent · 84 tokens

moderator-page-migration

Port a moderator page from the main Next.js app (src/pages/moderator/) into apps/moderator. Use when asked to migrate, move or cut over a /moderator/ page to the spoke, or to port its tRPC procedures and Prisma services to SvelteKit loads/actions and Kysely.

civitai/civitai · 71 tokens

dsql

Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL and PostgreSQL-to-DSQL schema conversion, foreign key…

awslabs/agent-plugins · 229 tokens

sql-translate

Translate SQL queries between database dialects (Snowflake, BigQuery, PostgreSQL, MySQL, etc.).

AltimateAI/altimate-code · 26 tokens