| name | review-mr-local |
| description | Run the repository MR review CI job locally from the current branch using the same root-level snapshots and review.json contract as CI. |
review-mr-local
Use this skill after local implementation work and before pushing or creating a
MR. It prepares the same review inputs used by the GitLab review CI job, then
delegates review logic to review-mr.
Workflow
- From the repository root, prepare local review inputs. This prefers the
GitLab MR associated with the current branch for
mr_description.txt, then
falls back to locally built MR metadata when the GitLab MR cannot be fetched.
The mr_diff.txt snapshot is built from the local worktree diff, and the
command prints the selected review skill as skill=<path>:
python3 .gitlab/scripts/prepare_local_review_inputs.py
- Read the skill path printed by the command.
- Follow the selected skill exactly. It will apply any referenced local
companion guidance when present.
- Use only these root-level snapshots as review inputs:
mr_description.txt
mr_diff.txt
spec_context.md when present
- Inspect repository files from the current repository root when the review
skill needs source context.
- Write only
review.json in the repository root.
- Validate the review output:
python3 .gitlab/scripts/validate_review_json.py mr_diff.txt review.json
- Validate that the review phase did not mutate repository files:
python3 .gitlab/scripts/validate_local_review_result.py \
--baseline-status .local_review_baseline.status
Safety Rules
- After input preparation, do not run
git add, git commit, git push,
glab, or GitLab API commands.
- Do not post comments or mutate GitLab state.
- Do not modify source, CI files, tests, specs, or skill files.
- If review discovers issues, report them through
review.json; do not fix
code during this skill.