Gitlab Mr Review
/install gitlab-mr-review
GitLab MR Review
This skill performs code reviews on GitLab merge requests using a standardized template.
Trigger
When user says something like:
- "帮我review这个mr: ${url}"
- "review this mr: ${url}"
- "帮我审查这个mr: ${url}"
Workflow
Step 1: Extract MR URL and Project Info
Parse the MR URL to extract:
- GitLab host (e.g., gitlab.snowballtech.com)
- Project path (e.g., bp/iot-admin-arco)
- MR IID (e.g., 1321)
Step 2: Configure glab for the GitLab instance
glab config set host https://\x3Chostname>
Step 3: Fetch MR Information
glab api projects/\x3Cproject>/merge_requests/\x3Ciid>
Step 4: Fetch MR Changes (Diff)
glab api projects/\x3Cproject>/merge_requests/\x3Ciid>/changes
Step 5: Analyze the Diff
Read the review template at code-review-template.md and analyze the diff for:
- TODO/FIXME comments
- Unfinished code
- Hardcoded values
- Potential bugs
- Security issues
- Code style issues
- Missing error handling
Step 6: Generate Review Comment
Fill in the template with your analysis:
- 概述: Brief summary of what the MR does
- 优点: What went well
- 建议: Specific suggestions with file paths and line numbers
- 问题: Issues that need fixing
- 结论: Action items (checkboxes)
Step 7: Post Comment to MR
glab api projects/\x3Cproject>/merge_requests/\x3Ciid>/notes --method POST \
--raw-field body="$(cat review-comment.md)"
Or use inline with --raw-field body="\x3Ccontent>"
Tips
- Use emoji to highlight severity (🔴 for critical, 🟡 for warnings, ✅ for good)
- Be specific: include file paths and line numbers
- Provide actionable feedback
- Balance praise with constructive criticism
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gitlab-mr-review - After installation, invoke the skill by name or use
/gitlab-mr-review - Provide required inputs per the skill's parameter spec and get structured output
What is Gitlab Mr Review?
Automatically fetches and reviews GitLab merge requests using a template to identify issues and post detailed, actionable review comments. It is an AI Agent Skill for Claude Code / OpenClaw, with 286 downloads so far.
How do I install Gitlab Mr Review?
Run "/install gitlab-mr-review" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Gitlab Mr Review free?
Yes, Gitlab Mr Review is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Gitlab Mr Review support?
Gitlab Mr Review is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Gitlab Mr Review?
It is built and maintained by zachary.wu (@wujinyuan); the current version is v1.0.0.