Write tests that catch real bugs
Edge cases and failure modes, not just the happy path.
ChatGPTClaudeGemini
Use it when: Adding a test suite to existing code.
Fill in the blanks
Your prompt
Keep this prompt
Save it to your own vault with your usual values already filled in, and reach it from any tab with the Chrome extension.
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