SnipTray logo
Coding

Review this diff

Correctness pass that insists on a test check.

  • code review
  • correctness
  • testing

The prompt

Review the following {{language}} diff.

Focus on {{focus}}. For each finding give me the file and line, the risk in one
sentence, and the smallest fix that removes it. Flag anything that changes
behaviour without a test covering the new behaviour.

If the diff is fine, say so plainly instead of inventing nits.

{{diff}}

What to fill in

{{language}}
Language — e.g. Swift
{{focus}}
What to focus on — e.g. concurrency, retain cycles, force-unwraps
{{diff}}
The diff — e.g. git diff | pbcopy

What it produces

ClipboardStore.swift:126 — evict() runs before refresh(), so the
free-tier cap is applied against the previous fetch. A user who
downgraded keeps seeing 500 snips until the next launch.
Fix: swap the two calls.

No test covers the downgrade path.

117 prompts, in the app you already paste from

The whole library, searchable, with your own prompts alongside it. Free to browse here; Pro to keep them a keystroke away on every device.