Skip to content
Back to skills

Gitlab

ASecurity

GitLab operations via glab CLI. Use when user mentions: MR, merge request, gitlab issue, pipeline, CI status, glab, or when git remote shows gitlab.com or self-hosted GitLab.

  • 470 stars
  • 0 votes
  • 6 copies
  • 85 views
  • Added February 7, 2026
devopsbashgitci/cd

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add aiskillstore/marketplace --skill gitlab --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gitlab?

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

Security grade badge for Gitlab
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aiskillstore-gitlab/badge)](https://www.skillsdirectory.com/skills/aiskillstore-gitlab)

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: gitlab
description: "GitLab operations via glab CLI. Use when user mentions: MR, merge request, gitlab issue, pipeline, CI status, glab, or when git remote shows gitlab.com or self-hosted GitLab."
---

# GitLab CLI (glab)

## When to Use This Skill

Use `glab` for GitLab repositories. To detect GitLab:
```bash
git remote -v | grep -i gitlab
```

If the remote contains `gitlab.com` or a known GitLab instance, use this skill.

## Before Any Operation

Always verify authentication first:
```bash
glab auth status
```

If not authenticated, guide the user to run `glab auth login`.

## Behavioral Guidelines

1. **Creating MRs**: Always check for uncommitted changes first with `git status`
2. **Viewing MRs/Issues**: Prefer `--comments` flag when user wants full context
3. **CI Operations**: Check `glab ci status` before suggesting `glab ci run`
4. **Use `--web`**: When the user might benefit from the browser UI

## Command Reference

### Merge Requests
| Action | Command |
|--------|---------|
| Create | `glab mr create --title "Title" --description "Desc"` |
| Create draft | `glab mr create --draft --title "Title"` |
| List | `glab mr list` |
| View | `glab mr view <id>` |
| View with comments | `glab mr view <id> --comments` |
| Checkout | `glab mr checkout <id>` |
| Merge | `glab mr merge <id>` |
| Approve | `glab mr approve <id>` |

### Issues
| Action | Command |
|--------|---------|
| Create | `glab issue create --title "Title" --description "Desc"` |
| List | `glab issue list` |
| List mine | `glab issue list --assignee=@me` |
| View | `glab issue view <id>` |
| Close | `glab issue close <id>` |
| Comment | `glab issue note <id> --message "Comment"` |

### CI/CD Pipelines
| Action | Command |
|--------|---------|
| Status | `glab ci status` |
| List | `glab ci list` |
| View logs | `glab ci trace` |
| Run new | `glab ci run` |
| Retry failed | `glab ci retry` |

### Repository
| Action | Command |
|--------|---------|
| View info | `glab repo view` |
| Clone | `glab repo clone <repo>` |
| Open in browser | `glab repo view --web`|

Files in this skill

  • SKILL.md2 KB
  • skill-report.json11.8 KB

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.