Identify and eliminate code smells using proven refactoring patterns — without changing behavior.
mog install mogteam/refactoring-patterns
After installing, your AI assistant needs a pointer to the skill file. Use the agent card below or the --wire flag.
Install + auto-wire
mog install mogteam/refactoring-patterns --target cursor --wireCreates .cursor/rules/refactoring-patterns.mdc pointing to the skill.
Agent card
## Refactoring Patterns Code refactoring skill for identifying and eliminating code smells. Covers extract function/variable, replace conditional with polymorphism, decompose complex logic, naming improvements, and safe refactoring workflow with tests. - **Install**: `mog install mogteam/refactoring-patterns --target cursor` - **Type**: skill - **Path after install**: `.cursor/skills/refactoring-patterns/SKILL.md` - **Targets**: cursor, claude-code, codex, generic When editing, read and follow @.cursor/skills/refactoring-patterns/SKILL.md
Paste into AGENTS.md, .cursor/rules, or your agent's instructions.
Install paths by target
No ratings yet.
Code refactoring skill for identifying and eliminating code smells. Covers extract function/variable, replace conditional with polymorphism, decompose complex logic, naming improvements, and safe refactoring workflow with tests.
Free
mog install mogteam/refactoring-patterns@mogteam
Official curated skills and prompt templates from the mog.md team.