python-code-refactor
CommunitySafe, test-driven Python refactoring.
Authorvamseeachanta
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Systematic, safety-first Python code refactoring that transforms procedural scripts into maintainable, object-oriented architectures while preserving existing behavior through rigorous validation and testing.
Core Features & Use Cases
- Analysis of codebases to identify anti-patterns (long functions, deep nesting, missing type hints) and opportunities for refactoring.
- Phase-driven workflow (ANALYSIS, PLANNING, EXECUTION, VALIDATION) to plan, execute, and validate safe migrations.
- OOP transformation with dependency injection, clear boundaries between domain logic, services, and infrastructure.
- Integration of static analysis and testing to ensure regression-free changes with measurable quality improvements.
- Use cases include modernizing legacy Python apps, improving testability of critical modules, and guiding teams toward SOLID-aligned architectures.
Quick Start
Invoke the full refactor workflow on a Python project to illustrate the end-to-end process.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferencesassets
💻 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-code-refactor Download link: https://github.com/vamseeachanta/worldenergydata/archive/main.zip#python-code-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 471,000+ vetted skills library on demand.