refactor-composing-methods

Installation
SKILL.md

Refactor: Composing Methods

Overview

These 9 techniques break down complex methods into smaller, readable pieces and eliminate duplication. Most frequently used refactoring techniques and the first defense against Bloater smells.

When to Use

  • Method exceeds ~20 lines
  • Comments explaining sections (each should be its own method)
  • Same code block in multiple places
  • Complex expressions hard to understand at a glance
  • Temporary variables accumulate and obscure logic

Quick Reference

Installs
8
GitHub Stars
4
First Seen
Apr 8, 2026
refactor-composing-methods — mickeyyaya/refactoring-skills