github/awesome-copilot · refactor · SKILL.md
重构
精准代码重构,提升可维护性而不改变行为。涵盖函数提取、变量重命名、拆分复杂函数、增强类型安全、消除代码异味及应用设计模式。比仓库重建更温和,适用于渐进式改进。
这是公开 Agent Skill 的中文说明,由采集翻译或编辑润色,完整内容以上游 SKILL.md 为准。适用于 Cursor / Claude Code / Codex / Gemini。 打开上游 SKILL.md
安装
通用(npx skills)
npx skills add github/awesome-copilot -s refactor
Cursor
把该 Skill 复制到项目的 .cursor/skills/refactor/ 目录
Claude Code
npx skills add github/awesome-copilot -a claude-code -s refactor