Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

nestjs-best-practices

Skill by giuseppe-trisciuoglio

NestJS Best Practices gives AI assistants rules for building NestJS applications. It covers modules, dependency injection scoping, error handling, DTO validation and Drizzle ORM integration.

  • Score 70
  • 374 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install nestjs-best-practices

Built from the published package, never by AI.

git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kit /tmp/developer-kit && mkdir -p ~/.claude/skills && cp -r /tmp/developer-kit/plugins/developer-kit-typescript/skills/nestjs-best-practices ~/.claude/skills/nestjs-best-practices

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install nestjs-best-practices in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

NestJS Best Practices is a skill that gives an AI assistant guidance for building NestJS applications. It covers modular architecture, dependency injection scoping, the request lifecycle, error handling, DTO validation with class-validator, and Drizzle ORM integration. The skill says it is grounded in the official NestJS documentation.

The skill tells the assistant to give each domain feature its own module, default to singleton providers, and use a global ValidationPipe with transform and whitelist enabled. It also says to keep database logic out of controllers and avoid forwardRef() where possible. It includes an example workflow for a Product module with DTOs, a service and verification commands. It is aimed at developers designing NestJS modules, creating exception filters, validating DTOs or adding Drizzle ORM, and at reviewers checking NestJS code for anti-patterns.

Written from the project's SKILL.md and checked against it.

What it can do

  • Modular architectureGuides one @Module() per domain feature and export only what other modules need.
  • Dependency injection scopingExplains DEFAULT, REQUEST and TRANSIENT provider scopes and when to use each.
  • Request lifecycleDescribes the order of middleware, guards, interceptors, pipes, handlers and exception filters.
  • Error handlingRecommends HttpException subclasses, domain exceptions and a global ExceptionFilter.
  • DTO validationRecommends a global ValidationPipe with class-validator and class-transformer decorators.
  • Drizzle ORM integrationCovers wrapping the Drizzle client in a provider, repositories, schemas and transactions.
  • Constraint checksLists warnings such as avoiding REQUEST scope without justification and never hardcoding secrets.

What you need

  • A NestJS codebase
  • Jest for the example test command

Try asking

  • Review my NestJS module layout and flag any god modules
  • Create a class-validator DTO for a create-order request in NestJS
  • Add a global exception filter for domain errors in my NestJS app

Good to know

  • The skill references rule files in references/ and templates in assets/templates/ that are not included in the source shown.
  • Guidance focuses on NestJS patterns and does not describe other frameworks.

Security check

B
  • Allowed to use Write, Edit, Bash without limitsIn SKILL.md

Checked automatically: plugins/developer-kit-typescript/skills/nestjs-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditGlobGrepBash

Alternatives to nestjs-best-practices

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

nestjs-best-practices: common questions

Does this NestJS skill require Drizzle ORM?

The source includes Drizzle ORM integration as one section of the skill. It does not say Drizzle is required for the other guidance.

What ValidationPipe setup does it recommend?

It recommends enabling ValidationPipe globally with transform set to true and whitelist set to true. It also says not to skip ValidationPipe at the API boundary.

Is this skill based on official documentation?

Yes. The source says it is grounded in the Official NestJS Documentation at docs.nestjs.com.

How do I install nestjs-best-practices?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is nestjs-best-practices free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is nestjs-best-practices safe to use?

It scores 70 of 100. Grades: maintenance B, licence A, quality B. Security check: grade B (allowed to use write, edit, bash without limits). Review the code before you install. How grades work.

What are alternatives to nestjs-best-practices?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

nestjs-best-practices Install

Add to stack

Loading.