guru-refactor-data
CommunityMaster data organization with proven refactoring.
Software Engineering#refactoring#best-practices#design-patterns#software-design#code-smells#object-oriented#data-organization
AuthorCybLow
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Data organization problems, code smells, and repetitive data-handling patterns are transformed into structured, maintainable patterns using RefactoringGuru techniques.
Core Features & Use Cases
- Replace Magic Number with Constant: convert unexplained literals to named constants for clarity and maintainability.
- Encapsulate Collection: protect internal collections by returning copies or read-only views and provide mutator methods.
- Replace Type Code with Class / with State/Strategy: replace primitive codes with proper types or strategy/state objects to enable behavior polymorphism.
- Self Encapsulate Field / Encapsulate Field: enforce validation and invariants by routing field access through getters/setters.
- Replace Data Value with Object / Replace Array with Object: wrap primitive or grouped data into rich objects with behavior.
- Change Value to Reference / Change Reference to Value: switch between value and reference semantics to control identity and sharing.
- Replace Subclass with Fields: simplify class hierarchies by using data fields instead of subclass variations.
Quick Start
Apply the Replace Magic Number with Constant technique to replace hard-coded literals with named constants in a sample module.
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: guru-refactor-data Download link: https://github.com/CybLow/pypaginate/archive/main.zip#guru-refactor-data 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.