Documentation
README
Code Review: Thorough Analysis of Code
Review the provided code or recent changes with a focus on correctness, maintainability, and best practices.
Review Process
Step 1: Identify What to Review
- If the user provided a file path or pasted code, review that
- If no specific target, run
git diffto find recent changes - If no git changes, ask the user what to review
Step 2: Read the Code
Use the Read tool to examine the full file(s). Understand the context — what does this code do? What's its role in the project?
Step 3: Analyze
Check for these categories of issues:
Bugs & Correctness
- Logic errors, off-by-one errors, null/undefined handling
- Missing edge cases, race conditions
- Incorrect API usage or wrong assumptions
- Type mismatches or unsafe casts
This is the opening of the README. Read the full README on GitHub.