/glab-skills:mr [create|view|list|merge|approve|diff|checkout|close|update|note] [options]from glab-skills
Create, view, list, merge, approve, diff, checkout, or comment on GitLab merge requests using the glab CLI. Use when the user wants to work with MRs from the terminal.
Ships in glab-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Manage GitLab merge requests via glab.
Parse $ARGUMENTS for the action and any relevant details (branch, MR number, etc.). If the action is unclear, ask the user.
glab mr create --title "<title>" --description "<body>" --target-branch <branch>
Useful flags:
--fill — fill title and description from commits; pushes the branch unless --push=false is set--template <name-or-path> — use a repository MR template or a template file--draft — mark as draft--label "<label>" — add a label--assignee "<username>" — assign to someone--reviewer "<username>" — request a review--description-file <file> — read the description from a file (- for stdin); prefer this over --description for long or multi-line bodies--attach <file> — upload a file and reference it at the end of the description (experimental, repeatable)--yes — skip the confirmation prompt (needed for non-interactive use)--no-editor — do not open an editor for the description--web — continue MR creation in the browserglab mr list
Lists open MRs by default. Filters:
--closed, --merged, --all — change which states are listed--assignee "<username>" — use --assignee=@me for MRs assigned to the current user--reviewer "<username>" — use --reviewer=@me for MRs awaiting the current user's review--author "<username>"--label "<label>"--draft, --not-draftglab mr view <number>
glab mr view <number> --web # open in browser
glab mr view <number> --comments # include comments and activities
glab mr approve <number>
glab mr merge <number>
Flags:
--squash — squash commits on merge--remove-source-branch — delete the branch after merge--auto-merge — merge once all merge checks pass (on by default; pass --auto-merge=false to merge immediately)--yes — skip the confirmation promptglab mr checkout <number>
glab mr checkout <number> --worktree ../review-mr-<number>
glab mr diff <number>
glab mr close <number>
glab mr update <number> --title "<new title>" --description "<new body>"
Other update flags: --description-file, --attach, --draft, --ready, --assignee, --reviewer, --label, --unlabel, --target-branch. When selecting by branch, --state opened|closed|merged|locked|any filters the lookup (default: any); IDs and URLs ignore this flag.
glab mr note create <number> --message "<comment text>"
glab mr note list <number> --state unresolved
glab mr note resolve <number> <discussion-id>
glab mr note create flags:
--reply <discussion-id> — reply to an existing thread (IDs come from glab mr note list)--file <path> --line <n> — comment on a line of the diff (--old-line for a removed line)--internal — internal note, visible only to project members--resolvable=false — non-blocking note, for status updates--attach <file> — upload a file and reference it in the comment (experimental)Use glab mr note draft for pending comments; they stay visible only to you until published:
glab mr note draft create <number> --file <path> --line <n> --message "<comment text>"
glab mr note draft list <number>
glab mr note draft publish <number> --yes --message "<summary>" --reviewer-state requested_changes
--reviewer-state accepts requested_changes or reviewed. It does not approve; use glab mr approve for that. --yes is required when not running interactively.
draft create prints the pending comment ID. Use glab mr note draft update <number> <draft-note-id> --message "<new text>" or glab mr note draft delete <number> <draft-note-id> to revise your pending review. Attachments upload immediately, even while the comment is pending.
Show the command output. For create, print the MR URL. For list, summarize the count and show the most relevant items.
For a complete list of subcommands and flags, see docs/reference.md.
What SKILL.md sets; muted values are Claude Code's defaults
haikulowOther plugins' skills for the same job
npx claudepluginhub moumine9/glab-skills --plugin glab-skills4 skills in this plugin
/authManage glab authentication — login, logout, or check status. Use when the user needs to authenticate with GitLab or when a previous command failed with an auth error./ciView, manage, and retry GitLab CI/CD pipelines and jobs using the glab CLI. Use when the user wants to check pipeline status, trace job logs, or trigger a pipeline./issueCreate, view, list, close, or comment on GitLab issues using the glab CLI. Use when the user wants to manage GitLab issues from the terminal.