·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