Refactoring Guide

Applies safe, incremental, behavior-preserving refactorings (extract function/variable, rename, inline, decompose conditionals, remove duplication, replace conditional with polymorphism, introduce parameter object) using a test-protected, small-step workflow. Use this skill when the user asks to "refactor", "clean up", "simplify", "extract a method/function", "rename", "remove duplication", "reduce nesting", "break up a god class/long function", "improve readability", "untangle" code, "make this testable", "reduce complexity", or "tidy up" without changing what the code does. Covers code smell detection, choosing the right refactoring, and verifying behavior is unchanged.

JayRHa 4568e54 6 files · 30.0 KB Updated

File contents

JayRHa/AgentSkills/tree/main/refactoring-guide commit 4568e54255

Frequently asked questions

npx skillmds@latest add jayrha/refactoring-guide