This setup gives both agents the same local, diff-based pre-push review workflow.
- Scope collector script:
tools/branch-review/collect_scope.sh - Output artifacts:
.tmp/branch-review/files.txt.tmp/branch-review/commits.txt.tmp/branch-review/diff.patch.tmp/branch-review/summary.md
pnpm review:scopeOr with a custom base ref:
bash ./tools/branch-review/collect_scope.sh origin/develop- Codex skill:
skills/branch-review/SKILL.md - Claude command:
.claude/commands/branch-review.md
Use this marker at the top of any review response:
[SKILL ACTIVE] branch-review
The collector script also prints the same marker so terminal logs and agent responses stay aligned.
Before any review starts, the agent must ask for user-defined review focus points. No focus points = no review execution.