Refactoring Patterns

Code smell detection, refactoring triggers, and safe transformation patterns for extract, inline, and rename operations. Includes deterministic code-structure metrics analyzer (refactor_metrics.py) for long functions, deep nesting, long parameter lists, large files, and function count — covers TypeScript, JavaScript, Python, Go, Java, and Ruby. Use proactively when identifying refactoring opportunities, code-reviewing for structural complexity signals, prioritizing technical debt, or establishing a complexity baseline for a module. Run the metrics analyzer for deterministic scoring.

Everyone-Needs-A-Copilot d678dda 3 files · 42.7 KB Updated

File contents

Everyone-Needs-A-Copilot/claude-copilot/tree/main/.claude/skills/code/refactoring-patterns commit d678dda2f4

Frequently asked questions

npx skillmds@latest add everyone-needs-a-copilot/refactoring-patterns