โ† Back to list
phatpham9

nest-backend-service-builder

by phatpham9

๐Ÿš€ Automated development environment setup for macOS and Ubuntu

โญ 5๐Ÿด 2๐Ÿ“… Jan 18, 2026

SKILL.md


name: nest-backend-service-builder description: 'Scaffold NestJS backend modules, controllers, services, DTOs, REST/GraphQL APIs, WebSocket handlers, validation pipes, guards, interceptors, and Jest integration tests'

Purpose

Build production-ready NestJS backend services using clean architecture, domain-driven design principles, and enterprise patterns.

When to Use

Use this skill when the task involves:

  • Creating or modifying NestJS modules, controllers, or services
  • Building REST endpoints or GraphQL resolvers
  • Implementing WebSocket/Socket.IO real-time features
  • Adding DTOs with class-validator validation
  • Setting up guards, interceptors, or exception filters
  • Writing integration tests for API endpoints

Constraints

  • Organize by feature modules, not file type (avoid controllers/, services/ folders)
  • Use TypeScript strict mode; define explicit return types
  • Apply class-validator decorators on all DTOs
  • Use class-transformer for serialization control
  • Version APIs explicitly (/v1/resource)
  • Follow RFC 7807 Problem Details for error responses
  • Apply rate limiting on public endpoints
  • Use Helmet for secure HTTP headers

Execution Steps

  1. Define module boundary โ€” Identify domain entity and create feature module
  2. Create DTOs โ€” Define request/response DTOs with validation decorators
  3. Implement service โ€” Business logic with dependency injection
  4. Build controller โ€” REST endpoints with proper HTTP methods and status codes
  5. Add guards/interceptors โ€” Authentication, authorization, logging as needed
  6. Write tests โ€” Integration tests for endpoint contracts
  7. Document API โ€” Add Swagger decorators for OpenAPI spec

Examples

Input

Create a user registration endpoint with email validation

Output

// @/modules/users/dto/create-user.dto.ts
import { IsEmail, IsString, MinLength } from 'class-validator';

export class CreateUserDto {
  @IsEmail()
  email: string;

  @IsString()
  @MinLength(8)
  password: string;

  @IsString()
  name: string;
}

// @/modules/users/users.controller.ts
@Controller('v1/users')
export class UsersController {
  constructor(private readonly usersService: UsersService) {}

  @Post('register')
  @HttpCode(HttpStatus.CREATED)
  async register(@Body() dto: CreateUserDto): Promise<UserResponseDto> {
    return this.usersService.register(dto);
  }
}
  • database-schema-designer โ€” Design underlying data models
  • jest-testing-generator โ€” Write service and controller tests
  • senior-code-review โ€” Review API security and patterns

Score

Total Score

65/100

Based on repository quality metrics

โœ“SKILL.md

SKILL.mdใƒ•ใ‚กใ‚คใƒซใŒๅซใพใ‚Œใฆใ„ใ‚‹

+20
โœ“LICENSE

ใƒฉใ‚คใ‚ปใƒณใ‚นใŒ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹

+10
โ—‹่ชฌๆ˜Žๆ–‡

100ๆ–‡ๅญ—ไปฅไธŠใฎ่ชฌๆ˜ŽใŒใ‚ใ‚‹

0/10
โ—‹ไบบๆฐ—

GitHub Stars 100ไปฅไธŠ

0/15
โ—‹ๆœ€่ฟ‘ใฎๆดปๅ‹•

3ใƒถๆœˆไปฅๅ†…ใซๆ›ดๆ–ฐใŒใ‚ใ‚‹

0/10
โ—‹ใƒ•ใ‚ฉใƒผใ‚ฏ

10ๅ›žไปฅไธŠใƒ•ใ‚ฉใƒผใ‚ฏใ•ใ‚Œใฆใ„ใ‚‹

0/5
โœ“Issue็ฎก็†

ใ‚ชใƒผใƒ—ใƒณIssueใŒ50ๆœชๆบ€

+5
โœ“่จ€่ชž

ใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐ่จ€่ชžใŒ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹

+5
โœ“ใ‚ฟใ‚ฐ

1ใคไปฅไธŠใฎใ‚ฟใ‚ฐใŒ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹

+5

Reviews

๐Ÿ’ฌ

Reviews coming soon