Refactor without changing behaviour

Small, safe, reviewable steps instead of a rewrite.

Works with ChatGPT, Claude

Use it when: Cleaning up code you cannot afford to break.

Fill in the blanks

Your prompt

Make it yours

Improve your own version, or save it with your usual details filled in.

More coding prompts