Skip to content

Coding workflow

Review a pull request

Look for actionable defects and explain the evidence behind each finding.

Supply your inputs

Diff, requirements, constraints. Replace the variables in braces with your own context. Ask for missing information before running the task. Do not include private information you do not need to share.

The prompt

Review the supplied diff against the supplied requirements. Identify only actionable defects introduced by the change. For each finding include file and line, triggering input, observed versus expected behavior, severity, and supporting evidence. Distinguish confirmed findings from unverified concerns. Do not claim to run tests. If context is missing, ask for it.
Requirements: {requirements}
Diff: {diff}

Worked example

Requirement: return an empty list for zero items. Diff: changes a loop condition from i < items.length to i <= items.length. Review: for an empty list the loop now runs once and reads an absent element. Check how that value is used before assigning severity.

Illustrative example, not a recorded model test.

Check the result

Verify the finding against the surrounding code and reproduce it with a meaningful test. Do not accept invented file names or line numbers.

Adapt and repeat

Run a small case first. Record where the result misses a requirement, change one part of the prompt, and compare the revised output with the same checks. A confident tone does not establish accuracy.