Agent skill

Nestjs Best Practices

by rolling-scopes in rolling-scopes/rsschool-app

NestJS best practices and architecture patterns for building production-ready applications.

MITAuto-check passedBackend & APIs

Install Nestjs Best Practices

skills CLI
$ npx skills add rolling-scopes/rsschool-app --skill nestjs-best-practices -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install rolling-scopes/rsschool-app nestjs-best-practices --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/rolling-scopes/rsschool-app.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/nestjs-best-practices .claude/skills/nestjs-best-practices && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
nestjs-best-practices
GitHub stars
10k
Used in
6 other repos
Token cost
~1.2k tokens
SKILL.md length
391 words
Files
51 (incl. scripts)
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

NestJS best practices and architecture patterns for building production-ready applications.

  • Works in 10 steps: Architecture (CRITICAL) → Dependency Injection (CRITICAL) → Error Handling (HIGH) → …
  • Tasks that involve Design patterns
  • SKILL.md covers When to Apply, Rule Categories by Priority, Quick Reference and How to Use, plus 1 more section
  • Tasks that involve Software architecture

What it does

Nestjs Best Practices is an agent skill from rolling-scopes/rsschool-app. NestJS best practices and architecture patterns for building production-ready applications. This skill should be used when writing, reviewing, or refactoring NestJS code to ensure proper patterns for modules, dependency injection, security, and performance.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 53 other files, including scripts (for example `.github/workflows/branch-protection.yml`, `.github/workflows/deploy.yml` and `AGENTS.md`).

It sits in Backend & APIs, covering Design patterns, Software architecture and Refactoring. It works with NestJS. The repository describes itself as: An application for the RS School education process. The licence is MIT.

When your agent uses it

  • Tasks that involve Design patterns
  • Tasks that involve Software architecture
  • Tasks that involve Refactoring

Example prompts

  • “Use the nestjs-best-practices skill to nestj best practices and architecture patterns for building production-ready applications”
  • “/nestjs-best-practices”

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Architecture (CRITICAL)
  2. Dependency Injection (CRITICAL)
  3. Error Handling (HIGH)
  4. Security (HIGH)
  5. Performance (HIGH)
  6. Testing (MEDIUM-HIGH)
  7. Database & ORM (MEDIUM-HIGH)
  8. API Design (MEDIUM)
  9. Microservices (MEDIUM)
  10. DevOps & Deployment (LOW-MEDIUM)

What it can do on your machine

Read from SKILL.md and the folder at commit f741ad2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Nestjs Best Practices loads about 1.2k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 391 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from rolling-scopes/rsschool-app at commit f741ad2, republished under its MIT licence (© rolling-scopes). 391 words, ~1,226 tokens.

Download SKILL.mdSave it as .claude/skills/nestjs-best-practices/SKILL.md (or your agent's skills folder). This skill also uses 50 other files; get the full folder from GitHub.
name
nestjs-best-practices
description
NestJS best practices and architecture patterns for building production-ready applications. This skill should be used when writing, reviewing, or refactoring NestJS code to ensure proper patterns for modules, dependency injection, security, and performance.
license
MIT
metadata.author
Kadajett
metadata.version
1.1.0

NestJS Best Practices

Comprehensive best practices guide for NestJS applications. Contains 40 rules across 10 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new NestJS modules, controllers, or services
  • Implementing authentication and authorization
  • Reviewing code for architecture and security issues
  • Refactoring existing NestJS codebases
  • Optimizing performance or database queries
  • Building microservices architectures

Rule Categories by Priority

PriorityCategoryImpactPrefix
1ArchitectureCRITICALarch-
2Dependency InjectionCRITICALdi-
3Error HandlingHIGHerror-
4SecurityHIGHsecurity-
5PerformanceHIGHperf-
6TestingMEDIUM-HIGHtest-
7Database & ORMMEDIUM-HIGHdb-
8API DesignMEDIUMapi-
9MicroservicesMEDIUMmicro-
10DevOps & DeploymentLOW-MEDIUMdevops-

Quick Reference

1. Architecture (CRITICAL)
  • arch-avoid-circular-deps - Avoid circular module dependencies
  • arch-feature-modules - Organize by feature, not technical layer
  • arch-module-sharing - Proper module exports/imports, avoid duplicate providers
  • arch-single-responsibility - Focused services over "god services"
  • arch-use-repository-pattern - Abstract database logic for testability
  • arch-use-events - Event-driven architecture for decoupling
2. Dependency Injection (CRITICAL)
  • di-avoid-service-locator - Avoid service locator anti-pattern
  • di-interface-segregation - Interface Segregation Principle (ISP)
  • di-liskov-substitution - Liskov Substitution Principle (LSP)
  • di-prefer-constructor-injection - Constructor over property injection
  • di-scope-awareness - Understand singleton/request/transient scopes
  • di-use-interfaces-tokens - Use injection tokens for interfaces
3. Error Handling (HIGH)
  • error-use-exception-filters - Centralized exception handling
  • error-throw-http-exceptions - Use NestJS HTTP exceptions
  • error-handle-async-errors - Handle async errors properly
4. Security (HIGH)
  • security-auth-jwt - Secure JWT authentication
  • security-validate-all-input - Validate with class-validator
  • security-use-guards - Authentication and authorization guards
  • security-sanitize-output - Prevent XSS attacks
  • security-rate-limiting - Implement rate limiting
Show full SKILL.md (158 more words)Show less
5. Performance (HIGH)
  • perf-async-hooks - Proper async lifecycle hooks
  • perf-use-caching - Implement caching strategies
  • perf-optimize-database - Optimize database queries
  • perf-lazy-loading - Lazy load modules for faster startup
6. Testing (MEDIUM-HIGH)
  • test-use-testing-module - Use NestJS testing utilities
  • test-e2e-supertest - E2E testing with Supertest
  • test-mock-external-services - Mock external dependencies
7. Database & ORM (MEDIUM-HIGH)
  • db-use-transactions - Transaction management
  • db-avoid-n-plus-one - Avoid N+1 query problems
  • db-use-migrations - Use migrations for schema changes
8. API Design (MEDIUM)
  • api-use-dto-serialization - DTO and response serialization
  • api-use-interceptors - Cross-cutting concerns
  • api-versioning - API versioning strategies
  • api-use-pipes - Input transformation with pipes
9. Microservices (MEDIUM)
  • micro-use-patterns - Message and event patterns
  • micro-use-health-checks - Health checks for orchestration
  • micro-use-queues - Background job processing
10. DevOps & Deployment (LOW-MEDIUM)
  • devops-use-config-module - Environment configuration
  • devops-use-logging - Structured logging
  • devops-graceful-shutdown - Zero-downtime deployments

How to Use

Read individual rule files for detailed explanations and code examples:

rules/arch-avoid-circular-deps.md
rules/security-validate-all-input.md
rules/_sections.md

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and references

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

© rolling-scopes, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 50 other files (scripts) in .agents/skills/nestjs-best-practices of rolling-scopes/rsschool-app.

  • SKILL.md
  • .github/workflows/branch-protection.yml
  • .github/workflows/deploy.yml
  • .gitignore
  • AGENTS.md
  • README.md
  • rules/api-use-dto-serialization.md
  • rules/api-use-interceptors.md
  • rules/api-use-pipes.md
  • rules/api-versioning.md
  • rules/arch-avoid-circular-deps.md
  • rules/arch-feature-modules.md
  • rules/arch-module-sharing.md
  • rules/arch-single-responsibility.md
  • rules/arch-use-events.md
  • rules/arch-use-repository-pattern.md
  • rules/db-avoid-n-plus-one.md
  • rules/db-use-migrations.md
  • … and 33 more

Open the folder on GitHubat commit f741ad2

Used in 6 other repositories

We found 10 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 6 other GitHub owners. This page covers the copy in rolling-scopes/rsschool-app, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Nestjs Best Practices next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Nestjs Best Practices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nestjs Best Practices this skillrolling-scopes/rsschool-app10k6 repos~1.2kAutomated safety check: PassMIT
Architecture PatternsKartikLabhshetwar/better-shot2.4k2 repos~1.4kAutomated safety check: PassCustom licence
Brooks Audithyhmrright/brooks-lint1.5k1 repos~537Automated safety check: PassMIT
Py Rigmudrii/hermesd118—~6.3kAutomated safety check: PassMIT
Architecture Patternssecondsky/claude-skills22711 repos~2.4kAutomated safety check: PassMIT
Smellsmallnest/goal-workflow290—~10kAutomated safety check: PassMIT

Similar skills

  • Architecture Patterns

    KartikLabhshetwar/better-shot

    Deep dive into software architecture for macOS. An agent skill from KartikLabhshetwar/better-shot.

    2.4k GitHub starsUsed in 2 repos~1.4k tokens
    DevelopmentAuto-check passed
  • Brooks Audit

    hyhmrright/brooks-lint

    Architecture audit that maps module dependencies, checks layering integrity, and flags structural decay across a codebase, drawing on twelve classic engineering books.

    1.5k GitHub starsUsed in 1 repo~537 tokens
    DevelopmentAuto-check passed
  • Py Rig

    mudrii/hermesd

    A skill your agent uses when building, reviewing, or refactoring Python code that requires strong maintainability discipline: SRP, DRY, OCP, explicit dependency injection, TDD/ATDD workflow, strict…

    118 GitHub stars~6.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Architecture Patterns

    secondsky/claude-skills

    Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.

    227 GitHub starsUsed in 11 repos~2.4k tokens
    DevelopmentAuto-check passed
  • Smell

    smallnest/goal-workflow

    Detect software architecture bad smells, algorithmic complexity hotspots, and anti-patterns in a codebase.

    290 GitHub stars~10k tokensUpdated 26 days ago
    DevelopmentAuto-check passed
  • NestJS Modular Monolith Architect

    tech-leads-club/agent-skills

    Designs scalable NestJS modular monoliths with domain-driven design, Clean Architecture layers and optional CQRS, defining bounded contexts and strict module boundaries.

    7k GitHub stars~3.9k tokensUpdated yesterday
    Backend & APIsAuto-check passed

More from rolling-scopes/rsschool-app

  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    Auto-check passed
  • Typeorm

    rolling-scopes/rsschool-app

    Guidelines for developing with TypeORM, a full-featured ORM for TypeScript and JavaScript supporting multiple databases

    10k GitHub starsUsed in 1 repo~3.5k tokens
    Auto-check passed

Works with

Questions about Nestjs Best Practices

What does Nestjs Best Practices do?

NestJS best practices and architecture patterns for building production-ready applications. Nestjs Best Practices is an agent skill from rolling-scopes/rsschool-app. NestJS best practices and architecture patterns for building production-ready applications.

When should I use Nestjs Best Practices?

Nestjs Best Practices fits situations like: tasks that involve Design patterns; tasks that involve Software architecture; tasks that involve Refactoring.

How do I install Nestjs Best Practices in Claude Code?

Run `npx skills add rolling-scopes/rsschool-app --skill nestjs-best-practices -a claude-code`. Or copy the skill folder (.agents/skills/nestjs-best-practices in rolling-scopes/rsschool-app) into .claude/skills/nestjs-best-practices in your project. Claude Code loads it when a task matches its description.

How do I install Nestjs Best Practices in Codex?

Run `npx skills add rolling-scopes/rsschool-app --skill nestjs-best-practices -a codex`. Or copy the skill folder (.agents/skills/nestjs-best-practices in rolling-scopes/rsschool-app) into .agents/skills/nestjs-best-practices in your project. Codex loads it when a task matches its description.

Can I use Nestjs Best Practices in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add rolling-scopes/rsschool-app --skill nestjs-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nestjs-best-practices, .gemini/skills/nestjs-best-practices, .github/skills/nestjs-best-practices and .opencode/skills/nestjs-best-practices in your project.

What does Nestjs Best Practices need to run?

SKILL.md names no scripts, command-line tools or credentials: Nestjs Best Practices is instructions for the agent only.

Does Nestjs Best Practices access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Nestjs Best Practices safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Nestjs Best Practices use?

Nestjs Best Practices is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nestjs Best Practices use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Nestjs Best Practices?

Skills that share tags, products or a category with Nestjs Best Practices: Architecture Patterns (KartikLabhshetwar/better-shot, 2.4k stars), Brooks Audit (hyhmrright/brooks-lint, 1.5k stars), Py Rig (mudrii/hermesd, 118 stars) and Architecture Patterns (secondsky/claude-skills, 227 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nestjs Best Practices?

rolling-scopes (a GitHub organization) maintains it in rolling-scopes/rsschool-app, which has 10,399 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 4, 2026.

Source: rolling-scopes/rsschool-app on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.