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 Updated 12 repo stars
Jannik Reinhard — I help enterprises ship secure AI agents

File contents

JayRHa/AgentSkills commit 4568e54255

Frequently asked questions

npx get-skill add jayrha/refactoring-guide