·csharp-refactor
</>

csharp-refactor

jeongheonk/c-sharp-custom-marketplace

C#代碼重構技巧。應用 SOLID 原則、提取方法/類、引入設計模式並使語法現代化。在提高代碼可維護性、解決代碼異味或對遺留 C# 代碼進行現代化改造時使用。

15安裝·0熱度·@jeongheonk

安裝

$npx skills add https://github.com/jeongheonk/c-sharp-custom-marketplace --skill csharp-refactor

SKILL.md

Systematically refactors C# code to improve maintainability, readability, and adherence to best practices.

| SRP | Extract class, Split responsibilities | | OCP | Introduce Strategy/Template Method pattern | | LSP | Fix inheritance hierarchy, Use composition | | ISP | Split interface into smaller ones | | DIP | Extract interface, Inject dependencies |

| Complex object creation | Builder, Factory Method | | Multiple conditionals on type | Strategy, State | | Global state access | Singleton (cautiously), DI | | Complex subsystem | Facade | | Tree/composite structures | Composite | | Adding features dynamically | Decorator | | Request handling chain | Chain of Responsibility |

C#代碼重構技巧。應用 SOLID 原則、提取方法/類、引入設計模式並使語法現代化。在提高代碼可維護性、解決代碼異味或對遺留 C# 代碼進行現代化改造時使用。 來源:jeongheonk/c-sharp-custom-marketplace。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/jeongheonk/c-sharp-custom-marketplace --skill csharp-refactor
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 csharp-refactor?

C#代碼重構技巧。應用 SOLID 原則、提取方法/類、引入設計模式並使語法現代化。在提高代碼可維護性、解決代碼異味或對遺留 C# 代碼進行現代化改造時使用。 來源:jeongheonk/c-sharp-custom-marketplace。

如何安裝 csharp-refactor?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/jeongheonk/c-sharp-custom-marketplace --skill csharp-refactor 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/jeongheonk/c-sharp-custom-marketplace