AGENT SKILL

nestjs-module-boundaries

Keep NestJS modules cohesive with clear controllers, services, providers, guards, and DTO boundaries.

License 许可
MIT
最近更新
2026-05-28
Stars
★ 0
Forks
0

01 前言 Front Matter

name
nestjs-module-boundaries
author
Siming
license
MIT
version
1.0.0
metadata
{ "siming": { "tags": [ "backend", "nestjs", "architecture" ] } }
description
Keep NestJS modules cohesive with clear controllers, services, providers, guards, and DTO boundaries.

03 SKILL.md 正文

NestJS Module Boundaries

Use this skill when adding or refactoring NestJS modules.

Workflow

  1. Keep controllers thin and focused on transport concerns.
  2. Put business rules in services or small helpers.
  3. Keep DTO validation separate from persistence models.
  4. Export only providers that other modules actually need.
  5. Add tests at the service boundary for business behavior.

Checks

  • No controller contains complex business branching.
  • No module exports broad internals without need.

04 同仓库更多 Skills