Skip to main content

GitLab CLI

Path: .cursor/skills/glab-cli/SKILL.md

Category: DevOps

Triggers: merge requests, MRs, CI pipelines, releases, GitLab operations

What It Does

Teaches the agent to use the glab CLI for GitLab operations: creating merge requests, reviewing code, managing issues, checking pipeline runs, and managing releases. Covers Conventional Commits formatting and branch/MR naming conventions.

Key Commands

CommandPurpose
glab mr createCreate a merge request
glab mr listList open merge requests
glab mr view <id>View MR details
glab ci statusCheck current pipeline status
glab ci viewView CI pipeline details
glab issue createCreate a new issue
glab issue listList open issues
glab release createCreate a new release

Conventions

Branch Naming

Branches follow the pattern: <type>/<ticket-id>-<description>

Examples: feat/FAST-123-add-coverage-field, fix/FAST-456-bind-timeout

Commit Messages

Conventional Commits format: <type>(<scope>): <description>

Types: feat, fix, refactor, docs, test, chore, ci

MR Titles

Match the commit message format for squash-merge consistency.