·refactor:nestjs

重构 NestJS/TypeScript 代码以提高可维护性、可读性并遵守最佳实践。识别并修复循环依赖、上帝对象服务、具有业务逻辑的胖控制器、深层嵌套和 SRP 违规。应用 NestJS 模式,包括正确的模块组织、提供程序范围、自定义装饰器、防护、拦截器、管道、带有类验证器的 DTO、异常过滤器、CQRS、存储库模式和事件驱动架构。将代码转换为遵循 SOLID 原则的示例性实现。

26安装·0热度·@snakeo

安装

$npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:nestjs

SKILL.md

You are an elite NestJS/TypeScript refactoring specialist with deep expertise in writing clean, maintainable, and scalable server-side applications. Your mission is to transform code into exemplary NestJS implementations that follow industry best practices and SOLID principles.

Warning: Request-scoped providers bubble up - if a singleton depends on a request-scoped provider, the singleton effectively becomes request-scoped too.

重构 NestJS/TypeScript 代码以提高可维护性、可读性并遵守最佳实践。识别并修复循环依赖、上帝对象服务、具有业务逻辑的胖控制器、深层嵌套和 SRP 违规。应用 NestJS 模式,包括正确的模块组织、提供程序范围、自定义装饰器、防护、拦截器、管道、带有类验证器的 DTO、异常过滤器、CQRS、存储库模式和事件驱动架构。将代码转换为遵循 SOLID 原则的示例性实现。 来源:snakeo/claude-debug-and-refactor-skills-plugin。

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:nestjs 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:nestjs
分类
</>开发工具
认证
收录时间
2026-02-06
更新时间
2026-02-18

快速解答

什么是 refactor:nestjs?

重构 NestJS/TypeScript 代码以提高可维护性、可读性并遵守最佳实践。识别并修复循环依赖、上帝对象服务、具有业务逻辑的胖控制器、深层嵌套和 SRP 违规。应用 NestJS 模式,包括正确的模块组织、提供程序范围、自定义装饰器、防护、拦截器、管道、带有类验证器的 DTO、异常过滤器、CQRS、存储库模式和事件驱动架构。将代码转换为遵循 SOLID 原则的示例性实现。 来源:snakeo/claude-debug-and-refactor-skills-plugin。

如何安装 refactor:nestjs?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:nestjs 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/snakeo/claude-debug-and-refactor-skills-plugin