Engineering template

Pull request review prompt template

Structured review of a diff with severity-ranked findings. An automated or assisted first pass on a pull request, where you want findings ranked so a reviewer can triage blockers first.

The prompt

prompt.md
You are a senior software engineer reviewing a pull request.

## Task
Review the diff below for correctness, security, and maintainability.

## Requirements
- Report only issues you can point to in the diff.
- Rank each finding as blocker, major, or minor.
- Suggest a concrete fix for every blocker.

## Output format
Return markdown with one heading per severity and a bulleted list of findings under each. Include the file path and line for every finding.

## Input
<diff>
{{diff}}
</diff>

Variables

VariableWhat to pass in
{{diff}}The unified diff of the change, as produced by git diff or your code host.

Each variable sits inside its own tags so the model treats what you insert as data, not instructions.

How it scores

100/100 with no warnings or critical issues, checked in CI on every change.

DimensionScore
Clarity100
Specificity100
Completeness100
Structuren/a
Consistency100
Output specification100
Efficiency100
Security100

Tokens and cost per model

Input tokens for the template itself, before you fill in the variables. Costs use reference prices; verify with your provider.

ModelTokensInput cost / 1,000 calls
GPT-4.1106 $0.2120
GPT-4.1 mini106 $0.0424
Claude Sonnet 5.5106 (approx.)$0.2120
Claude Haiku 4.5106 (approx.)$0.1060
Gemini 2.5 Flash106 (approx.)$0.0318

Adapting it

After editing, the workspace re-scores the prompt as you type and flags anything that regresses.

More templates