guru-refactor-moving

Community

Refactor object interactions with proven methods

AuthorCybLow
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This collection teaches proven refactoring techniques for moving responsibilities between objects to improve cohesion and reduce coupling.

Core Features & Use Cases

  • Move Method: relocate behavior to the class that uses its data most.
  • Move Field: relocate a field to the owning class to reduce cross-class dependencies.
  • Extract Class: split responsibilities into a new class for maintainability.
  • Inline Class: collapse a tiny helper class into its usage site.
  • Hide Delegate: expose a cleaner API by hiding delegation chains.
  • Remove Middle Man: let client code access delegates directly when appropriate.
  • Introduce Foreign Method: add a utility method for unmodifiable or external classes.
  • Introduce Local Extension: extend an unmodifiable class with a local wrapper or subclass.

Quick Start

Identify a candidate method or field that frequently uses data from another class and move it to the owning class to improve cohesion.

Dependency Matrix

Required Modules

None required

Components

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-moving
Download link: https://github.com/CybLow/pypaginate/archive/main.zip#guru-refactor-moving

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.