agentsclimarketplace

Nestjs

Skill G1Joshi/Agent-Skills/skills/frameworks/nestjs

NestJS TypeScript backend framework with decorators and modules. Use for Node.js APIs.From its SKILL.md

Install
npx -y skills add G1Joshi/Agent-Skills --skill nestjs

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.6 KB, 351 tokens by cl100k_base, as published. Nobody here has run it

NestJS

NestJS is a structured, opinionated framework for Node.js, heavily inspired by Angular. NestJS 10 (2025) focuses on performance with SWC integration and refined standalone modules.

When to Use

  • Enterprise Monorepos: Strict architecture (Controllers, Services, Modules) scales well.
  • TypeScript First: Best-in-class TS support and decorators.
  • Microservices: Built-in support for gRPC, MQTT, Redis transport layers.

Quick Start

// cats.controller.ts
@Controller("cats")
export class CatsController {
  constructor(private catsService: CatsService) {}

  @Get()
  async findAll(): Promise<Cat[]> {
    return this.catsService.findAll();
  }
}

Core Concepts

Modules

Logic is organized into Modules (UserModule, AuthModule). Dependency Injection wires them together.

Decorators

@Controller, @Get, @Injectable. Declarative metadata programming.

Guards & Interceptors

A refined pipeline for Authentication (@UseGuards) and Response transformation (@UseInterceptors).

Best Practices (2025)

Do:

  • Use SWC: Speed up builds significantly by using the SWC compiler.
  • Use Fastify adapter: Switch from Express to Fastify for 2x performance gains if compatibility allows.
  • Use zod or class-validator: Validate all inputs using DTOs.

Don't:

  • Don't allow circular dependencies: They are a pain in NestJS. Design your modules as acyclic graphs.

References

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.