$ recombobulate _
~/recombobulate $ tip --list --tag="refactoring"

// 54 tips tagged "refactoring"

87
Ask Claude to Modernize Legacy Code Patterns to Their Current Best Practices

Every language evolves — callbacks become async/await, class components become hooks, jQuery becomes vanilla JS, and var becomes const. Tell Claude to read your legacy code and upgrade it to modern patterns, one module at a time, while keeping the behavior identical and the tests passing.

recombobulate @recombobulate · 1 month ago
34
Tell Claude to Apply the Same Change Across Multiple Files in One Go

When you need to make the same change to 20 files — add a trait to every model, wrap all API responses in a consistent format, add logging to every controller, or update an import path everywhere — describe the change once and tell Claude to apply it across every matching file. One prompt, twenty edits, zero copy-paste.

recombobulate @recombobulate · 1 month ago
148
Ask Claude to Check Git Blame Before Refactoring to Understand Why the Code Exists

Before refactoring code that looks wrong or unnecessary, tell Claude to check git blame and the commit history to understand why it was written that way. What looks like a bug might be a deliberate workaround — and Claude can find the original commit message that explains the reasoning before you accidentally undo it.

recombobulate @recombobulate · 1 month ago
179
Ask Claude to Upgrade a Dependency and Fix Every Breaking Change Across Your Codebase

Major version upgrades are scary — deprecated methods, renamed classes, changed signatures, removed features. Tell Claude which dependency to upgrade and it reads the upgrade guide, bumps the version, then systematically finds and fixes every breaking change across your entire codebase.

recombobulate @recombobulate · 1 month ago
94
Ask Claude to Extract Hardcoded Strings into Translation Files for i18n Support

Internationalizing an existing app means finding every hardcoded string in every template, moving it to a translation file, and replacing it with a translation function call. Tell Claude to do it — it scans your views, extracts every user-facing string, and wires up the translation keys automatically.

recombobulate @recombobulate · 1 month ago
84
Ask Claude to Add Type Annotations to Your Untyped Code for Better Safety and Autocompletion

Point Claude at untyped code and tell it to add types — TypeScript annotations to JavaScript, type hints to Python, PHPDoc blocks to PHP, or generics to Java. Claude reads the actual usage, infers the correct types from context, and adds them without changing any behavior.

recombobulate @recombobulate · 1 month ago
76
Use Plan Mode to Think Through Complex Tasks Before Making Any Changes

For complex tasks — big refactors, architectural changes, multi-file features — switch to plan mode so Claude researches and proposes a step-by-step approach before touching any code. Review the plan, adjust it, then let Claude execute with confidence.

recombobulate @recombobulate · 1 month ago
43
Ask Claude to Standardize Inconsistent Patterns Across Your Codebase

Every codebase has inconsistencies — some controllers return responses one way, others differently; some services throw exceptions, others return null. Tell Claude to pick the best pattern and apply it everywhere so the codebase reads like it was written by one developer.

recombobulate @recombobulate · 1 month ago
199
Name a Design Pattern and Let Claude Apply It to Your Actual Code

Tell Claude which design pattern to use — Repository, Strategy, Observer, Decorator — and it applies it to your actual codebase, not a textbook example. It reads your existing code, identifies where the pattern fits, and refactors to implement it properly.

recombobulate @recombobulate · 1 month ago
189
Ask Claude to Map Your Dependency Graph and Find Tightly Coupled Modules

Tell Claude to trace every import and dependency across your codebase, then show you which modules depend on which — spotting circular dependencies, God modules everything imports, and tightly coupled layers that should be independent.

recombobulate @recombobulate · 1 month ago
132
Ask Claude to Find and Remove Dead Code That Nothing Uses Anymore

Tell Claude to scan your codebase for dead code — unused functions, orphaned files, unreachable branches, imports with no references, and config for features that were removed — then safely delete what's confirmed dead so your project stays lean.

recombobulate @recombobulate · 1 month ago
76
Ask Claude to Split Large Files into Smaller, Focused Modules

When a file has grown too large — a 1,000-line controller, a God object, or a component that does everything — tell Claude to break it apart into smaller, focused modules, moving each responsibility into its own file while keeping everything wired together and working.

recombobulate @recombobulate · 1 month ago