Review Lens: find the code issues that actually matter

Ready prompt
Review the code change below as a production pull request.

Change goal: improve clarity and reliability
Relevant system context: web app backed by D1
Diff or changed files:
refactor the data-loading flow

Focus on defects introduced or exposed by this change: incorrect behavior, edge cases, data loss, security, concurrency, performance, compatibility, missing validation, and tests that would pass despite a bug. Do not spend findings on personal style preferences or unrelated legacy issues.

For each finding provide:
- Severity: P0 critical, P1 high, P2 medium, or P3 low.
- Concise title naming the failure.
- Exact file, symbol, or smallest relevant line range.
- Trigger: the concrete input or runtime condition.
- Impact: what breaks and for whom.
- Evidence: why the current code permits the failure.
- Minimal correction and a focused regression test.

Order findings by severity. Merge findings with the same root cause. If no actionable defects are supported by the supplied code, say "No actionable findings" and list remaining test or context gaps separately. Never invent unseen behavior.

Prompt details

Review a change for correctness, regressions, security, and maintainability with prioritized, actionable findings.

Shared by
@picoprompt Official
Works best with
Coding model with diff context
Published
Sep 9, 2026