python-refactoring
CommunityRefactor Python code for clarity.
Software Engineering#code quality#refactoring#python#maintainability#python best practices#code size
Authorjr2804
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides clear guidelines and triggers for refactoring Python code, helping to improve maintainability, readability, and adherence to best practices by addressing code size and complexity.
Core Features & Use Cases
- Module Size Thresholds: Identifies when Python files exceed 250 lines and suggests splitting or extracting functions.
- Function Size Thresholds: Flags functions over 75 lines and recommends decomposition.
- Class Size Thresholds: Guides refactoring for classes exceeding 200 lines, emphasizing Single Responsibility Principle (SRP) and composition.
- Use Case: When a Python module grows too large, this skill helps you decide whether to break it into smaller modules or extract specific functionalities into separate functions, making the codebase easier to manage.
Quick Start
Use the python-refactoring skill to refactor a Python function that is over 75 lines long.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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-refactoring Download link: https://github.com/jr2804/mcp-config-converter/archive/main.zip#python-refactoring 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.