glab

glab is a skill for Claude Code from henricook/claude-glab-skill. It costs 59 tokens per session (1,484 once invoked), scanned A, a copy of glab, MIT.

Command-line guidance for GitLab, a service for hosting code and managing software projects. It covers the official glab tool used from a terminal.

In plain words
What is it for?
Creating and reviewing merge requests, managing issues and repositories, and monitoring or starting CI/CD pipelines, which automate building and testing code.
Why use it?
It helps developers handle GitLab work without switching between web pages or guessing command syntax.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Creating and reviewing merge requests, managing issues and repositories, and monitoring or starting CI/CD pipelines, which automate building and testing code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/henricook/claude-glab-skill/claude-glab-skill
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 henricook/claude-glab-skill --skill claude-glab-skill
Clone the repo
git clone --depth 1 https://github.com/henricook/claude-glab-skill

Made for: Claude Code.

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 glab

README.md
[![agentmods](https://agentmods.dev/badge/skills/henricook/claude-glab-skill/claude-glab-skill/github.svg)](https://agentmods.dev/skills/henricook/claude-glab-skill/claude-glab-skill)
Your own site
<a href="https://agentmods.dev/skills/henricook/claude-glab-skill/claude-glab-skill"><img src="https://agentmods.dev/badge/skills/henricook/claude-glab-skill/claude-glab-skill/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 glab

Your own site · 80×15
<a href="https://agentmods.dev/skills/henricook/claude-glab-skill/claude-glab-skill"><img src="https://agentmods.dev/badge/skills/henricook/claude-glab-skill/claude-glab-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,484 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod 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.00059 $0.01484
Opus 5 $0.00030 $0.00742
Sonnet 5 $0.00012 $0.00297
Haiku 4.5 $0.00006 $0.00148

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

Security

Grade A, and why

glab 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 12d ago.

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.

Origin

This is a copy

88% identical to glab — 65 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

SKILL.md · 223 lines

How it starts

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

GitLab CLI (glab) Skill

Provides guidance for using glab, the official GitLab CLI, to perform GitLab operations from the terminal.

When to Use This Skill

Invoke when the user needs to:

  • Create, review, or manage merge requests
  • Work with GitLab issues
  • Monitor or trigger CI/CD pipelines
  • Clone or manage repositories
  • Perform any GitLab operation from the command line

Prerequisites

Verify glab installation before executing commands:

glab --version

If not installed, inform the user and provide platform-specific installation guidance.

Authentication Quick Start

Most glab operations require authentication:

# Interactive authentication
glab auth login

# Check authentication status
glab auth status

# For self-hosted GitLab
glab auth login --hostname gitlab.example.org

# Using environment variables
export GITLAB_TOKEN=your-token
export GITLAB_HOST=gitlab.example.org  # for self-hosted

Core Workflows

Creating a Merge Request

# 1. Ensure branch is pushed
git push -u origin feature-branch

# 2. Create MR
glab mr create --title "Add feature" --description "Implements X"

# With reviewers and labels
glab mr create --title "Fix bug" --reviewer=alice,bob --label="bug,urgent"

Reviewing Merge Requests

# 1. List MRs awaiting your review
glab mr list --reviewer=@me

# 2. Checkout MR locally to test
glab mr checkout <mr-number>

# 3. After testing, approve
glab mr approve <mr-number>

# 4. Add review comments
glab mr note <mr-number> -m "Please update tests"

Managing Issues

# Create issue with labels
glab issue create --title "Bug in login" --label=bug

# Link MR to issue
glab mr create --title "Fix login" --description "Closes #<issue-number>"

# List your assigned issues
glab issue list --assignee=@me

Monitoring CI/CD

# Watch pipeline in progress
glab pipeline ci view

# Check pipeline status
glab ci status

# View logs if failed
glab ci trace

# Retry failed pipeline
glab ci retry

# Lint CI config before pushing
glab ci lint

Read the full file on GitHub · 223 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. 12d ago First seen · 223 lines · 59 tokens per session scan A c90303a3147d

Subscribe to this mod's changes

glab is a skill published in the GitHub repository henricook/claude-glab-skill (74 stars, last pushed 10mo ago), licensed MIT. It adds 59 tokens to every session and 1,484 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to glab, differing in 65 lines, and is treated as a copy.