Provide the boundary around the code

Include the relevant handler, the data it accepts, how identity is established, and what happens when a dependency fails. Replace secrets, customer data, and internal addresses with safe examples. A model cannot assess a route’s authorization just from its function name.

Ask for findings with evidence

Choose a code-review skill and an approach for testing edge cases. Require the trigger, affected behavior, and smallest reproducible example for each finding. Ask the reviewer to distinguish confirmed issues from questions about missing context.

Validate in your own environment

Read the proposed changes before applying them. Run the relevant tests, confirm that the example reproduces the issue, and check for new failure modes. Copy the compiled review prompt into your chosen AI chat. Read its response there, then validate any proposed code in your own environment.

Take this into your next prompt

Reproducible evidence is more useful than a long list of generic warnings.