Provides comprehensive guidance for NestJS using the official documentation. Use when the user asks about NestJS architecture, controllers, providers, modules, middleware, guards, pipes, interceptors, dependency injection, GraphQL, WebSockets, microservices, OpenAPI/Swagger, security, or testing.
View on GitHubpartme-ai/full-stack-skills
development-skills-utils
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/partme-ai/full-stack-skills/blob/main/skills/nestjs/SKILL.md -a claude-code --skill nestjsInstallation paths:
.claude/skills/nestjs/## When to use this skill Use this skill whenever the user wants to: - Build or refactor a NestJS application - Implement controllers, providers, and modules - Apply middleware, pipes, guards, or interceptors - Configure DI scopes, dynamic modules, or lifecycle hooks - Add validation, serialization, caching, logging, or queues - Integrate GraphQL, WebSockets, or microservices - Document APIs with OpenAPI/Swagger - Implement authentication/authorization or security hardening - Write unit or e2e tests for NestJS ## How to use this skill 1. **Identify the topic** from the user's request and find the corresponding example file in the mapping below 2. **Load the appropriate example file** from the `examples/` directory 3. **Follow the specific instructions** in that example file for syntax, structure, and best practices **Important Notes**: - All examples follow NestJS official documentation structure - Examples include both JavaScript and TypeScript versions where applicable - Each example file includes key concepts, code examples, and official documentation links - Always check the example file for best practices and common patterns 4. **Use templates** from the `templates/` directory to speed up common scaffolding ### Doc mapping (one-to-one with https://docs.nestjs.com/) **Overview (概览)** - `examples/overview/introduction.md` → https://docs.nestjs.com/ - `examples/fundamentals/first-steps.md` → https://docs.nestjs.com/first-steps - `examples/fundamentals/controllers.md` → https://docs.nestjs.com/controllers - `examples/fundamentals/providers.md` → https://docs.nestjs.com/providers - `examples/fundamentals/modules.md` → https://docs.nestjs.com/modules - `examples/fundamentals/middleware.md` → https://docs.nestjs.com/middleware - `examples/fundamentals/exception-filters.md` → https://docs.nestjs.com/exception-filters - `examples/fundamentals/pipes.md` → https://docs.nestjs.com/pipes - `examples/fundamentals/guards.md` → https://docs.nestjs.com/g