python-refactor

Installation
SKILL.md

Python Refactor Skill

使用 rope 库编写安全、可靠的 Python 代码重构脚本。

⚠️ 重要提示

所有 API 文档已移至 reference/ 目录,使用前请查阅对应文档。

rope 源代码位于 ~/GitApp/rope,遇到疑难问题可查阅源码。

⛔ 最高铁律

一旦开启此 Skill,必须且只能使用 rope 进行重构

⛔ 绝对禁止:
  • 脚本执行出错后,立刻换用正则表达式/str.replace()等其他方法
  • 绕过 rope 直接修改代码文件
Installs
1
First Seen
Jun 23, 2026