Skip to content
Back to skills

Glab Cli

ASecurity

GitLab CLI (glab) utilities - pipeline debugging, MR management, release automation. Use when working with GitLab via CLI for anything beyond basic git commands.

  • 57 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
toolspythonbashdebugginggitapici/cddocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill glab-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Glab Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Glab Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-glab-cli/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-glab-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: glab-cli
description: GitLab CLI (glab) utilities - pipeline debugging, MR management, release automation. Use when working with GitLab via CLI for anything beyond basic git commands.
---

# GitLab CLI Power Utilities

Intelligent wrappers and patterns for GitLab CLI operations.

## When to Use

- Debugging failed GitLab CI/CD pipelines
- Managing merge requests across projects
- Automating releases
- Bulk operations on issues/MRs
- Project health checks

## Prerequisites

```bash
# macOS
brew install glab

# Or download from https://gitlab.com/gitlab-org/cli

# Authenticate
glab auth login
```

## Core Capabilities

### 1. Pipeline Debugging

Get actionable errors from failed pipelines.

```bash
# Diagnose most recent failure
python3 scripts/glab_ops.py diagnose

# Specific project
python3 scripts/glab_ops.py diagnose --project group/project

# With suggested fixes
python3 scripts/glab_ops.py diagnose --suggest-fixes
```

**Output:** Job failures, error excerpts, timing info.

### 2. MR Operations

Merge request management at scale.

```bash
# List MRs needing review
python3 scripts/glab_ops.py mr-review-queue

# MRs ready to merge (approved + passing)
python3 scripts/glab_ops.py mr-merge-ready --dry-run

# MR health check
python3 scripts/glab_ops.py mr-status 123
```

### 3. Release Automation

Create releases with changelogs.

```bash
# Preview release
python3 scripts/glab_ops.py release --dry-run

# Create minor release
python3 scripts/glab_ops.py release --bump minor

# With custom notes
python3 scripts/glab_ops.py release --notes "Breaking: API v2"
```

## Quick Patterns

```bash
# Watch pipeline
glab ci view --live

# Retry failed jobs
glab ci retry

# View job logs
glab ci trace <job-id>

# Create MR from current branch
glab mr create --fill

# Checkout MR locally
glab mr checkout 123

# View MR changes
glab mr diff 123

# Approve MR
glab mr approve 123

# Merge MR
glab mr merge 123 --squash --remove-source-branch
```

## glab vs gh Quick Reference

| Task | GitHub (gh) | GitLab (glab) |
|------|-------------|---------------|
| Create PR/MR | `gh pr create` | `glab mr create` |
| List CI runs | `gh run list` | `glab ci list` |
| View CI logs | `gh run view --log` | `glab ci trace` |
| Watch CI | `gh run watch` | `glab ci view --live` |
| Retry CI | `gh run rerun --failed` | `glab ci retry` |
| Checkout PR/MR | `gh pr checkout 123` | `glab mr checkout 123` |

## Integration

Works with:
- **wicked-search**: Find code, create issues via glab
- **wicked-kanban**: Track MR status alongside tasks

## References

- `refs/glab-ops.md` - Full script documentation
- `refs/patterns.md` - Common workflow patterns
- `refs/ci-debugging.md` - Pipeline troubleshooting

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.