一键导入
refactor-py
Refactor Python code for readability and testability. Extract functions, simplify conditionals, add type hints, and split large modules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Refactor Python code for readability and testability. Extract functions, simplify conditionals, add type hints, and split large modules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Search, show, dispatch agents, execute commands, run workflows, manage wikis, env configs, and whole-file secrets, route the proposal queue, improve assets, and curate stash assets via the akm CLI. Use when the user wants to find or use tools, skills, commands, agents, knowledge, lessons, tasks, wikis, env assets, secrets, or workflows.
Review pull requests for style, correctness, security, and tests. Walks the diff and flags issues with file:line references.
Diagnose runtime errors and stack traces. Reproduce locally, narrow the failure, and propose a minimal fix.
| name | refactor-py |
| description | Refactor Python code for readability and testability. Extract functions, simplify conditionals, add type hints, and split large modules. |
| keywords | ["refactor","python","py","cleanup","typing","readability"] |
Apply a sequence of safe, tested refactors to Python code.