·python-refactor
</>

python-refactor

系统的代码重构技能,将复杂、难以理解的代码转换为清晰、文档齐全、可维护的代码,同时保持正确性。当用户请求“可读”、“可维护”或“干净”代码时、在标记理解问题的代码审查期间、遗留代码现代化或在教育/入门环境中使用。应用结构化重构模式并进行验证。

56安装·1热度·@acaprino

安装

$npx skills add https://github.com/acaprino/alfio-claude-plugins --skill python-refactor

如何安装 python-refactor

通过命令行快速安装 python-refactor AI 技能到你的开发环境

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

来源:acaprino/alfio-claude-plugins。

SKILL.md

查看原文

Transform complex, hard-to-understand Python code into clear, well-documented, maintainable code while preserving correctness. This skill guides systematic refactoring that prioritizes human comprehension without sacrificing correctness or reasonable performance.

Refactoring must NEVER introduce technical, logical, or functional regressions.

Read and apply references/REGRESSIONPREVENTION.md before any refactoring session.

系统的代码重构技能,将复杂、难以理解的代码转换为清晰、文档齐全、可维护的代码,同时保持正确性。当用户请求“可读”、“可维护”或“干净”代码时、在标记理解问题的代码审查期间、遗留代码现代化或在教育/入门环境中使用。应用结构化重构模式并进行验证。 来源:acaprino/alfio-claude-plugins。

可引用信息

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

安装命令
npx skills add https://github.com/acaprino/alfio-claude-plugins --skill python-refactor
分类
</>开发工具
认证
收录时间
2026-02-22
更新时间
2026-03-10

Browse more skills from acaprino/alfio-claude-plugins

快速解答

什么是 python-refactor?

系统的代码重构技能,将复杂、难以理解的代码转换为清晰、文档齐全、可维护的代码,同时保持正确性。当用户请求“可读”、“可维护”或“干净”代码时、在标记理解问题的代码审查期间、遗留代码现代化或在教育/入门环境中使用。应用结构化重构模式并进行验证。 来源:acaprino/alfio-claude-plugins。

如何安装 python-refactor?

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

这个 Skill 的源码在哪?

https://github.com/acaprino/alfio-claude-plugins