.agents/agents/reidbaker-agent/skills/code-review/references/splitting_reviews.md
This reference document provides guidance on how to subdivide a large or complex code review into smaller, manageable chunks to maintain high quality and avoid context overload.
Consider splitting a review when:
The most common approach is to review files in logical groups:
You can also make multiple passes over the same set of changes focusing on different concerns:
To assist with splitting large diffs, use the provided Python script:
scripts/split_diff.py (inside the directory the SKILL.md is in)
This script can:
Usage Example:
python3 agents/skills/code-review/scripts/split_diff.py --output-dir scratch/diff_chunks < diff.txt
For JSON inputs:
python3 agents/skills/code-review/scripts/split_diff.py --json --json-key diff --output-dir scratch/diff_chunks < input.json
After performing subdivided reviews, use the Synthesis step to create the final output: