code-review-companion
Installation
SKILL.md
Code Review Companion
Paste in a diff and get a structured review: bugs, edge cases, naming, and the one thing worth fixing before merge.
{{input}} in the steps below is the user's input (Paste a diff or code snippet).
Steps
1. Scan for bugs
Read {{input}} line by line and flag anything that looks like a bug: logic errors, typos, off-by-ones, wrong comparisons. Quote the line.
2. Check edge cases
Identify unhandled inputs: null/undefined, empty collections, zero, negatives, unexpected types. List what's missing.
3. Review naming and clarity
Flag names, structures, or conditions that would confuse the next reader. Suggest a clearer alternative for each.