Agent skill

GitLab

by OpenHands in OpenHands/extensions

Interact with GitLab repositories, merge requests, and APIs using the GITLABTOKEN environment variable.

MITAuto-check passedDevOps & Cloud

Install GitLab

skills CLI
$ npx skills add OpenHands/extensions --skill gitlab -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install OpenHands/extensions gitlab --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/gitlab .claude/skills/gitlab && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gitlab
GitHub stars
157
Token cost
~629 tokens
SKILL.md length
336 words
Files
5
Skills in repo
78
Repo updated
First seen
Licence
MIT

At a glance

Interact with GitLab repositories, merge requests, and APIs using the GITLABTOKEN environment variable.

  • Working with code hosted on GitLab
  • Calls git; reaches gitlab.com; needs GITLAB_TOKEN
  • Managing GitLab resources

What it does

GitLab is an agent skill from OpenHands/extensions. Interact with GitLab repositories, merge requests, and APIs using the GITLABTOKEN environment variable. Use when working with code hosted on GitLab or managing GitLab resources.

Its SKILL.md is about 630 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files (for example `.plugin/plugin.json` and `README.md`).

It sits in DevOps & Cloud, covering Secrets management. It works with GitLab and Git. The repository describes itself as: Public registry for OpenHands extensions. The licence is MIT.

When your agent uses it

  • Working with code hosted on GitLab
  • Managing GitLab resources

Example prompts

  • “/gitlab”

Requirements

  • A credential in GITLAB_TOKEN

What it can do on your machine

Read from SKILL.md and the folder at commit d008b81. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • gitlab.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GITLAB_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

GitLab loads about 629 tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 336 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~629

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from OpenHands/extensions at commit d008b81, republished under its MIT licence (© OpenHands). 336 words, ~629 tokens.

Download SKILL.mdSave it as .claude/skills/gitlab/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
gitlab
description
Interact with GitLab repositories, merge requests, and APIs using the GITLAB_TOKEN environment variable. Use when working with code hosted on GitLab or managing GitLab resources.
triggers
gitlab

Connection selection

Use authenticated GitLab MCP tools first when they are available in the agent's environment. Detect this by tool availability, without depending on a particular MCP server name. Use the token and direct API instructions below only when GitLab MCP tools are unavailable or when raw API or curl access is explicitly needed.

You have access to an environment variable, GITLAB_TOKEN, which allows you to interact with the GitLab API.

<IMPORTANT>
You can use `curl` with the `GITLAB_TOKEN` to interact with GitLab's API.
ALWAYS use the GitLab API for operations instead of a web browser.
ALWAYS use the `create_mr` tool to open a merge request
</IMPORTANT>

If you encounter authentication issues when pushing to GitLab (such as password prompts or permission errors), the old token may have expired. In such case, update the remote URL to include the current token: git remote set-url origin https://oauth2:${GITLAB_TOKEN}@gitlab.com/username/repo.git

Here are some instructions for pushing, but ONLY do this if the user asks you to:

  • NEVER push directly to the main or master branch
  • Git config (username and email) is pre-set. Do not modify.
  • You may already be on a branch starting with openhands-workspace. Create a new branch with a better name before pushing.
  • Use the create_mr tool to create a merge request, if you haven't already
  • Once you've created your own branch or a merge request, continue to update it. Do NOT create a new one unless you are explicitly asked to. Update the PR title and description as necessary, but don't change the branch name.
  • Use the main branch as the base branch, unless the user requests otherwise
  • After opening or updating a merge request, send the user a short message with a link to the merge request.
  • Do all of the above in as few steps as possible. E.g. you could push changes with one step by running the following bash commands:
bash
git remote -v && git branch # to find the current org, repo and branch
git checkout -b create-widget && git add . && git commit -m "Create widget" && git push -u origin create-widget

On Windows PowerShell, use $env:GITLAB_TOKEN in remote URLs and run the git commands as separate commands if && is not supported by the installed shell.

© OpenHands, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files in skills/gitlab of OpenHands/extensions.

  • SKILL.md
  • .claude-plugin
  • .codex-plugin
  • .plugin/plugin.json
  • README.md

Open the folder on GitHubat commit d008b81

Compare with similar skills

GitLab next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

GitLab compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
GitLab this skillOpenHands/extensions157—~629Automated safety check: PassMIT
GitLab ExplorerWide-Moat/open-computer-use126—~891Automated safety check: PassCustom licence
Network Proxydidi/mpx3.9k—~464Automated safety check: PassApache-2.0
Private Secret Scanningjamditis/claude-skills-journalism416—~1.8kAutomated safety check: PassMIT
Deploy To Hostinghostinger/api-mcp-server159—~2.7kAutomated safety check: NotesMIT
GlabNikiforovAll/claude-code-rules1411 repos~2.2kAutomated safety check: PassApache-2.0

Similar skills

  • GitLab Explorer

    Wide-Moat/open-computer-use

    Explore GitLab repositories using glab CLI and git commands.

    126 GitHub stars~891 tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Helps when network-related commands (like curl, git, npm, pip, brew) are failing, timing out, or running slowly due to network issues.

    3.9k GitHub stars~464 tokensUpdated 8 days ago
    DevOps & CloudAuto-check passed
  • Private Secret Scanning

    jamditis/claude-skills-journalism

    Local Gitleaks scans for staged changes, push ranges, and full history in private repos, with redacted reports.

    416 GitHub stars~1.8k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Deploy To Hosting

    hostinger/api-mcp-server

    Deploy an existing project to a website on Hostinger web hosting (Shared, Cloud or Agency plans) and keep it deployed: picks the right deploy for static sites, Node.js apps (Next.js, Nuxt, Express…

    159 GitHub stars~2.7k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • Glab

    NikiforovAll/claude-code-rules

    Expert guidance for using the GitLab CLI (glab) to manage GitLab issues, merge requests, CI/CD pipelines, repositories, and other GitLab operations from the command line.

    141 GitHub starsUsed in 1 repo~2.2k tokens
    DevOps & CloudAuto-check passed
  • Official

    Author and review GitHub Actions workflow YAML safely so syntactically-valid YAML can't ship a workflow that GitHub Actions refuses to run.

    5.6k GitHub starsUsed in 1 repo~2.3k tokens
    DevOps & CloudAuto-check passed

More from OpenHands/extensions

All 78 skills in this repo
  • Agent Readiness Report

    OpenHands/extensions

    Evaluate how well a codebase supports autonomous AI-assisted development.

    157 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Discord

    OpenHands/extensions

    Build and automate Discord integrations (bots, webhooks, slash commands, and REST API workflows).

    157 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • GitHub

    OpenHands/extensions

    Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUBTOKEN environment variable and GitHub CLI.

    157 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • GitHub Issue To PR

    OpenHands/extensions

    Create an automation that implements GitHub issues when a configurable trigger label is applied.

    157 GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • GitHub Repo Monitor

    OpenHands/extensions

    This skill should be used when the user asks to "monitor a GitHub repository", "watch GitHub for issues or PRs", "respond to @OpenHands mentions on GitHub", "set up an OpenHands GitHub integration"…

    157 GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • GitLab Issue To Mr

    OpenHands/extensions

    Create an automation that implements GitLab issues when a configurable trigger label is applied.

    157 GitHub stars~4.9k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about GitLab

What does GitLab do?

Interact with GitLab repositories, merge requests, and APIs using the GITLABTOKEN environment variable. GitLab is an agent skill from OpenHands/extensions. Interact with GitLab repositories, merge requests, and APIs using the GITLABTOKEN environment variable.

When should I use GitLab?

GitLab fits situations like: working with code hosted on GitLab; managing GitLab resources.

How do I install GitLab in Claude Code?

Run `npx skills add OpenHands/extensions --skill gitlab -a claude-code`. Or copy the skill folder (skills/gitlab in OpenHands/extensions) into .claude/skills/gitlab in your project. Claude Code loads it when a task matches its description.

How do I install GitLab in Codex?

Run `npx skills add OpenHands/extensions --skill gitlab -a codex`. Or copy the skill folder (skills/gitlab in OpenHands/extensions) into .agents/skills/gitlab in your project. Codex loads it when a task matches its description.

Can I use GitLab in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenHands/extensions --skill gitlab -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gitlab, .gemini/skills/gitlab, .github/skills/gitlab and .opencode/skills/gitlab in your project.

What does GitLab need to run?

Going by SKILL.md and its folder, GitLab needs the command-line tools its instructions call (git) and credentials named GITLAB_TOKEN. Our summary lists: A credential in GITLAB_TOKEN.

Does GitLab access the network?

SKILL.md names 1 domain. In commands or code: gitlab.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is GitLab safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does GitLab use?

GitLab is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does GitLab use?

About 629 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to GitLab?

Skills that share tags, products or a category with GitLab: GitLab Explorer (Wide-Moat/open-computer-use, 126 stars), Network Proxy (didi/mpx, 3.9k stars), Private Secret Scanning (jamditis/claude-skills-journalism, 416 stars) and Deploy To Hosting (hostinger/api-mcp-server, 159 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains GitLab?

OpenHands (a GitHub organization) maintains it in OpenHands/extensions, which has 157 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on October 6, 2026.

Source: OpenHands/extensions on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.