
How to split one long code file into several: export, import and paths between files, step by step. Plus a prompt so AI does it for you without breaking it.

How to safely rename a variable or function across a whole project: why Find and Replace breaks code, and how to do it in 6 steps with F2 and a final check.

Agents almost always suggest rewriting — because rewriting is cheaper for them than understanding. Five criteria for when to refactor and when to start over.

Technical debt isn't "bad code" — it's the price of "fast now". Here's how it grows interest, why AI speeds it up, and when it's time to pay it back.

What is refactoring in plain words: editing code so that nothing changes on the outside. Why touch working code at all, and how to ask AI to do it safely.