python-refactor
CommunitySafe, explainable Python refactors powered by AST
AuthorCissou34730
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers perform automated, safe Python refactorings by analyzing code with the AST and generating patch-friendly changes that preserve behavior and are easy to review.
Core Features & Use Cases
- AST-based refactor suggestions for common patterns and anti-patterns (e.g., unnecessary imports, formatting improvements, small function extractions).
- Patch/diff outputs that enable code review and deterministic application.
- Dry-run mode with backups and a safe apply workflow to verify changes before committing.
- Integration with unit tests to validate behavior after refactors.
Quick Start
Use the scripts/analyze.py to scan a Python project for refactor opportunities. Use the scripts/refactor.py to generate patches (dry-run by default). Use the scripts/apply_patch.py to apply confirmed patches safely (creates backups).
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: python-refactor Download link: https://github.com/Cissou34730/Azure-Architect-Assistant/archive/main.zip#python-refactor Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.