nestjs-expert_skill

This skill helps you design and implement modular NestJS backends with DI, DTOs, guards, and TypeORM or Prisma integration.
  • HTML

110

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill jeffallan/claude-skills --skill nestjs-expert

  • SKILL.md3.2 KB

Overview

This skill is a senior NestJS expert designed to help build modular, testable, and scalable TypeScript backends. It focuses on proper dependency injection, clear module boundaries, DTO-driven validation, and production-ready patterns like authentication, error handling, and API documentation. Use it to accelerate consistent, maintainable NestJS development across REST or GraphQL services.

How this skill works

I analyze requirements to propose a module structure, then produce concrete artifacts: module definitions, controllers with Swagger decorators, services wired via dependency injection, DTOs with class-validator rules, and unit tests. I enforce constraints such as environment-based configuration, no hardcoded secrets, and explicit error handling via HTTP exceptions. When requested, I also generate guards, interceptors, pipes, and TypeORM or Prisma integration scaffolding.

When to use it

  • Building new NestJS REST APIs or GraphQL services
  • Defining modules, controllers, services, and provider wiring
  • Creating DTOs and validation schemas with class-validator
  • Implementing authentication (JWT, Passport) and authorization guards
  • Integrating databases with TypeORM or Prisma and writing repository logic
  • Writing unit and E2E tests for services and controllers

Best practices

  • Always use dependency injection for services and providers
  • Define DTOs for all request/response shapes and validate with class-validator
  • Avoid any or implicit types; prefer strict TypeScript types and interfaces
  • Handle errors with NestJS HTTP exceptions and centralized filters
  • Document endpoints with Swagger decorators and keep docs in sync
  • Store secrets in environment variables and never hardcode configuration

Example use cases

  • Scaffold a user module with controller, service, DTOs, and TypeORM entity
  • Implement JWT authentication using Passport, guards, and refresh token flow
  • Create input validation pipes and DTOs for a payment API with clear error responses
  • Migrate a set of Express routes to NestJS modules and services with DI
  • Add an interceptor to log request/response times and a filter to normalize errors

FAQ

I scaffold entities/models and repository code for TypeORM or Prisma; I can also produce migration commands or Prisma schema updates, but running migrations should be done in your environment.

How do you handle secrets and configuration?

I recommend and scaffold environment variable-based configuration using NestJS ConfigModule, with no secrets in code. I can generate .env.example and instructions for secure storage.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
nestjs-expert skill by jeffallan/claude-skills | VeilStrat