Representation Envy Refactor

Use when reviewing or refactoring code that pulls apart another object's private representation, such as raw limb/byte/slot access, slice constructors, or helper methods that expose internal storage. Guides agents to find representation envy and suggest moving behavior onto the object that owns the representation, using live-image Genie tools when working in Pharo.

KentBeck Updated 15 repo stars

File contents

KentBeck/SmalltalkGenie/tree/main/.agents/skills/representation-envy-refactor commit be5a2acb66

Frequently asked questions

npx skillmds@latest add kentbeck/representation-envy-refactor