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 midudev

Guides AI assistants to write, review, and refactor NestJS code using 40 best-practice rules. It is for developers building production-ready NestJS applications.

  • Score 86
  • 7k stars
  • NOASSERTION
  • 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/midudev/autoskills /tmp/autoskills && mkdir -p ~/.claude/skills && cp -r /tmp/autoskills/packages/autoskills/skills-registry/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 an agent skill built from a SKILL.md file. It contains 40 rules across 10 categories: architecture, dependency injection, error handling, security, performance, testing, database and ORM, API design, microservices, and DevOps and deployment. The rules are ordered by impact, with architecture and dependency injection marked as critical.

The skill tells the assistant when to apply these guidelines, such as writing new modules, controllers, or services, implementing authentication, reviewing code, or optimizing queries. Each rule has its own file with a short explanation, an incorrect code example, and a correct one. The skill points to individual rule files and to a compiled AGENTS.md document for the full guide. It is aimed at developers who use an AI assistant on NestJS projects.

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

What it can do

  • Architecture rulesCovers circular dependencies, feature modules, module sharing, single responsibility, repositories, and events.
  • Dependency injection rulesCovers constructor injection, injection tokens, interface segregation, scope awareness, and avoiding service locators.
  • Error handling rulesCovers exception filters, NestJS HTTP exceptions, and handling async errors.
  • Security rulesCovers JWT authentication, input validation with class-validator, guards, output sanitizing, and rate limiting.
  • Performance rulesCovers async lifecycle hooks, caching strategies, database query optimization, and lazy loading modules.
  • Testing rulesCovers the NestJS testing module, E2E testing with Supertest, and mocking external services.
  • Database and ORM rulesCovers transactions, avoiding N+1 queries, and using migrations for schema changes.
  • API design rulesCovers DTO serialization, interceptors, API versioning, and input transformation with pipes.
  • Microservices rulesCovers message and event patterns, health checks, and background job queues.
  • DevOps rulesCovers configuration modules, structured logging, and graceful shutdown.

Try asking

  • Review this NestJS module for circular dependencies and architecture issues
  • Refactor this NestJS service to follow single responsibility best practices
  • Check my NestJS controller for input validation and security problems

Good to know

  • The source is a set of guideline documents, not executable code.
  • Rules are prioritized by impact, so critical areas should be checked first.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/autoskills/skills-registry/nestjs-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB
  • rules/_sections.md2 KB
  • rules/_template.md631 B
  • rules/api-use-dto-serialization.md4 KB
  • rules/api-use-interceptors.md5 KB
Show all 43 files
  • rules/api-use-pipes.md5 KB
  • rules/api-versioning.md5 KB
  • rules/arch-avoid-circular-deps.md2 KB
  • rules/arch-feature-modules.md2 KB
  • rules/arch-module-sharing.md4 KB
  • rules/arch-single-responsibility.md3 KB
  • rules/arch-use-events.md3 KB
  • rules/arch-use-repository-pattern.md3 KB
  • rules/db-avoid-n-plus-one.md4 KB
  • rules/db-use-migrations.md4 KB
  • rules/db-use-transactions.md4 KB
  • rules/devops-graceful-shutdown.md6 KB
  • rules/devops-use-config-module.md4 KB
  • rules/devops-use-logging.md6 KB
  • rules/di-avoid-service-locator.md3 KB
  • rules/di-interface-segregation.md5 KB
  • rules/di-liskov-substitution.md7 KB
  • rules/di-prefer-constructor-injection.md2 KB
  • rules/di-scope-awareness.md3 KB
  • rules/di-use-interfaces-tokens.md3 KB
  • rules/error-handle-async-errors.md3 KB
  • rules/error-throw-http-exceptions.md3 KB
  • rules/error-use-exception-filters.md4 KB
  • rules/micro-use-health-checks.md6 KB
  • rules/micro-use-patterns.md5 KB

And 13 more files on GitHub.

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

What does the nestjs-best-practices skill cover?

It covers 40 rules in 10 categories, including architecture, dependency injection, security, performance, testing, and database use. Each category is tagged with a priority level.

When should an assistant use this skill?

The source says to use it when writing, reviewing, or refactoring NestJS code. It also applies to authentication, query optimization, and microservices work.

Where can I find the full guide?

The source links to AGENTS.md in the Kadajett/agent-nestjs-skills repository, which contains all rules expanded in one document.

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 NOASSERTION licence. The service it connects to may have its own pricing.

Is nestjs-best-practices safe to use?

It scores 86 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. 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.