·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