glab

Operates the GitLab CLI to manage merge requests, issues, CI pipelines, and API requests.

15|1|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/fprochazka/claude-code-plugins --skill glab-fprochazka
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: glab
Source: https://github.com/fprochazka/claude-code-plugins/tree/main/plugins/glab/skills/glab
Command: npx skills add https://github.com/fprochazka/claude-code-plugins --skill glab-fprochazka

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with GitLab from the terminal requires memorizing dozens of glab commands, flags, and API endpoints, and mistakes like dumping huge job logs into context or misidentifying merge requests waste time and tokens. ## Core Features & Use Cases - Merge Request Management: Create, view, update, and comment on MRs using IID numbers, branch names, or the current branch, with full flag references for assignees, reviewers, labels, and draft state. - CI/CD Pipeline Inspection: Check pipeline status, fetch job details as JSON, retry failed jobs, and safely redirect multi-thousand-line job logs to temp files instead of flooding the conversation. - Raw API Access: Run any GitLab API operation via glab api with auto-resolved endpoint placeholders, pagination, and typed parameters for discussions, threads, and resources without dedicated commands. - Use Case: You need to reply to a review thread on MR 123 and mark it resolved. The skill provides the exact glab api calls to post a note to the discussion and set resolved=true, including the HTML comment signature convention for automation-authored comments. ## Quick Start Ask the AI to show the pipeline status and unresolved discussion threads for the merge request on your current branch.

Frequently Asked Questions about glab

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a merge request with glab CLI?▼

Run glab mr create with flags like --fill to reuse commit info, --draft for draft state, -b for the target branch, and -a/--reviewer for assignees and reviewers. Add --yes to skip the confirmation prompt and --push to push the branch first.

How to reply to a GitLab MR discussion thread from the command line?▼

Use glab api with a POST to projects/:id/merge_requests/<iid>/discussions/<discussion_id>/notes passing -f body with your reply text. Listing discussions and resolving threads also require the API since glab mr note only adds top-level comments.

Does glab auto-detect the GitLab project?▼

Yes, glab resolves the project from the git remote in the current directory, including API endpoint placeholders like :id and :fullpath. Override it anytime with the -R or --repo flag using a group/project path.

Why should glab ci trace output be redirected to a file?▼

Job logs can be thousands of lines and dumping them into the conversation wastes context tokens. Redirect with glab ci trace <job-name> > /tmp/glab-job-<job-name>.log and read only the relevant portions.

How do I fetch all pages of a GitLab API result with glab?▼

Pass --paginate to glab api to fetch every page sequentially; without it you only get the first page. Combine with --output ndjson and jq for memory-efficient filtering of large result sets.