ProSingle-file edits
Small refactors
5 min read·Lesson 4 of Single-file edits
A refactor is a tidy-up: it changes how a file is written without changing what it does. For your page, that means the code gets cleaner but the page still looks exactly the same. It is a perfect job for Claude — mechanical and fiddly — as long as you keep each one small.