skills-python-refactor
用于 Claude Code 的 Python 重构技能,基于 rope 提供 AST 感知的重构能力。
Python重构
AST感知
Claude Code
rope
代码重构
开发工具
⭐ 0⬇️ 0🏷️ main📦 2
skills-python-refactor-main.zip
67.8 KB下载
安装与使用说明
Codex
- 先下载 ZIP 包(例如:skills-python-refactor-main.zip)。
- 解压后放到 $CODEX_HOME/skills/ 目录下。
- 如果没有设置 $CODEX_HOME,通常可放到 ~/.codex/skills/。
- 确保目录内有 SKILL.md,然后重开会话即可使用。
源码目录预览
├── tests │ ├── fixtures │ │ ├── fixture-add-imports │ │ │ ├── pyproject.toml │ │ │ ├── test_already_imported.py │ │ │ ├── test_mark.py │ │ │ ├── test_needs_import.py │ │ │ ├── test_no_usage.py │ │ │ └── test_other_attr.py │ │ ├── fixture-annotations │ │ │ ├── helper.py │ │ │ ├── pyproject.toml │ │ │ ├── test_already_annotated.py │ │ │ ├── test_async.py │ │ │ ├── test_both.py │ │ │ ├── test_builtin.py │ │ │ ├── test_capsys.py │ │ │ ├── test_exclude_me.py │ │ │ ├── test_existing_import.py │ │ │ ├── test_nested.py │ │ │ ├── test_non_matching.py │ │ │ └── test_tmp_path.py │ │ ├── fixture-deexport │ │ │ ├── cli │ │ │ │ ├── __init__.py │ │ │ │ ├── aliased.py │ │ │ │ ├── commands.py │ │ │ │ └── main.py │ │ │ ├── pendant │ │ │ │ ├── config │ │ │ │ │ ├── __init__.py │ │ │ │ │ └── settings.py │ │ │ │ ├── daemon │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── handler.py │ │ │ │ │ └── protocol.py │ │ │ │ ├── __init__.py │ │ │ │ ├── models.py │ │ │ │ └── utils.py │ │ │ ├── tests │ │ │ │ ├── __init__.py │ │ │ │ ├── test_config.py │ │ │ │ ├── test_daemon.py │ │ │ │ └── test_models.py │ │ │ ├── .gitignore │ │ │ └── pyproject.toml │ │ ├── fixture-idiomatic-layout │ │ │ ├── src │ │ │ │ └── myapp │ │ │ │ ├── handlers │ │ │ │ │ ├── __init__.py │ │ │ │ │ └── status.py │ │ │ │ ├── __init__.py │ │ │ │ └── models.py │ │ │ ├── tests │ │ │ │ ├── test_models.py │ │ │ │ └── test_status.py │ │ │ ├── pyproject.toml │ │ │ └── uv.lock │ │ └── fixture-move │ │ ├── myapp │ │ │ ├── handlers │ │ │ │ ├── __init__.py │ │ │ │ └── status.py │ │ │ ├── __init__.py │ │ │ ├── models.py │ │ │ └── utils.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ └── test_models.py │ │ ├── .gitignore │ │ └── pyproject.toml │ ├── conftest.py │ ├── test_absolutize.py │ ├── test_add_imports.py │ ├── test_add_param_annotations.py │ ├── test_bootstrap.py │ ├── test_deexport.py │ ├── test_find_files.py │ ├── test_format_diff.py │ ├── test_idiomatic_layout.py │ ├── test_move_globals.py │ ├── test_move_module.py │ └── test_refactor_history.py ├── .gitignore ├── .gitignore ├── .python-version ├── README.md ├── SKILL.md ├── absolutize.py ├── add_imports.py ├── add_param_annotations.py ├── annotations.md ├── custom_scripts.md ├── deexport.py ├── imports.md ├── main.py ├── move_globals.py ├── move_module.py ├── pyproject.toml ├── refactor_history.py ├── rope-api.md ├── rope_bootstrap.py └── uv.lock
元数据
Slug: skills-python-refactor
作者: zaripych
协议: 未声明
包大小: 67.8 KB
SHA256: e4a1374f10eb52c74b3327432e4822971840faf31000cf55730deb57b6ac2bc4