Automates mechanical Python refactors like renames, moves, and import updates using rope. Benefits developers by reducing manual refactoring tasks. Integrates with Claude agents via a CLI wrapper script.
git clone https://github.com/brian-yu/python-rope-refactor.gitAutomates mechanical Python refactors like renames, moves, and import updates using rope. Benefits developers by reducing manual refactoring tasks. Integrates with Claude agents via a CLI wrapper script.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/brian-yu/python-rope-refactorCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I need to refactor some Python code. Here's the file structure: [FILE_STRUCTURE] And here's the code I want to refactor: [CODE] Please use python-rope-refactor to [REFACOTRING_TASK] and provide the updated code.
# Refactoring Report
## Renamed `calculate_total` to `compute_total`
```python
# Before
def calculate_total(items):
return sum(item.price for item in items)
# After
def compute_total(items):
return sum(item.price for item in items)
```
## Updated imports in `inventory.py`
```python
# Before
from .utils import calculate_total
# After
from .utils import compute_total
```
## Moved `compute_total` to `utils/math_operations.py`
```python
# New location: utils/math_operations.py
def compute_total(items):
return sum(item.price for item in items)
```Secure AI agent deployment
B2B Demand Generation Platform
IronCalc is a spreadsheet engine and ecosystem
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power