glab-mr

Automate GitLab merge request creation, review, and merge workflows.

12|2|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/haomingz/kimi-skills --skill glab-mr-haomingz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab-mr
Source: https://github.com/haomingz/kimi-skills/tree/main/skills/gitlab-cli-guide/glab-mr
Command: npx skills add https://github.com/haomingz/kimi-skills --skill glab-mr-haomingz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps teams manage GitLab merge requests (MRs) end-to-end, from creation and review to approval and merging, streamlining collaboration across projects.

Core Features & Use Cases

  • MR creation: quickly create MRs from local branches or linked issues, with messages and labels.
  • MR review & collaboration: view diffs, add notes, approve, and resolve discussions to drive faster feedback.
  • MR lifecycle automation: merge, rebase, close, or reopen MRs, and manage statuses with a complete workflow.

Quick Start

Create a new merge request for the current branch using glab mr create.

Frequently Asked Questions about glab-mr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GitLab merge request creation from a local branch?

You can automate GitLab merge request creation by using the glab mr create command to generate an MR from a local branch, including custom labels and messages. This streamlines initiating code review workflows directly from your terminal.

Can I view diffs and add notes to a merge request using glab?

Yes, you can view merge request diffs and add review notes using glab mr diff and glab mr note commands. This enables collaborative code review by allowing you to inspect changes and provide feedback directly within the terminal.

What is the best way to approve and merge a GitLab MR from the command line?

The best way to approve and merge a GitLab MR from the command line is by executing the glab mr approve and glab mr merge commands sequentially. This drives the complete MR lifecycle automation without needing the GitLab web interface.

Does glab support rebase and close operations for merge requests?

Yes, glab supports rebase and close operations for merge requests through the glab mr rebase and close commands. This allows you to manage MR statuses and handle workflow edge-cases across different projects effectively.

How do I link a GitLab issue to a new merge request in my workflow?

You can link a GitLab issue to a new merge request by using the issue-linked task workflow during MR creation. The Skill enables creation from linked issues, ensuring traceability between your issue tracking and code changes.

What are the limitations of managing MRs with glab compared to the web interface?

Managing MRs with glab is limited to the specific commands and flags mapped in the Skill, such as create, list, diff, note, approve, merge, view, and rebase. Complex visual conflicts or highly interactive web-only features are not handled.