CtrlK
BlogDocsLog inGet started
Tessl Logo

nestjs-best-practices

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.

Install with Tessl CLI

npx tessl i github:Kadajett/agent-nestjs-skills --skill nestjs-best-practices
What are skills?

73

Does it follow best practices?

Agent success when using this skill

Validation for skill structure

SKILL.md
Review
Evals

Evaluation results

100%

16%

Secure API Authentication for a Patient Portal

Secure JWT authentication setup

Criteria
Without context
With context

JWT library choice

100%

100%

Short access token lifetime

100%

100%

Refresh token implemented

100%

100%

Secret from config, not hardcoded

100%

100%

Safe JWT payload

100%

100%

Strategy validates user existence

100%

100%

Password change token invalidation

100%

100%

Guards for route protection

80%

100%

Public decorator pattern

0%

100%

Global ValidationPipe

100%

100%

ConfigModule with validation

25%

100%

100%

10%

Order Management Module for an E-Commerce Platform

Feature module architecture and error handling

Criteria
Without context
With context

Feature module structure

100%

100%

Single responsibility services

100%

100%

Custom repository class

100%

100%

EventEmitter2 for side effects

100%

100%

OnEvent listeners in separate classes

100%

100%

Constructor injection used

100%

100%

Exceptions thrown from service

50%

100%

Global exception filter

100%

100%

Response DTOs with @Exclude

80%

100%

Module exports pattern

100%

100%

Shared module for cross-cutting code

62%

100%

100%

8%

Multi-Provider Notification System for a B2B SaaS Platform

Interface injection tokens and provider scopes

Criteria
Without context
With context

Symbol or abstract class token

100%

100%

@Inject() with token

100%

100%

Multiple implementations registered

100%

100%

Implementation selected via config

40%

100%

Singleton scope for stateless providers

100%

100%

REQUEST or ClsModule for request context

80%

100%

No service locator usage

100%

100%

Dedicated module with exports

100%

100%

Constructor injection throughout

100%

100%

Unit test uses Test.createTestingModule

100%

100%

Evaluated
Agent
Claude Code

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.