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
- CodingChatGPT, Claude, Gemini
Build and explain a regex
A pattern you can actually read, with test cases.
Fill it in and copy - CodingChatGPT, Claude, Gemini
Debug an error properly
Forces the model to rank causes by likelihood before proposing a fix.
Fill it in and copy - CodingChatGPT, Claude, Gemini
Document an API endpoint
Reference docs a stranger could implement against.
Fill it in and copy - CodingChatGPT, Claude, Gemini
Explain this code line by line
A walkthrough pitched at your level, plus the parts most likely to bite you.
Fill it in and copy