Refactor

Apply this skill whenever the user asks to refactor, clean up, restructure, or improve existing code — regardless of language or framework. Triggers include: "refactor this", "clean up my code", "this file is too long", "this function is hard to read", "reduce duplication", "decouple this", "improve maintainability", "apply design patterns", or any request to improve code quality without changing observable behavior. Also trigger when reviewing code that has obvious smells: god files, deeply nested logic, long parameter lists, duplicated blocks, or functions exceeding ~30 lines.

discountry d682e2d 4.4 KB Updated

File contents

discountry/ritmex-skills/tree/main/skills/refactor commit d682e2d717

Frequently asked questions

npx skillmds@latest add discountry/refactor