GitLab MR 审查

SKILL研究检索

原名 gitlab-mr-review

研究检索 调用外部服务 许可证不明确 CodexClaudeCursorGemini CLI
安装这个技能

用于围绕 GitLab 项目、Merge Request、Issue、分支、流水线和代码审查流程提供辅助能力。它适合让 Agent 查询项目状态、整理提交差异、辅助检查合并请求或汇总 CI 结果。使用时需要确认项目权限、访问 token 和目标分支范围;涉及合并、推送、改工单或触发流水线时,应先预览影响并核对团队流程。

累计安装 519 本周 21
GitHub 星标 1 仓库 super-agent
下载量 163 技能市场下载数
权限级别 调用外部服务 安装前请确认风险范围
许可证 许可证不明确 unknown

安装

GitHub 仓库
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
npx skills add https://github.com/bowentan/super-agent --skill gitlab-mr-review

技能档案

研究检索
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方bowentan仓库 super-agent · 版本 未标注
宿主客户端Codex、Claude、Cursor、Gemini CLI技能可被这些客户端加载
安装方式GitHub 仓库安装包 bowentan/super-agent
权限级别调用外部服务安装前请确认风险范围
许可证unknown许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验2026-05-01上游最后核验时间 · 数据更新 未标注
正文体量3.4 KBSKILL.md 原文大小,越大说明说明书写得越细

能做什么

4 项能力
上游给出的能力概览与适用场景
  • 按任务关键词查找相关 Skills
  • 展示可复制的安装命令
  • 保留来源站点、仓库和原始说明,方便继续核验
  • 展示第三方安全扫描或审计结果
用户想查找某类 Agent Skill 时需要根据任务场景推荐可安装能力包时需要对比不同来源的安装命令和来源信息时

权限与风险

调用外部服务
装之前先读完这段

安装与使用指南

安装步骤

本站只展示命令,不托管安装包,也不自动执行。

怎么用

安装后应在对应宿主中按原始 README 的触发条件使用;当前草稿只做目录说明,具体调用方式由规则抽取,异常条目再复核。

SKILL.md 全文

3.4 KB
模型实际读到的说明书原文,来自技能仓库

GitLab Merge Request Review

Perform a code review on a GitLab merge request. Prefer glab MCP for fetching MR data; use glab CLI when MCP is unavailable.


Repo and MR Resolution

Default repo

  • Default: The GitLab project is assumed to be the same as the current project name (e.g. workspace or repo directory name).
  • If the current directory is a Git repo with a GitLab remote, use that to infer namespace/project when possible.

When repo is missing or wrong

If any of these are true:

  • Not in a Git repo, or
  • No GitLab remote, or
  • The MR to review is in a different project,

then ask the user for:

  • Repo: GitLab project path (namespace/project or full path), or the repo URL.
  • MR: Merge request IID (e.g. 42) or branch name, if not the current branch.

Do not guess the repo; ask once you know the default does not apply or cannot be determined.


Workflow

  1. Resolve repo
    - Use default (project name / current GitLab remote).
    - If not available or not the target repo, ask user for repo (and MR if needed).
  2. Resolve MR
    - Prefer the merge request for the current branch.
    - If user specified an MR IID or branch, use that.
    - If none can be determined, ask for MR IID or branch.
  3. Fetch MR data
    - MCP: Use glab MCP tools to get MR details and diff (e.g. view MR, get diff).
    - CLI: glab mr view [MR_IID] and glab mr diff [MR_IID] (omit MR_IID when one MR is in context for current branch).
    - Ensure you have the full diff and title/description before reviewing.
  4. Perform the review
    - Analyze the diff for:
    • Correctness and logic
    • Security and data handling
    • Style, naming, and structure
    • Tests and edge cases
    • Docs and comments where relevant
    • Produce a concise review: summary, list of findings (with file/line or hunk context), and suggestions.
  5. Optional: post as MR comment
    - Only after user confirmation. Do not post to GitLab until the user explicitly agrees.
    - MCP: Use the tool to add a comment (e.g. MR note) with the review text.
    - CLI: glab mr note [MR_IID] --message "..." with the review body (escape or quote appropriately).

Getting MR data

  • MCP: Use available glab MCP tools to:
  • List or get the current/specified MR
  • Retrieve the MR diff
  • CLI (from repo with glab auth):
  • glab mr view - view MR for current branch (or glab mr view <IID>)
  • glab mr diff - diff for current branch MR (or glab mr diff <IID>)
  • If repo is different: glab mr view -R namespace/project <IID> and glab mr diff -R namespace/project <IID>

Review output format

  1. Summary: 2-4 sentences on what the MR does and overall assessment.
  2. Findings: Group by severity or category (e.g. "Blocking", "Suggestions", "Nits").
    - For each item: file (and line/hunk if possible), issue, and suggested change or question.
  3. Conclusion: Approve / approve with comments / request changes (or equivalent), and any follow-up steps.

Keep the review actionable: clear, specific, and tied to the diff.


Checklist

  • Repo resolved (default = project name; else asked user for repo)
  • MR resolved (current branch or user-specified IID/branch)
  • MR details and full diff fetched (MCP or CLI)
  • Review written with summary, findings with context, and conclusion
  • If posting comment: user confirmed; then used MCP or glab mr note

安全信息

审计结论
未标注不代表已通过审计
安全审计Gen Agent Trust Hub、Socket、Snyk第三方安全审计平台给出的结论

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 2026-05-01。