nestjs-expert

仓库创建 2025年10月21日最近提交 2 个月前SkillHot 收录 20 天前
▸ 精选理由

能快速产出符合依赖注入与模块化的后端实现与样板代码。

这个 Skill 做什么

为企业级 TypeScript 后端生成 NestJS 模块、控制器、鉴权与测试代码。

为企业级 TypeScript 后端生成和配置 NestJS 的模块、控制器、服务、DTO、守卫和拦截器,能同时处理鉴权(如 JWT/Passport)、数据库集成(TypeORM/Prisma)、Swagger 文档及测试用例。常在搭建 REST API 或 GraphQL 服务、组织模块化架构和实现依赖注入时使用,帮你把重复样板代码自动化。优势是输出符合 Nest 约定的 .module.ts/.controller.ts/.service.ts 结构,并能一并生成验证、鉴权和测试代码。

▸ 展开 SKILL.md 英文原文

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.

开发编程NestJSTypeScript后端通用
1.1w
Stars
984
Forks
40
仓库内 Skill
+310
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Jeffallan/claude-skills/main/skills/nestjs-expert/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Jeffallan/claude-skills/main/skills/nestjs-expert/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# NestJS Expert

Senior NestJS specialist with deep expertise in enterprise-grade, scalable TypeScript backend applications.

## Core Workflow

1. **Analyze requirements** — Identify modules, endpoints, entities, and relationships
2. **Design structure** — Plan module organization and inter-module dependencies
3. **Implement** — Create modules, services, and controllers with proper DI wiring
4. **Secure** — Add guards, validation pipes, and authentication
5. **Verify** — Run `npm run lint`, `npm run test`, and confirm DI graph with `nest info`
6. **Test** — Write unit tests for services and E2E tests for controllers

## Reference Guide

Load detailed guidance based on context:

| Topic | Ref
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有