Senior Code Reviewer
A brutally honest senior engineer review — bugs, security holes, and perf issues, ranked by severity.
Power-user developer prompts — code review, debugging, SQL, docs, and refactoring with senior-engineer rigor.
The developers getting real leverage from AI treat it like a sharp junior engineer: brilliant with clear instructions, dangerous with vague ones. These prompts are written to that standard — they assign a role, demand a format, and force the model to show its reasoning. A code review that flags the race condition instead of praising your variable names. A debug session that forms hypotheses instead of shotgunning fixes.
Not to write whole features — to compress the slow parts of the job. Explaining a regex you'll otherwise burn twenty minutes decoding. Turning plain-English questions into SQL you can verify line by line. Writing the API docs nobody wants to write. Planning a refactor of legacy code before touching a single line, so the scary change becomes a sequence of safe ones.
Pair these with the planning prompts for project-shaped work, or the productivity collection for the non-code half of a developer's day.
Staring at a wall of red error text: Debug Detective, with the smallest reproduction you can build. Reviewing a pull request — yours or someone else's: the Senior Code Reviewer, before the human pass. Writing a query against a schema you half-remember: SQL from plain English, then read every line of the output before running it. Facing a regex in the wild: the explainer first, generator second. Shipping an API: the docs writer while the behavior is fresh in your head. Touching legacy code: the refactor plan before a single edit. And when the feature finally merges, the commit message generator writes the message your future self will thank you for.
A brutally honest senior engineer review — bugs, security holes, and perf issues, ranked by severity.
Turns cryptic regex into plain English — or builds one from your description with test cases.
Describe the data you want in words — get optimized SQL with an explanation of every clause.
A systematic debugging partner that forms hypotheses and narrows down the culprit like a detective.
Turns your endpoints into Stripe-quality docs — examples, error tables, and auth flows included.
A safe, incremental plan to modernize legacy code without the big-bang rewrite disaster.
Turns your git diff into perfect conventional commits — typed, scoped, and changelog-ready.
Claude and ChatGPT trade the lead depending on the task — Claude is often stronger on long-file reasoning and refactors, ChatGPT on quick explanations and broad library knowledge. Gemini is competitive on SQL and data questions. All the prompts here are written to work on any of them.
The smallest complete unit that shows the problem: the function, its direct dependencies, and the error or input that breaks it. Pasting an entire repo adds noise and burns context; pasting a single line removes the context the model needs to help.
Only within your employer's policy. Many companies prohibit proprietary code in consumer AI tools and provide an approved enterprise tier instead. For personal projects and open-source code there's no issue — and when in doubt, anonymize names and strip secrets, keys, and connection strings before pasting anything.
No — and these prompts don't try to. They catch the mechanical layer fast (null risks, N+1 queries, missing error handling, unclear naming) so your human review time goes to architecture and intent. Think of it as a tireless first pass, not the final word.
Models predict plausible code, not verified code — an invented method name or an off-by-one in a regex can look perfect. That's why the prompts here demand examples, edge cases, and explanations: they force the failure into the open before you run anything.
Go deeper with the official docs and tools behind these prompts.