Write tests that catch real bugs
Edge cases and failure modes, not just the happy path.
Works with ChatGPT, Claude, Gemini
Use it when: Adding a test suite to existing code.
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