PR Slicer
Goal
Reduce review latency and rework by shipping smaller, independent slices.
Default Slice Budgets
- Target
<= 400changed lines per slice when practical. - Target
<= 10changed files per slice when practical. - Target
1-4commits per slice. - Keep each slice behaviorally coherent and independently verifiable.
Slicing Order
- Extract prerequisites first.
- Land mechanical refactors next.
- Land behavior changes after prerequisites are merged.
- Land UI/docs/polish last.
Slice Packet Template
For each slice, define:
GoalOwned filesOut of scopeRisk level(low/medium/high)Verification command(s)with expected pass conditionRollback plan
Hard Rules
- Avoid mixing refactor and behavior changes in one slice unless unavoidable.
- Avoid touching unrelated subsystems in one slice.
- Avoid cross-slice hidden dependencies.
- If a slice depends on unmerged work, state it explicitly.
Verification Discipline
- Run narrow checks first for touched behavior.
- Run project gate checks before handoff.
- Record exact commands and outcomes for each slice.
Final Handoff Format
- Slice list with order and purpose
- Per-slice owned files
- Per-slice verification evidence
- Residual risk and follow-up slices