๐ŸŽฏ

nestjs

๐ŸŽฏSkill

from partme-ai/full-stack-skills

VibeIndex|
What it does

Provides comprehensive NestJS guidance, covering architecture, modules, controllers, providers, middleware, security, and advanced integrations with practical examples.

๐Ÿ“ฆ

Part of

partme-ai/full-stack-skills(119 items)

nestjs

Installation

Add MarketplaceAdd marketplace to Claude Code
/plugin marketplace add https://github.com/teachingai/full-stack-skills.git
Add MarketplaceAdd marketplace to Claude Code
/plugin marketplace add teachingai/full-stack-skills
Claude CodeAdd plugin in Claude Code
/plugin marketplace remove full-stack-skills
Install PluginInstall plugin from marketplace
/plugin install development-skills@full-stack-skills
Install PluginInstall plugin from marketplace
/plugin install development-skills-utils@full-stack-skills

+ 11 more commands

๐Ÿ“– Extracted from docs: partme-ai/full-stack-skills
3Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

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.

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
  1. Load the appropriate example file from the examples/ directory
  1. 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

  1. 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/guards
  • examples/fundamentals/interceptors.md โ†’ https://docs.nestjs.com/interceptors
  • examples/overview/custom-decorators.md โ†’ https://docs.nestjs.com/custom-decorators

Fundamentals (ๅŸบ็ก€)

  • examples/fundamentals/custom-providers.md โ†’ https://docs.nestjs.com/fundamentals/custom-providers
  • examples/fundamentals/async-providers.md โ†’ https://docs.nestjs.com/fundamentals/async-providers
  • examples/fundamentals/dynamic-modules.md โ†’ https://docs.nestjs.com/fundamentals/dynamic-modules
  • examples/fundamentals/module-ref.md โ†’ https://docs.nestjs.com/fundamentals/module-ref
  • examples/fundamentals/execution-context.md โ†’ https://docs.nestjs.com/fundamentals/execution-context
  • examples/fundamentals/lifecycle-events.md โ†’ https://docs.nestjs.com/fundamentals/lifecycle-events
  • examples/fundamentals/injection-scopes.md โ†’ https://docs.nestjs.com/fundamentals/injection-scopes
  • examples/fundamentals/request-scoped.md โ†’ https://docs.nestjs.com/fundamentals/request-scoped
  • examples/fundamentals/circular-dependency.md โ†’ https://docs.nestjs.com/fundamentals/circular-dependency

Techniques (ๆŠ€ๅทง)

  • examples/techniques/configuration.md โ†’ https://docs.nestjs.com/techniques/configuration
  • examples/techniques/validation.md โ†’ https://docs.nestjs.com/techniques/validation
  • examples/techniques/serialization.md โ†’ https://docs.nestjs.com/techniques/serialization
  • examples/techniques/caching.md โ†’ https://docs.nestjs.com/techniques/caching
  • examples/techniques/logger.md โ†’ https://docs.nestjs.com/techniques/logger
  • examples/techniques/events.md โ†’ https://docs.nestjs.com/techniques/events
  • examples/techniques/task-scheduling.md โ†’ https://docs.nestjs.com/techniques/task-scheduling
  • examples/techniques/queues.md โ†’ https://docs.nestjs.com/techniques/queues
  • examples/techniques/file-upload.md โ†’ https://docs.nestjs.com/techniques/file-upload
  • examples/techniques/streaming-files.md โ†’ https://docs.nestjs.com/techniques/streaming-files
  • examples/techniques/database.md โ†’ https://docs.nestjs.com/techniques/database
  • examples/techniques/mongodb.md โ†’ https://docs.nestjs.com/techniques/mongodb
  • examples/techniques/mongoose.md โ†’ https://docs.nestjs.com/techniques/mongoose
  • examples/techniques/sequelize.md โ†’ https://docs.nestjs.com/techniques/sequelize
  • examples/techniques/prisma.md โ†’ https://docs.nestjs.com/recipes/prisma

Security (ๅฎ‰ๅ…จ)

  • examples/security/authentication.md โ†’ https://docs.nestjs.com/security/authentication
  • examples/security/authorization.md โ†’ https://docs.nestjs.com/security/authorization
  • examples/security/helmet.md โ†’ https://docs.nestjs.com/security/helmet
  • examples/security/cors.md โ†’ https://docs.nestjs.com/security/cors
  • examples/security/rate-limiting.md โ†’ https://docs.nestjs.com/security/rate-limiting

GraphQL

  • examples/graphql/quick-start.md โ†’ https://docs.nestjs.com/graphql/quick-start
  • examples/graphql/resolvers.md โ†’ https://docs.nestjs.com/graphql/resolvers
  • examples/graphql/scalars.md โ†’ https://docs.nestjs.com/graphql/scalars
  • examples/graphql/interfaces.md โ†’ https://docs.nestjs.com/graphql/interfaces
  • examples/graphql/unions.md โ†’ https://docs.nestjs.com/graphql/unions
  • examples/graphql/directives.md โ†’ https://docs.nestjs.com/graphql/directives
  • examples/graphql/plugins.md โ†’ https://docs.nestjs.com/graphql/plugins
  • examples/graphql/subscriptions.md โ†’ https://docs.nestjs.com/graphql/subscriptions
  • examples/graphql/federation.md โ†’ https://docs.nestjs.com/graphql/federation
  • examples/graphql/migration.md โ†’ https://docs.nestjs.com/graphql/migration

WebSockets

  • examples/websockets/gateways.md โ†’ https://docs.nestjs.com/websockets/gateways
  • examples/websockets/exception-filters.md โ†’ https://docs.nestjs.com/websockets/exception-filters
  • examples/websockets/guards.md โ†’ https://docs.nestjs.com/websockets/guards
  • examples/websockets/interceptors.md โ†’ https://docs.nestjs.com/websockets/interceptors
  • examples/websockets/adapters.md โ†’ https://docs.nestjs.com/websockets/adapters

Microservices

  • examples/microservices/basics.md โ†’ https://docs.nestjs.com/microservices/basics
  • examples/microservices/redis.md โ†’ https://docs.nestjs.com/microservices/redis
  • examples/microservices/mqtt.md โ†’ https://docs.nestjs.com/microservices/mqtt
  • examples/microservices/nats.md โ†’ https://docs.nestjs.com/microservices/nats
  • examples/microservices/kafka.md โ†’ https://docs.nestjs.com/microservices/kafka
  • examples/microservices/grpc.md โ†’ https://docs.nestjs.com/microservices/grpc
  • examples/microservices/rabbitmq.md โ†’ https://docs.nestjs.com/microservices/rabbitmq
  • examples/microservices/custom-transport.md โ†’ https://docs.nestjs.com/microservices/custom-transport
  • examples/microservices/hybrid-application.md โ†’ https://docs.nestjs.com/microservices/hybrid-application

OpenAPI (Swagger)

  • examples/openapi/introduction.md โ†’ https://docs.nestjs.com/openapi/introduction
  • examples/openapi/operations.md โ†’ https://docs.nestjs.com/openapi/operations
  • examples/openapi/types-and-parameters.md โ†’ https://docs.nestjs.com/openapi/types-and-parameters
  • examples/openapi/security.md โ†’ https://docs.nestjs.com/openapi/security
  • examples/openapi/mapped-types.md โ†’ https://docs.nestjs.com/openapi/mapped-types

CLI & Testing & Recipes

  • examples/cli/overview.md โ†’ https://docs.nestjs.com/cli/overview
  • examples/testing/unit-testing.md โ†’ https://docs.nestjs.com/fundamentals/testing
  • examples/testing/e2e-testing.md โ†’ https://docs.nestjs.com/fundamentals/testing
  • examples/recipes/cqrs.md โ†’ https://docs.nestjs.com/recipes/cqrs
  • examples/recipes/mikroorm.md โ†’ https://docs.nestjs.com/recipes/mikroorm
  • examples/recipes/terminus.md โ†’ https://docs.nestjs.com/recipes/terminus
  • examples/faq.md โ†’ https://docs.nestjs.com/faq

Examples and Templates

This skill includes detailed examples organized to match the NestJS official documentation structure (https://docs.nestjs.com/). All examples are in the examples/ directory, organized by topic (see mapping above).

To use examples:

  • Identify the topic from the user's request
  • Load the appropriate example file from the mapping above
  • Follow the instructions, syntax, and best practices in that file
  • Adapt the code examples to your specific use case

To use templates:

  • Reference templates in templates/ directory for common scaffolding
  • Templates include: controller, provider, module, middleware, guard, pipe, interceptor, exception filter, DTO, and project structure
  • Adapt templates to your specific needs and coding style

Best Practices

  1. Use dependency injection: Leverage NestJS DI container for better testability and maintainability
  2. Organize by modules: Group related functionality into feature modules
  3. Use decorators consistently: Follow NestJS decorator patterns for controllers, providers, and routes
  4. Validate input data: Use ValidationPipe and DTOs for request validation
  5. Handle errors gracefully: Implement global exception filters for consistent error handling
  6. Use guards for authorization: Protect routes with guards rather than inline checks
  7. Leverage interceptors: Use interceptors for cross-cutting concerns like logging and transformation
  8. Type safety: Use TypeScript for better type safety and developer experience
  9. Test thoroughly: Write unit tests for services and E2E tests for API endpoints
  10. Follow official patterns: Refer to official documentation for recommended patterns and practices

Resources

  • Official Documentation: https://docs.nestjs.com/
  • GitHub Repository: https://github.com/nestjs/nest

Keywords

NestJS, Node.js, framework, controller, provider, module, middleware, exception filter, pipe, guard, interceptor, dependency injection, GraphQL, WebSocket, microservice, OpenAPI, Swagger, testing, validation, caching, logging, TypeScript, decorator, DI, IoC, ๆŽงๅˆถๅ™จ, ๆไพ›่€…, ๆจกๅ—, ไธญ้—ดไปถ, ๅฎˆๅซ, ็ฎก้“, ๆ‹ฆๆˆชๅ™จ, ไพ่ต–ๆณจๅ…ฅ