·code-refactor
</>

code-refactor

zpankz/mcp-skillset

执行批量代码重构操作,例如跨文件重命名变量/函数、替换模式和更新 API 调用。当用户请求重命名标识符、替换已弃用的代码模式、更新方法调用或在多个位置进行一致的更改时使用。在诸如“重命名所有实例”、“在任何地方用 Y 替换 X”、“重构以使用”或“更新所有调用”等短语时激活。

6安装·0热度·@zpankz

安装

$npx skills add https://github.com/zpankz/mcp-skillset --skill code-refactor

SKILL.md

Perform systematic code refactoring operations across files using pattern-based search and replace. This skill focuses on bulk transformations that maintain code functionality while improving structure, naming, or updating APIs.

Before refactoring, locate all instances of the pattern to understand scope and impact.

For single occurrences or when context matters, use Edit without replaceall:

执行批量代码重构操作,例如跨文件重命名变量/函数、替换模式和更新 API 调用。当用户请求重命名标识符、替换已弃用的代码模式、更新方法调用或在多个位置进行一致的更改时使用。在诸如“重命名所有实例”、“在任何地方用 Y 替换 X”、“重构以使用”或“更新所有调用”等短语时激活。 来源:zpankz/mcp-skillset。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/zpankz/mcp-skillset --skill code-refactor
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 code-refactor?

执行批量代码重构操作,例如跨文件重命名变量/函数、替换模式和更新 API 调用。当用户请求重命名标识符、替换已弃用的代码模式、更新方法调用或在多个位置进行一致的更改时使用。在诸如“重命名所有实例”、“在任何地方用 Y 替换 X”、“重构以使用”或“更新所有调用”等短语时激活。 来源:zpankz/mcp-skillset。

如何安装 code-refactor?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/zpankz/mcp-skillset --skill code-refactor 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/zpankz/mcp-skillset