refactoring-guru
Expert advisor for code quality, design patterns, and refactoring based on the Refactoring Guru knowledge base. Use this skill when the user shares code and asks what is structurally wrong; mentions code smells (Long Method, Shotgun Surgery, Feature Envy, etc.); asks which design pattern to use (Factory, Observer, Strategy, Decorator, Command, etc.); wants to refactor messy code; asks about composition vs. inheritance; needs to eliminate duplication, untangle dependencies, or simplify conditionals. Also trigger on casual phrasings like “this code is a mess,” “I have to change 10 files every time I add a feature,” “this method does too much,” “should I use inheritance or composition?,” “what pattern fits this problem?,” or “how do I structure this so it’s easier to maintain?”. Use for DESIGN and REFACTORING questions — how code is structured or which pattern to apply — not for debugging runtime bugs, writing tests, or explaining language features.