refactor-simplify
CommunitySimplify large Python modules safely.
Software Engineering#error handling#python#refactor#state tracking#dry-run#code simplification#method extraction
Authortomazb
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Simplifies sprawling Python modules such as modules/finalization.py that suffer from long, unreadable methods, duplicated boilerplate, and fragile error handling while preserving every log, state change, and exception path.
Core Features & Use Cases
- Method extraction with discipline: Splits routines longer than 80 lines into private helpers with clear responsibilities while keeping orchestrator methods thin and organized.
- Safety-first enforcement: Mandates reading AGENTS/CLAUDE guidance, obeys logging and RBAC state-tracking rules, forbids new dependencies or signature changes, and insists on verification via existing tests.
- Dual operating modes: Offers review-only reports with ranked, risk-tagged opportunities and apply-mode simplifications executed one transform at a time with syntax and behavioral checks.
Quick Start
Ask the assistant to simplify modules/finalization.py while preserving every log message, state transition, and side effect.
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: refactor-simplify Download link: https://github.com/tomazb/rh-acm-switchover/archive/main.zip#refactor-simplify 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.