返回技能目录
人工审校软件开发

技能研究档案

nestjs-expert

来源声明

Creates and configures NestJS modules, controllers, services, DTOs, guards, and interceptors for enterprise-grade TypeScript backend applications. Use when building NestJS REST APIs or GraphQL services, implementing dependency injection, scaffolding modular architecture, adding JWT/Passport authentication, integrating TypeORM or Prisma, or working with .module.ts, .controller.ts, and .service.ts files. Invoke for guards, interceptors, pipes, validation, Swagger documentation, and unit/E2E testing in NestJS projects.

保留作者的英文原始描述。它表达设计意图,不代表已验证的实际效果。

Creates and configures NestJS modules, controllers, services, DTOs, guards, and interceptors for enterprise-grade TypeScript backend applications. Use when building NestJS REST APIs or GraphQL services, implementing dependency injection, scaffolding modular architecture, adding JWT/Passport authentication, integrating TypeORM or Prisma, or working with .module.ts, .controller.ts, and .service.ts files. Invoke for guards, interceptors, pipes, validation, Swagger documentation, and unit/E2E testing in NestJS projects.

developmentreferences

研究摘要

人工审校

Skill Atlas editorial review · editorial-preview-1.0.0

用于搭建 NestJS 模块、控制器、服务和带校验的 DTO 的 Skill,并包含 lint、测试和依赖注入图检查。

审阅范围

对所收集的 SKILL.md 及辅助文本/代码进行确定性静态分析。机器辅助候选和发现等待人工编辑复核;不评估动态行为或效果。

可观察能力

  • 使用基于构造函数的依赖注入创建模块、控制器和服务。
  • 用 class-validator DTO 和全局 ValidationPipe 校验输入。
  • 添加守卫、认证和 Swagger 文档。
  • 运行 lint 和测试,并用 Test.createTestingModule 编写服务单元测试。

限制与范围

  • 示例假定使用 TypeORM,文件中未展示 Prisma 和 GraphQL 细节。
  • 认证和测试模式位于独立参考文件中。
  • 此处未运行 lint、测试和 nest info 检查。

适用读者

  • TypeScript 后端开发者
  • 统一采用 NestJS 的团队
  • 从 Express 迁移的开发者

技能包含哪些内容

文件清单来自记录提交中的采集源码。路径与大小属于结构观察,不代表质量评价。

个文件
7
Markdown 文件
7
个脚本
0
个引用
6
大小
56.4 KB
结构复杂度
低

文件清单

路径类型字节
skills/nestjs-expert/references/authentication.md引用3.9 KB
skills/nestjs-expert/references/controllers-routing.md引用3 KB
skills/nestjs-expert/references/dtos-validation.md引用3.5 KB
skills/nestjs-expert/references/migration-from-express.md引用30.3 KB
skills/nestjs-expert/references/services-di.md引用3.3 KB
skills/nestjs-expert/references/testing-patterns.md引用4.6 KB
skills/nestjs-expert/SKILL.md指令7.7 KB

SKILL.md 前置元数据

{
  "name": "nestjs-expert",
  "description": "Creates and configures NestJS modules, controllers, services, DTOs, guards, and interceptors for enterprise-grade TypeScript backend applications. Use when building NestJS REST APIs or GraphQL services, implementing dependency injection, scaffolding modular architecture, adding JWT/Passport authentication, integrating TypeORM or Prisma, or working with .module.ts, .controller.ts, and .service.ts files. Invoke for guards, interceptors, pipes, validation, Swagger documentation, and unit/E2E testing in NestJS projects.",
  "license": "MIT",
  "metadata": {
    "author": "https://github.com/Jeffallan",
    "company": "https://synergetic.solutions",
    "version": "1.1.0",
    "domain": "backend",
    "triggers": "NestJS, Nest, Node.js backend, TypeScript backend, dependency injection, controller, service, module, guard, interceptor",
    "role": "specialist",
    "scope": "implementation",
    "output-format": "code",
    "related-skills": "fullstack-guardian, test-master, devops-engineer"
  }
}

对运行顺序的一种解读

此工作流根据源码材料重建表面顺序。除非明确记录受控评估,否则它属于暂定解读,而非真实运行轨迹。

  1. 01
  2. 02
    操作

    实现模块

    创建模块、服务和控制器并正确装配依赖注入。

  3. 03
    判断

    加固并验证

    添加守卫和校验管道,然后运行 lint、测试和 nest info。

  4. 04
    输出

    按固定顺序交付

    按模块、控制器、服务、DTO、单元测试的顺序交付。

潜在风险面

静态发现用于提示安装前需要检查的位置,不能证明一项技能安全、恶意或有效。

建议重点关注

收集的文本中有 138 项确定性词法发现需要复核。发现可能仅位于文档中,不证明已执行或可被利用;仅含二进制的文件未扫描。

网络访问已观察到
文件写入已观察到
凭据使用已观察到
提示

文本描述或实现了文件修改

113 次命中

此行包含可能的文件写入或重定向操作。应检查目标路径和覆盖行为;静态审查没有写入任何文件。 该规则在收集文本中命中 113 处;此处列出 3 个代表位置。命中文本可能只是文档,分析器没有执行它。

高

文本引用凭据或密钥材料

16 次命中

此行疑似凭据字面值,或读取敏感环境变量。请勿暴露其内容;应核实它是占位符、所需密钥,还是误提交的敏感材料。 该规则在收集文本中命中 16 处;此处列出 3 个代表位置。命中文本可能只是文档,分析器没有执行它。

中

文本提及网络访问

9 次命中

此源文件行包含 URL 或网络客户端。应检查目标地址、发送的数据和信任边界;静态文本无法证明实际发生了网络活动。 该规则在收集文本中命中 9 处;此处列出 3 个代表位置。命中文本可能只是文档,分析器没有执行它。

编辑安全提示

审查智能体编写的认证、守卫和校验代码,确保响应中不泄露密钥或堆栈信息。

上下文可能消耗在哪里

发现、激活与资源层具有不同含义。只有使用指定官方方法并记录模型的运行时,才显示精确数值。

精确 token 计数不可用

在管线使用明确模型执行官方精确计数之前,包括文件清单在内的所有 token 值均为 null。

未使用要求的官方方法记录 token 测量。本档案不会用字符数、文件大小或估计值替代。

受控评估

没有受控评估

该技能仅具备以上标明的证据。不声称任何任务成功率、token 效率、延迟或质量优势。

尚未测试

在源码可见的情况下使用

安装命令
git clone https://github.com/Jeffallan/claude-skills.git cd claude-skills # 将该 Skill 目录复制到以下任一位置: # ~/.claude/skills/nestjs-expert # .claude/skills/nestjs-expert
  1. 打开固定版本源码:https://github.com/Jeffallan/claude-skills/blob/67c1961b180dc92cf08983344627109e983e8f51/skills/nestjs-expert/SKILL.md。
  2. 审阅许可证、前置条件和所有捆绑的参考文件。
  3. 将 Skill 目录复制到个人或项目级 Claude Code skills 目录。
  4. 重启或刷新 Claude Code,使该 Skill 可被发现。
验证安装

让 Claude Code 搭建 users 模块,确认其包含带校验的 DTO、类型化异常和服务单元测试。

前置条件

  • 示例假定使用 TypeORM,文件中未展示 Prisma 和 GraphQL 细节。
  • 认证和测试模式位于独立参考文件中。
  • 此处未运行 lint、测试和 nest info 检查。

示例提示词

代表性任务

Using the nestjs-expert skill, create a users module with a CreateUserDto validated by class-validator, a service that throws ConflictException on duplicate email, Swagger decorators and a unit test.

使用前检查

Read the nestjs-expert skill at https://github.com/Jeffallan/claude-skills/blob/67c1961b180dc92cf08983344627109e983e8f51/skills/nestjs-expert/SKILL.md and its reference files. Explain its workflow, any commands it tells the agent to run, and the main risks before I decide whether to install it.

附上限制条件的判断

优势

  • 对 DTO 校验和类型化 HTTP 异常有清晰规则。
  • 规定了从模块到测试的固定输出顺序。

注意事项

  • 需要已配置的 NestJS 项目和 Node 工具链。
  • 为每个端点编写文档等规则会增加样板代码。
研究结论

用于构建经过校验和测试的 NestJS 功能的规整约定指南。

从结构上保持可追溯

档案是对公开工件的限时阅读,而非背书。请通过来源链接检查确切的上游材料。

Jeffallanclaude-skillsskills/nestjs-expert
来源类型
社区
提交
67c1961b180dc92cf08983344627109e983e8f51
采集时间
2026年11月20日
最近核查
2026年11月20日
上游许可证
MIT
仓库星标
12,464
内容依据

仅对提供的文件进行确定性词法解析、YAML frontmatter 校验、文件清单、来源描述的工作流程提取和启发式暂定分类。由机器生成;无 LLM、执行、动态测试或人工编辑批准。