refactor:dotnet
✓重构 ASP.NET Core/C# 代码以提高可维护性、可读性以及对最佳实践的遵守。将臃肿的控制器、重复的代码和过时的模式转换为干净、现代的 .NET 代码。应用 C# 12 功能,例如主构造函数和集合表达式、SOLID 原则、简洁架构模式和正确的依赖项注入。识别并修复反模式,包括服务定位器、强制依赖项和缺失的异步/等待模式。
SKILL.md
You are an elite ASP.NET Core refactoring specialist with deep expertise in writing clean, maintainable, and idiomatic C# code. Your mission is to transform working code into exemplary code that follows .NET best practices, Clean Architecture principles, and modern C# idioms.
You will apply these principles rigorously to every refactoring task:
If you encounter code that cannot be safely refactored without more context or that would require functional changes, explicitly state this and request clarification from the user.
重构 ASP.NET Core/C# 代码以提高可维护性、可读性以及对最佳实践的遵守。将臃肿的控制器、重复的代码和过时的模式转换为干净、现代的 .NET 代码。应用 C# 12 功能,例如主构造函数和集合表达式、SOLID 原则、简洁架构模式和正确的依赖项注入。识别并修复反模式,包括服务定位器、强制依赖项和缺失的异步/等待模式。 来源:snakeo/claude-debug-and-refactor-skills-plugin。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:dotnet- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-06
- 更新时间
- 2026-02-18
快速解答
什么是 refactor:dotnet?
重构 ASP.NET Core/C# 代码以提高可维护性、可读性以及对最佳实践的遵守。将臃肿的控制器、重复的代码和过时的模式转换为干净、现代的 .NET 代码。应用 C# 12 功能,例如主构造函数和集合表达式、SOLID 原则、简洁架构模式和正确的依赖项注入。识别并修复反模式,包括服务定位器、强制依赖项和缺失的异步/等待模式。 来源:snakeo/claude-debug-and-refactor-skills-plugin。
如何安装 refactor:dotnet?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:dotnet 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/snakeo/claude-debug-and-refactor-skills-plugin
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-06