gitlab:merge-request

gitlab:merge-request is a skill for Claude Code, Codex from bendrucker/claude. It costs 78 tokens per session (1,624 once invoked), scanned A, original, MIT.

Instructions for using the glab command-line program to manage GitLab merge requests, which are proposed code changes submitted for review. They cover creating, reviewing, updating, discussing, approving, blocking, and merging these requests.

In plain words
What is it for?
Use them to create or review GitLab merge requests, handle discussion threads and approvals, request reviewers, block or re-request work, and merge changes safely.
Why use it?
They provide the required procedures and defaults for common merge-request work, including draft requests, reviewers, auto-merge, merge trains, and review discussions.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the gitlab plugin — 3 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/bendrucker/claude/merge-request
Any agent
npx skills add bendrucker/claude --skill merge-request
Clone the repo
git clone --depth 1 https://github.com/bendrucker/claude

Made for: Claude Code, Codex.

Or install gitlab, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gitlab:merge-request

README.md
[![agentmods](https://agentmods.dev/badge/skills/bendrucker/claude/merge-request.svg)](https://agentmods.dev/skills/bendrucker/claude/merge-request)
Your own site
<a href="https://agentmods.dev/skills/bendrucker/claude/merge-request"><img src="https://agentmods.dev/badge/skills/bendrucker/claude/merge-request.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,624 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.01624
Opus 5 $0.00039 $0.00812
Sonnet 5 $0.00016 $0.00325
Haiku 4.5 $0.00008 $0.00162

Measured 2d ago against content hash e4bb70921e18, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

gitlab:merge-request scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/diff.test.ts, scripts/diff.ts, scripts/discussions.test.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/gitlab/skills/merge-request/SKILL.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Merge Requests

Working with GitLab merge requests via glab mr.

Scripts directory (absolute, for invocations from other skills where ${CLAUDE_SKILL_DIR} points elsewhere): !mkdir -p /tmp/claude/gitlab-skill 2>/dev/null; touch "/tmp/claude/gitlab-skill/${CLAUDE_SESSION_ID}" 2>/dev/null; echo "${CLAUDE_SKILL_DIR}/scripts"

Arguments

$0 (optional verb) routes to a section below. With no verb, infer the operation from the request.

  • create: open an MR. See Patterns. --draft opens it as a draft (glab mr create --draft).
  • merge: merge the MR. See Merging. --auto enables auto-merge (merge.ts --auto-merge).
  • review: review MRs. See Reviews. --role reviewer (default) fetches MRs awaiting your review; --role author triages threads on MRs you authored.
  • discussions: work MR discussion threads. See Discussions.
  • block: block an MR until another merges. See Blocking.

Flag defaults: --draft off, --auto off, --role reviewer.

Merging

Always use merge.ts to merge. It handles merge trains, auto-merge, and squash, falling back to glab mr merge internally when appropriate.

bun ${CLAUDE_PLUGIN_ROOT}/scripts/merge.ts
bun ${CLAUDE_PLUGIN_ROOT}/scripts/merge.ts --auto-merge
bun ${CLAUDE_PLUGIN_ROOT}/scripts/merge.ts feature-branch --auto-merge --squash

Never call glab mr merge directly. It turns auto-merge on by default whenever a pipeline is running. A bare invocation then queues the MR to merge itself later instead of merging it now, silently breaking a deliberate merge order. merge.ts always sends --auto-merge=<choice> so the default cannot apply.

Inspect Before Merging

--status prints the MR's merge readiness as JSON and exits without touching it: target branch, draft state, detailed_merge_status, head pipeline, and a rebased_on_target ancestry check computed from git rather than the API's stale conflict fields.

bun ${CLAUDE_PLUGIN_ROOT}/scripts/merge.ts --status
bun ${CLAUDE_PLUGIN_ROOT}/scripts/merge.ts feature-branch --status

Read the full file on GitHub · 122 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +2 lines e4bb70921e18
  2. 5d ago First seen · 120 lines · 78 tokens per session scan A 06020cbd0def

Subscribe to this mod's changes

gitlab:merge-request is a skill published in the GitHub repository bendrucker/claude (16 stars, last pushed today), licensed MIT. It adds 78 tokens to every session and 1,624 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

google-ads-audit

Google Ads account audit and business context setup. Run this first — it gathers business information, analyzes account health, and saves context that all other ads skills reuse. Trigger on "audit my ads", "ads audit", "set up my ads", "onboard", "account overview", "how's my account", "ads health check", "what should…

nowork-studio/notfair-plugin · 114 tokens

review

5-pass structured code review — correctness, security, performance, readability, consistency.

SethGammon/Citadel · 17 tokens

ops-pocket

OPS on-demand: This skill should be used when the user asks to "pocket memos", "voice memo pipeline"…

Lifecycle-Innovations-Limited/claude-ops · 29 tokens

alive:system-upgrade

Upgrade ALIVE to the current version. Handles v1/v2/v3.x source states, multi-surface aware (alive-mcp / Hermes / Codex), retroactive version detection, partial-failure resume, dry-run previews, and rollback inspection.

alivecontext/alive · 57 tokens

extract-resume

Parse a resume's uploaded PDF into structured JSON (basics, experience, projects, skills, education) and save it to the editor.

suxrobGM/jobpilot · 32 tokens