
nestjs
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.
- Installs
- 131
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/partme-ai/full-stack-skills --skill nestjs- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads nestjs automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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
-
Identify the topic from the user's request and find the corresponding example file in the mapping below
-
Load the appropriate example file from the
examples/directory -
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
-
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-stepsexamples/fundamentals/controllers.md→ https://docs.nestjs.com/controllersexamples/fundamentals/providers.md→ https://docs.nestjs.com/providersexamples/fundamentals/modules.md→ https://docs.nestjs.com/modulesexamples/fundamentals/middleware.md→ https://docs.nestjs.com/middlewareexamples/fundamentals/exception-filters.md→ https://docs.nestjs.com/exception-filtersexamples/fundamentals/pipes.md→ https://docs.nestjs.com/pipesexamples/fundamentals/guards.md→ https://docs.nestjs.com/guardsexamples/fundamentals/interceptors.md→ https://docs.nestjs.com/interceptorsexamples/overview/custom-decorators.md→ https://docs.nestjs.com/custom-decorators
Fundamentals (基础)
examples/fundamentals/custom-providers.md→ https://docs.nestjs.com/fundamentals/custom-providersexamples/fundamentals/async-providers.md→ https://docs.nestjs.com/fundamentals/async-providersexamples/fundamentals/dynamic-modules.md→ https://docs.nestjs.com/fundamentals/dynamic-modulesexamples/fundamentals/module-ref.md→ https://docs.nestjs.com/fundamentals/module-refexamples/fundamentals/execution-context.md→ https://docs.nestjs.com/fundamentals/execution-contextexamples/fundamentals/lifecycle-events.md→ https://docs.nestjs.com/fundamentals/lifecycle-eventsexamples/fundamentals/injection-scopes.md→ https://docs.nestjs.com/fundamentals/injection-scopesexamples/fundamentals/request-scoped.md→ https://docs.nestjs.com/fundamentals/request-scopedexamples/fundamentals/circular-dependency.md→ https://docs.nestjs.com/fundamentals/circular-dependency
Techniques (技巧)
examples/techniques/configuration.md→ https://docs.nestjs.com/techniques/configurationexamples/techniques/validation.md→ https://docs.nestjs.com/techniques/validationexamples/techniques/serialization.md→ https://docs.nestjs.com/techniques/serializationexamples/techniques/caching.md→ https://docs.nestjs.com/techniques/cachingexamples/techniques/logger.md→ https://docs.nestjs.com/techniques/loggerexamples/techniques/events.md→ https://docs.nestjs.com/techniques/eventsexamples/techniques/task-scheduling.md→ https://docs.nestjs.com/techniques/task-schedulingexamples/techniques/queues.md→ https://docs.nestjs.com/techniques/queuesexamples/techniques/file-upload.md→ https://docs.nestjs.com/techniques/file-uploadexamples/techniques/streaming-files.md→ https://docs.nestjs.com/techniques/streaming-filesexamples/techniques/database.md→ https://docs.nestjs.com/techniques/databaseexamples/techniques/mongodb.md→ https://docs.nestjs.com/techniques/mongodbexamples/techniques/mongoose.md→ https://docs.nestjs.com/techniques/mongooseexamples/techniques/sequelize.md→ https://docs.nestjs.com/techniques/sequelizeexamples/techniques/prisma.md→ https://docs.nestjs.com/recipes/prisma
Security (安全)
examples/security/authentication.md→ https://docs.nestjs.com/security/authenticationexamples/security/authorization.md→ https://docs.nestjs.com/security/authorizationexamples/security/helmet.md→ https://docs.nestjs.com/security/helmetexamples/security/cors.md→ https://docs.nestjs.com/security/corsexamples/security/rate-limiting.md→ https://docs.nestjs.com/security/rate-limiting
GraphQL
examples/graphql/quick-start.md→ https://docs.nestjs.com/graphql/quick-startexamples/graphql/resolvers.md→ https://docs.nestjs.com/graphql/resolversexamples/graphql/scalars.md→ https://docs.nestjs.com/graphql/scalarsexamples/graphql/interfaces.md→ https://docs.nestjs.com/graphql/interfacesexamples/graphql/unions.md→ https://docs.nestjs.com/graphql/unionsexamples/graphql/directives.md→ https://docs.nestjs.com/graphql/directivesexamples/graphql/plugins.md→ https://docs.nestjs.com/graphql/pluginsexamples/graphql/subscriptions.md→ https://docs.nestjs.com/graphql/subscriptionsexamples/graphql/federation.md→ https://docs.nestjs.com/graphql/federationexamples/graphql/migration.md→ https://docs.nestjs.com/graphql/migration
WebSockets
examples/websockets/gateways.md→ https://docs.nestjs.com/websockets/gatewaysexamples/websockets/exception-filters.md→ https://docs.nestjs.com/websockets/exception-filtersexamples/websockets/guards.md→ https://docs.nestjs.com/websockets/guardsexamples/websockets/interceptors.md→ https://docs.nestjs.com/websockets/interceptorsexamples/websockets/adapters.md→ https://docs.nestjs.com/websockets/adapters
Microservices
examples/microservices/basics.md→ https://docs.nestjs.com/microservices/basicsexamples/microservices/redis.md→ https://docs.nestjs.com/microservices/redisexamples/microservices/mqtt.md→ https://docs.nestjs.com/microservices/mqttexamples/microservices/nats.md→ https://docs.nestjs.com/microservices/natsexamples/microservices/kafka.md→ https://docs.nestjs.com/microservices/kafkaexamples/microservices/grpc.md→ https://docs.nestjs.com/microservices/grpcexamples/microservices/rabbitmq.md→ https://docs.nestjs.com/microservices/rabbitmqexamples/microservices/custom-transport.md→ https://docs.nestjs.com/microservices/custom-transportexamples/microservices/hybrid-application.md→ https://docs.nestjs.com/microservices/hybrid-application
OpenAPI (Swagger)
examples/openapi/introduction.md→ https://docs.nestjs.com/openapi/introductionexamples/openapi/operations.md→ https://docs.nestjs.com/openapi/operationsexamples/openapi/types-and-parameters.md→ https://docs.nestjs.com/openapi/types-and-parametersexamples/openapi/security.md→ https://docs.nestjs.com/openapi/securityexamples/openapi/mapped-types.md→ https://docs.nestjs.com/openapi/mapped-types
CLI & Testing & Recipes
examples/cli/overview.md→ https://docs.nestjs.com/cli/overviewexamples/testing/unit-testing.md→ https://docs.nestjs.com/fundamentals/testingexamples/testing/e2e-testing.md→ https://docs.nestjs.com/fundamentals/testingexamples/recipes/cqrs.md→ https://docs.nestjs.com/recipes/cqrsexamples/recipes/mikroorm.md→ https://docs.nestjs.com/recipes/mikroormexamples/recipes/terminus.md→ https://docs.nestjs.com/recipes/terminusexamples/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
- Use dependency injection: Leverage NestJS DI container for better testability and maintainability
- Organize by modules: Group related functionality into feature modules
- Use decorators consistently: Follow NestJS decorator patterns for controllers, providers, and routes
- Validate input data: Use ValidationPipe and DTOs for request validation
- Handle errors gracefully: Implement global exception filters for consistent error handling
- Use guards for authorization: Protect routes with guards rather than inline checks
- Leverage interceptors: Use interceptors for cross-cutting concerns like logging and transformation
- Type safety: Use TypeScript for better type safety and developer experience
- Test thoroughly: Write unit tests for services and E2E tests for API endpoints
- 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, 控制器, 提供者, 模块, 中间件, 守卫, 管道, 拦截器, 依赖注入
FAQ
What does the nestjs skill do?
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.
How do I install nestjs?
Run npx skills add https://github.com/partme-ai/full-stack-skills --skill nestjs in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/nestjs/ (personal) or .claude/skills/nestjs/ (project).
Which AI agents can use nestjs?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is nestjs safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains nestjs?
It is published by partme-ai in partme-ai/full-stack-skills. It has 131 recorded installs.
More from partme-ai/full-stack-skills
electron
partme-ai/full-stack-skills
Build cross-platform desktop applications with Electron, covering main/renderer process architecture, IPC communication, BrowserWindow management, menus, tray icons, packaging, and security best practices. Use when the user asks about Electron, needs to create desktop applications, implement Electron features, or build cross-platform desktop apps.
element-plus-vue3
partme-ai/full-stack-skills
Provides comprehensive guidance for Element Plus Vue 3 component library including installation, components, themes, internationalization, and API reference. Use when the user asks about Element Plus for Vue 3, needs to build Vue 3 applications with Element Plus, or customize component styles.
uniapp-project
partme-ai/full-stack-skills
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
drawio-flowchart
partme-ai/full-stack-skills
Creates flowcharts, swim lane diagrams, and business process diagrams using Draw.io (diagrams.net). Covers standard flowchart shapes (process, decision, start/end), connectors, auto-layout, and export to PNG/SVG/PDF. Use when the user needs to visualize workflows, decision trees, or business processes.
vue3
partme-ai/full-stack-skills
Guidance for Vue 3 using the official guide and API reference. Use when the user needs Vue 3 concepts, patterns, or API details to build components, apps, and tooling.
course-designer
partme-ai/full-stack-skills
Design structured courses including syllabi, learning objectives using Bloom's taxonomy, lesson plans, and assessment rubrics. Use when the user asks about course design, needs to create a curriculum, write learning objectives, structure educational modules, or build assessment plans.
Popular security skills
azure-compliance
microsoft/azure-skills
Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.
minimal-run-and-audit
lllllllama/rigorpilot-skills
Rigor Run skill for README-first deep learning repo reproduction. Use when the task is specifically to capture or normalize evidence from the selected smoke test or documented inference or evaluation command and write standardized reprooutputs/ files, including patch notes when repository files changed. Do not use for training execution, initial repo intake, generic environment setup, paper lookup, target selection, hidden scientific-meaning changes, or end-to-end orchestration by itself.
seo-audit
coreyhaines31/marketingskills
When the user wants to audit, review, or diagnose SEO issues on their site. Also use when the user mentions "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," "SEO health check," "my traffic dropped," "lost rankings," "not showing up in Google," "site isn't ranking," "Google update hit me," "page speed," "core web vitals," "crawl errors," "indexing issues," "stuck on page 2," "striking distance keywords," "title tag rewrite," "low CTR," "local SEO," "Google Business Profile," or "map pack." Use this even if the user just says something vague like "my SEO is bad" or "help with SEO" — start with an audit. For building pages at scale to target keywords, see programmatic-seo. For adding structured data, see schema. For AI search optimization, see ai-seo.
firebase-security-rules-auditor
firebase/agent-skills
Audits Firebase (Firestore, Cloud Storage) security rules for vulnerabilities, privilege escalation, role bypasses, create vs update inconsistencies, resource exhaustion, type safety, size limits, and hasOnly ownership checks. Use when auditing/reviewing rules, running red-team rule assessments, or scoring against auditor checklists. Don't use for Firebase CLI (login, deploy), Auth, Crashlytics, Remote Config, or database queries.
audit
pbakaus/impeccable
Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns. Generates a scored report with P0-P3 severity ratings and actionable plan. Use when the user wants an accessibility check, performance audit, or technical quality review.
competitors
coreyhaines31/marketingskills
When the user wants to create competitor comparison or alternative pages for SEO and buyer-facing use. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'competitor teardown,' 'audit our competitor pages,' 'are our comparison pages out of date,' or 'competitive asset audit.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. For auditing existing claims (not researching competitors from scratch, which is competitor-profiling; not technical SEO on these pages, which is seo-audit), use the asset audit here. For internal battle cards and sales-specific competitor docs, see sales-enablement.