Skip to content

Command-line GitLab workflows for merge requests, issues, CI/CD pipelines, and repositories via glab.

CCM score
63 of 100
skills.sh installs
418
GitHub stars
143
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers merge request creation, review, and checkout, plus issue management and pipeline monitoring with glab ci status, glab ci trace, and glab ci retry
  • Includes a DiffNote workflow that anchors inline review comments to specific lines through glab api with a JSON body
  • Provides API pagination guidance, noting that per_page must be passed as a URL query parameter rather than a flag
  • Designed for developers who work with GitLab from the terminal, including self-hosted instances and scripted JSON output

Install

$ npx -y skills add nikiforovall/claude-code-rules --skill glab -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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"

Details

Repository
github.com/nikiforovall/claude-code-rules
Categories
Git & Releases, CLI & Terminal, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the glab skill do for Claude Code?

The glab skill guides Claude Code in using the official GitLab CLI to manage GitLab issues, merge requests, CI/CD pipelines and repositories from the terminal. It covers creating and reviewing merge requests, posting inline DiffNote comments, and monitoring or retrying pipelines.

How do I install the glab skill?

Run npx -y skills add nikiforovall/claude-code-rules --skill glab -y in your project. Once installed, the agent can run glab commands for GitLab operations from the command line.

Does the glab skill need anything set up before it works?

The skill expects the glab CLI to be installed, which you can check with glab --version. Most operations also need authentication, done through glab auth login or a GITLAB_TOKEN environment variable, with GITLAB_HOST set for self-hosted GitLab.

Which skills does glab sit alongside in the Git and Releases category?

The glab skill is in the Git and Releases category on Claude Marketplaces, alongside triage, git-guardrails-claude-code, setup-pre-commit, caveman-commit and pr. It is the skill to reach for when the work happens on GitLab rather than in local git alone.

Similar to Glab

More Git & Releases