github/awesome-copilot · refactor · SKILL.md

重构

精准代码重构,提升可维护性而不改变行为。涵盖函数提取、变量重命名、拆分复杂函数、增强类型安全、消除代码异味及应用设计模式。比仓库重建更温和,适用于渐进式改进。

★ 38154 质量 71.0 许可证 MIT 测试 generic

这是公开 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

返回目录