- 每个主要域/路由一个模块。
- 一个控制器对应其路由。
- 以及其他控制器对应次要路由。
- 一个包含数据类型的 models 文件夹。
- 使用 class-validator 验证输入的 DTO。
- 为输出声明简单类型。
- 一个包含业务逻辑和持久化的服务模块。
- 使用 MikroORM 进行数据持久化的实体。
- 每个实体一个服务。
Nestjs Typescript Nestjs Module Structure Guidelines
规定 NestJS 模块内的结构和组件,包括控制器、模型、DTO 和服务,确保 API 封装。
Nestjs Typescript Nestjs Module Structure Guidelines by liaosw97 · ac8ccc2
npx skillmds@latest add liaosw97/nestjs-typescript-nestjs-module-structure-guidelines File contents
---name: nestjs-typescript-nestjs-module-structure-guidelinesdescription: 规定 NestJS 模块内的结构和组件,包括控制器、模型、DTO 和服务,确保 API 封装。---- 每个主要域/路由一个模块。- 一个控制器对应其路由。- 以及其他控制器对应次要路由。- 一个包含数据类型的 models 文件夹。- 使用 class-validator 验证输入的 DTO。- 为输出声明简单类型。- 一个包含业务逻辑和持久化的服务模块。- 使用 MikroORM 进行数据持久化的实体。- 每个实体一个服务。
liaosw97/awesome-rules-skills/tree/main/plugins/nestjs/skills/nestjs-typescript-nestjs-module-structure-guidelines commit ac8ccc298c
Frequently asked questions
Run npx skillmds@latest add liaosw97/nestjs-typescript-nestjs-module-structure-guidelines in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
规定 NestJS 模块内的结构和组件,包括控制器、模型、DTO 和服务,确保 API 封装。 It is listed under Integrations & APIs on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
liaosw97 (@liaosw97) published this skill. Their other Agent Skills are listed on their SkillMD profile.