Coding prompts
Prompts that treat the model as a senior engineer rather than an autocomplete: ranked debugging hypotheses, reviews that lead with correctness, tests that cover the boundaries, and explanations pitched at your level.
- 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 - CodingChatGPT, Claude
Refactor without changing behaviour
Small, safe, reviewable steps instead of a rewrite.
Fill it in and copy - CodingChatGPT, Claude, Gemini
Review my code like a senior engineer
Correctness first, then security, then style — with line references.
Fill it in and copy - CodingChatGPT, Claude, Gemini
Turn a question into a SQL query
A correct query plus an explanation of the joins and assumptions.
Fill it in and copy - CodingChatGPT, Claude, Gemini
Write tests that catch real bugs
Edge cases and failure modes, not just the happy path.
Fill it in and copy