code-refactoring-patterns

When and how to refactor complex functions including complexity thresholds (50+ statements, 12+ branches), extraction patterns, guard clauses, and testing strategies. Use when ruff/pylint complexity warnings appear or code becomes hard to maintain.

$ 安裝

git clone https://github.com/randalmurphal/claude-config /tmp/claude-config && cp -r /tmp/claude-config/skills/code-refactoring ~/.claude/skills/claude-config

// tip: Run this command in your terminal to install the skill