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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gitlab-mr-review - 安装完成后,直接呼叫该 Skill 的名称或使用
/gitlab-mr-review触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Gitlab Mr Review 是什么?
Automatically fetches and reviews GitLab merge requests using a template to identify issues and post detailed, actionable review comments. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 286 次。
如何安装 Gitlab Mr Review?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gitlab-mr-review」即可一键安装,无需额外配置。
Gitlab Mr Review 是免费的吗?
是的,Gitlab Mr Review 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Gitlab Mr Review 支持哪些平台?
Gitlab Mr Review 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gitlab Mr Review?
由 zachary.wu(@wujinyuan)开发并维护,当前版本 v1.0.0。