coding

Code Review Buddy Before I Open a PR

What This Prompt Does

Checks whether the code matches the goal you stated.

Orders refactors by impact so you fix the scary stuff first.

Labels guesses so you do not treat speculation as fact.

When to Use It

Before opening a PR on unfamiliar code.

When you are solo and miss a second pair of eyes.

After a hackathon spike that needs hardening.

Best For:Developers And Bootcamp Grads

The Prompt

Copy-Paste Ready
Language or framework: [e.g. TypeScript / React / Python] What this code is supposed to do in one sentence: [GOAL] Code or diff: [PASTE] Review like a senior who likes teaching: 1) Does it match the goal? If not, where it drifts. 2) Readability: naming, structure, anything confusing. 3) Edge cases: nulls, empty lists, slow inputs, race conditions if relevant. 4) Security or privacy smells if any (even mild ones). 5) 3 concrete refactors, ordered by impact. 6) If you are guessing, label guesses clearly. Do not rewrite the whole file unless I ask — keep feedback scannable.

Related AI Resources

Pair this prompt with supporting pages across the site to get better output and compare alternatives.