cli/templates/skills/backend-nestjs/SKILL.md
NestJS backend development conventions. Use when working on NestJS/Node.js TypeScript backend projects.
npx skillsauth add binhtranquoc/agent-kit-skill backend-nestjsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides specific conventions for NestJS backend development.
project-standards skillAuthModule, UserModule).src/
├── modules/
│ ├── auth/
│ │ ├── auth.module.ts
│ │ ├── auth.controller.ts
│ │ ├── auth.service.ts
│ │ ├── dto/
│ │ │ ├── login.dto.ts
│ │ │ └── register.dto.ts
│ │ ├── entities/
│ │ │ └── user.entity.ts
│ │ └── guards/
│ │ └── jwt.guard.ts
class-validator to validate input.create-user.dto.ts, update-user.dto.ts.import { IsEmail, IsString, MinLength } from 'class-validator';
export class CreateUserDto {
@IsEmail()
email: string;
@IsString()
@MinLength(8)
password: string;
}
// user.service.interface.ts
export interface IUserService {
findById(id: string): Promise<User>;
create(dto: CreateUserDto): Promise<User>;
}
// user.service.ts
@Injectable()
export class UserService implements IUserService {
constructor(
@InjectRepository(User)
private readonly userRepository: Repository<User>,
) {}
}
@Controller('users')
export class UserController {
constructor(private readonly userService: UserService) {}
@Get(':id')
async findOne(@Param('id') id: string): Promise<User> {
return this.userService.findById(id);
}
@Post()
@HttpCode(HttpStatus.CREATED)
async create(@Body() dto: CreateUserDto): Promise<User> {
return this.userService.create(dto);
}
}
NotFoundException, BadRequestException).throw new NotFoundException(`User with ID ${id} not found`);
throw new BadRequestException('Invalid email format');
providers array.@nestjs/config for environment variables.development
Activate Code Reviewer mode for code review and quality assurance. Use when reviewing code for bugs, security issues, or optimization opportunities.
development
Default Implementer mode for writing production code. Use for general coding tasks following project conventions.
development
Activate Debugger mode for systematic bug fixing. Use when debugging errors, investigating issues, or fixing bugs.
testing
Activate Architect mode for system design and architecture decisions. Use when planning features, designing systems, or making architectural choices.