nestjs-best-practices
✓使用 TypeScript 的企业 Node.js 应用程序的 NestJS 11+ 最佳实践。在编写、审查或重构 NestJS 控制器、服务、模块或 API 时使用。触发:NestJS 模块、控制器、提供程序、依赖项注入、@Injectable、@Controller、@Module、中间件、防护装置、拦截器、管道、异常过滤器、ValidationPipe、类验证器、类转换器、DTO、JWT 身份验证、Passport 策略、@nestjs/passport、TypeORM 实体、Prisma 客户端、Drizzle ORM、存储库模式、循环依赖项、forwardRef、@nestjs/swagger、OpenAPI装饰器、GraphQL 解析器、@nestjs/graphql、微服务、TCP 传输、Redis 传输、NATS、Kafka、NestJS 11 重大更改、Express v5 迁移、自定义装饰器、ConfigService、@nestjs/config、运行状况检查或 NestJS 测试模式。
SKILL.md
| Core Architecture | Modules, Providers, DI, forwardRef, custom decorators | core-architecture.md | | Request Lifecycle | Middleware, Guards, Interceptors, Pipes, Filters | request-lifecycle.md | | Validation & Pipes | DTOs, class-validator, ValidationPipe, transforms | validation-pipes.md |
| Authentication | JWT, Passport, Guards, Local/OAuth strategies, RBAC | authentication.md | | Database | TypeORM, Prisma, Drizzle ORM, repository patterns | database-integration.md | | Testing | Unit tests, E2E tests, mocking providers | testing.md | | OpenAPI & GraphQL | Swagger decorators, resolvers, subscriptions | openapi-graphql.md |
| Microservices | TCP, Redis, NATS, Kafka patterns | microservices.md |
使用 TypeScript 的企业 Node.js 应用程序的 NestJS 11+ 最佳实践。在编写、审查或重构 NestJS 控制器、服务、模块或 API 时使用。触发:NestJS 模块、控制器、提供程序、依赖项注入、@Injectable、@Controller、@Module、中间件、防护装置、拦截器、管道、异常过滤器、ValidationPipe、类验证器、类转换器、DTO、JWT 身份验证、Passport 策略、@nestjs/passport、TypeORM 实体、Prisma 客户端、Drizzle ORM、存储库模式、循环依赖项、forwardRef、@nestjs/swagger、OpenAPI装饰器、GraphQL 解析器、@nestjs/graphql、微服务、TCP 传输、Redis 传输、NATS、Kafka、NestJS 11 重大更改、Express v5 迁移、自定义装饰器、ConfigService、@nestjs/config、运行状况检查或 NestJS 测试模式。 来源:ejirocodes/agent-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/ejirocodes/agent-skills --skill nestjs-best-practices- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-15
- 更新时间
- 2026-02-18
快速解答
什么是 nestjs-best-practices?
使用 TypeScript 的企业 Node.js 应用程序的 NestJS 11+ 最佳实践。在编写、审查或重构 NestJS 控制器、服务、模块或 API 时使用。触发:NestJS 模块、控制器、提供程序、依赖项注入、@Injectable、@Controller、@Module、中间件、防护装置、拦截器、管道、异常过滤器、ValidationPipe、类验证器、类转换器、DTO、JWT 身份验证、Passport 策略、@nestjs/passport、TypeORM 实体、Prisma 客户端、Drizzle ORM、存储库模式、循环依赖项、forwardRef、@nestjs/swagger、OpenAPI装饰器、GraphQL 解析器、@nestjs/graphql、微服务、TCP 传输、Redis 传输、NATS、Kafka、NestJS 11 重大更改、Express v5 迁移、自定义装饰器、ConfigService、@nestjs/config、运行状况检查或 NestJS 测试模式。 来源:ejirocodes/agent-skills。
如何安装 nestjs-best-practices?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/ejirocodes/agent-skills --skill nestjs-best-practices 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/ejirocodes/agent-skills