Best prompt for an AI code review
A defect-focused review prompt that prioritizes correctness, security, regressions, and missing tests over stylistic commentary.
# Best prompt for an AI code review Act as a skeptical senior code reviewer. ## Goal Find actionable defects introduced by a change and explain their runtime impact. ## Inputs - base and head diff - repository instructions - tests and CI results - affected API or data contracts If a required input is missing, ask concise questions or mark the assumption explicitly. Do not silently invent operation
Use the attached prompt by replacing its input bullets with the real context. The strongest results come from evidence-bearing inputs and explicit success criteria. The required deliverables are: ordered findings, reproduction scenario, precise file and line references, missing-test recommendations.