Simplify and clean up a complicated function
Make tangled code easier to read and change without altering behavior, with every edit explained.
Get a prioritized code review that separates real defects from style nits, with a concrete fix for each issue.
Review the following {{language}} change as a careful senior engineer who will be on call for it.
Context: {{context}}
Review focus: {{focus}}
Diff or code:
{{diff}}
How to review:
- Read the whole change before commenting. Work out what it is trying to do, then check whether it does it.
- Only raise issues you can point to in the code. If something depends on code you cannot see, say what you would need to check instead of guessing.
- Skip formatting and naming nitpicks unless they hide a real problem.
Output format:
1. Verdict: approve, approve with changes, or request changes, in one sentence with the main reason.
2. Blocking issues: bugs, data loss, security holes, broken edge cases. For each give the location, why it fails (with a concrete input or scenario), and a suggested fix as a short code snippet.
3. Should fix: maintainability, missing tests, unclear error handling.
4. Optional suggestions: keep to at most three.
5. What is done well: one or two specifics.
6. Missing tests: list the cases you would add.It forces a verdict first and ranks findings by severity, so the author sees what blocks the merge. Requiring a concrete failing scenario for each issue cuts speculative comments. Paste the surrounding files for deeper checks.
Licensed CC0 (public domain) Version 1 · history
Make tangled code easier to read and change without altering behavior, with every edit explained.
Audit code or a feature design for vulnerabilities, mapped to realistic attack scenarios and fixes.
Create a PR description that helps reviewers understand the change, how to test it and what to watch for.
Review an API design for consistency, evolvability, error handling and security before you ship it.
Paste a slow or suspicious SQL query and get correctness checks, performance fixes, and a cleaner rewrite you can verify.
Draft a clear, tight system prompt that tells an AI coding assistant how to work in your repository.
Comments (0)
Sign in to join the discussion.
No comments yet. Be the first to share how it worked.