glab

Manage GitLab merge requests via the glab CLI.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/jamesacarr/pi-agent-stuff --skill glab-jamesacarr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab
Source: https://github.com/jamesacarr/pi-agent-stuff/tree/main/skills/glab
Command: npx skills add https://github.com/jamesacarr/pi-agent-stuff --skill glab-jamesacarr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the management of GitLab Merge Requests (MRs), automating common tasks and ensuring consistency in your workflow.

Core Features & Use Cases

  • MR Creation: Create MRs with automatic squashing, source branch deletion, and template utilization.
  • MR Management: View, approve, merge, comment (top-level and inline), and update MRs efficiently.
  • Use Case: When you've finished a feature, use this Skill to create a new MR, automatically squashing your commits, deleting the feature branch, and applying a standard MR template for review.

Quick Start

Use the glab skill to create a new merge request for the current branch with the title "[PROJ-123] Implement user authentication".

Frequently Asked Questions about glab

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

FAQPage Schema
How do I automate GitLab merge request creation from the command line?

You can automate GitLab merge request creation by using the glab CLI to automatically squash commits, delete source branches, and apply MR templates. This ensures consistent development practices without manual repository configuration.

Do I need to install the glab CLI before managing GitLab MRs?

Yes, managing GitLab MRs requires the glab CLI to be installed and authenticated in your environment. The Skill relies on this command line interface to execute merge request operations and interact with your GitLab repositories.

Can I add inline comments to a GitLab merge request using a CLI?

Yes, you can add both top-level and inline comments to a GitLab merge request using the glab CLI. This allows you to provide specific code review feedback directly through the command line without accessing the web interface.

What is the best way to squash commits when merging a GitLab feature branch?

The best way to squash commits when merging a GitLab feature branch is to use the glab CLI during MR creation. It supports automated squashing and source branch deletion to maintain a clean project history and streamline code review.

How do I view and approve GitLab merge requests without leaving the terminal?

You can view and approve GitLab merge requests directly in the terminal by using the glab CLI. It provides commands to efficiently inspect MR details, approve changes, and merge branches while keeping your workflow uninterrupted.