representation-envy-refactor

Community

Refactor code to eliminate representation envy and improve object ownership.

AuthorKentBeck
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps identify and refactor code that accesses another object's internal representation, promoting better object ownership and design.

Core Features & Use Cases

  • Identify Representation Envy: Detects code that reads or manipulates another object's internal state.
  • Refactoring Suggestions: Offers guidance on moving behavior to the object that owns the representation.
  • Use Case: When reviewing or refactoring a codebase, this Skill can help identify and correct cases where a class is improperly depending on the internal state of another object.

Quick Start

Analyze the codebase using the representation-envy-refactor skill and follow the suggested refactorings.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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: representation-envy-refactor
Download link: https://github.com/KentBeck/SmalltalkGenie/archive/main.zip#representation-envy-refactor

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 620,000+ vetted skills library on demand.