gitlab-issue-to-mr

gitlab-issue-to-mr is a skill for Claude Code, Codex from OpenHands/extensions. It costs 62 tokens per session (5,573 once invoked), scanned A, original, MIT.

An automation that watches GitLab issues for a chosen label and asks a coding agent to implement them. It then creates a branch, commits and pushes the changes, and opens a GitLab merge request, which is a request to review and merge code.

In plain words
What is it for?
Use it to process labeled issues across one or more GitLab projects on a schedule and produce merge requests from the agent's code.
Why use it?
It removes the repeated handoff from a labeled issue to a checked-out branch and merge request while keeping issue-event tracking and access to secrets controlled.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to process labeled issues across one or more GitLab projects on a schedule and produce merge requests from the agent's code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openhands/extensions/gitlab-issue-to-mr
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.

Any agent
npx skills add OpenHands/extensions --skill gitlab-issue-to-mr
Clone the repo
git clone --depth 1 https://github.com/OpenHands/extensions

Made for: Claude Code, Codex.

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-issue-to-mr

README.md
[![agentmods](https://agentmods.dev/badge/skills/openhands/extensions/gitlab-issue-to-mr/github.svg)](https://agentmods.dev/skills/openhands/extensions/gitlab-issue-to-mr)
Your own site
<a href="https://agentmods.dev/skills/openhands/extensions/gitlab-issue-to-mr"><img src="https://agentmods.dev/badge/skills/openhands/extensions/gitlab-issue-to-mr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gitlab-issue-to-mr

Your own site · 80×15
<a href="https://agentmods.dev/skills/openhands/extensions/gitlab-issue-to-mr"><img src="https://agentmods.dev/badge/skills/openhands/extensions/gitlab-issue-to-mr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,573 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00062 $0.05573
Opus 5.5 $0.00025 $0.02229
Sonnet 5.5 $0.00012 $0.01115
Haiku 4.5 $0.00006 $0.00557

Measured 12d ago against content hash a2321cb77205, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gitlab-issue-to-mr scanned grade A with 1 finding 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/main.py), 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

so a connected GitLab server gives the agent typed tools rather than curl. What
skills/gitlab-issue-to-mr/SKILL.md · 458 lines

How it starts

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

GitLab Issue to MR Automation

Create an automation that scans one or more GitLab projects on a schedule or handles one issue from a signed webhook event. It watches for a trigger label, starts an OpenHands conversation once per label event with the project's default branch already checked out, and opens a merge request with the agent's work. The catalog event option needs a GitLab 19.0+ signing token and a pre-registered custom webhook source (event_key_expr: object_kind, signature_header: webhook-signature, signature_scheme: standard_webhooks, event_id_header: webhook-id). Ask the user to configure Issue events and register the source, following README.md; never register a webhook on their behalf or ask for a token in chat. If the endpoint is not publicly reachable or GitLab lacks signing tokens, use a schedule.

The automation script is deterministic: issue discovery, label-event tracking, state persistence, the clone, the branch, the commit, the push, the merge request, the issue comments, and the clone's removal are all handled in Python. The LLM is invoked only to write the code.

The agent is told which issue to implement, not what it says. It fetches the description, the discussion, and whatever they link to itself, so nothing in the prompt goes stale between dispatch and the moment the agent reads it.

That needs read access, so the conversation is handed one secret, GITLAB_TOKEN. AGENT_SECRET_NAMES stays an allow-list: the rest of the deployment's secret store is not reachable from a conversation whose instructions came from an issue. On OpenHands Cloud and Enterprise the conversation runs with the user's own settings instead: the connected GitLab integration's token, or the tools of the connected GitLab MCP server.

The deployment's MCP servers are forwarded whole, matching github-pr-reviewer, so a connected GitLab server gives the agent typed tools rather than curl. What those servers reach is reachable from an issue-authored prompt, so connect only servers that may be driven by untrusted text.

The agent also finishes the job: it commits, pushes its branch, and opens the merge request, so the merge request appears when the agent stops rather than on the next poll. The script does not trust that it happened - when the conversation ends it asks GitLab whether the merge request exists, and opens it itself when it does not. origin still carries no credential, so every GitLab command the agent runs has to name GITLAB_TOKEN; the SDK only puts a secret in the environment of a command that mentions it, and masks it in the output.


Read the full file on GitHub · 458 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago Changed · +379 lines · +3 tokens per session a2321cb77205
  2. 1mo ago Changed · -371 lines 182b19b0d6e4
  3. 1mo ago Changed · +34 lines 6cdfedbe9043
  4. 1mo ago Changed · +7 lines 839fa39a0b8b
  5. 2mo ago First seen · 409 lines · 59 tokens per session scan A 95b4390e73cc

Subscribe to this mod's changes

gitlab-issue-to-mr is a skill published in the GitHub repository OpenHands/extensions (189 stars, last pushed today), licensed MIT. It adds 62 tokens to every session and 5,573 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.

Related

gitlab-issue-to-mr compared with skills from other repositories

gitlab-issue-to-mr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gitlab-issue-to-mrOpenHands/extensionsSkill189todayMITA62Claude Code, Codex
github-pr-workflowAmineDjeghri/personal-os-setupSkill687todayMITA43Claude Code, Codex
devops-pipelineluongnv89/skillsSkill1494d agoMITA63Claude Code
commitjuliusz-cwiakalski/agentic-delivery-osSkill47todayMITA8Claude Code
check-fixjuliusz-cwiakalski/agentic-delivery-osSkill47todayMITA27Claude Code
dependabot-consolidatorvinnie357/claude-skillsSkill301mo agoMITA85Claude Code
shared-tooling-git-hooksagents-inc/skillsSkill281mo agoMITA41Claude Code, Codex