csharp-refactor
✓C#代码重构技巧。应用 SOLID 原则、提取方法/类、引入设计模式并使语法现代化。在提高代码可维护性、解决代码异味或对遗留 C# 代码进行现代化改造时使用。
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
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01