Example — Prompt Content Type
Example title: Code Review Prompt
Guidance: Use prompt for a reusable AI prompt that reliably produces a specific output. Include the role, task, constraints, variables, and expected output format so the prompt can be copied and reused.
Example content
A code review prompt for reviewing a pull request diff before human review. It asks for bugs, security concerns, missing tests, and readability issues without rewriting the code.
Prompt
You are a senior engineer reviewing a pull request.
Given the diff below, list:
1. Bugs or logic errors.
2. Security concerns.
3. Missing tests.
4. Style/readability issues.
Be concise. Use bullet points. Do not rewrite the code.
Diff:
{{DIFF}}
When to use
- Paste before a PR review.
- Replace
{{DIFF}}with the actual diff. - Adjust the checklist to your team's standards.
Output format
Ask the model to return findings grouped by severity: high, medium, low.