A Claude Code Skill for Gitlab-CLI
npx skills add https://github.com/henricook/claude-glab-skill --skill glabInstale esta skill com a CLI e comece a usar o fluxo de trabalho SKILL.md em seu espaço de trabalho.
A comprehensive Claude Code skill that provides expert guidance for using the GitLab CLI (glab) to manage GitLab resources directly from the command line.
This skill enables Claude Code to effectively assist with GitLab workflows using the official glab CLI tool. It provides detailed knowledge about GitLab operations including merge requests, issues, CI/CD pipelines, repository management, and more.
This skill should be placed in your Claude Code skills directory:
# For project-specific installation
mkdir -p .claude/skills
git clone https://github.com/henricook/claude-glab-skill .claude/skills/glab
# For personal/global installation
mkdir -p ~/.claude/skills
git clone https://github.com/henricook/claude-glab-skill ~/.claude/skills/glab
After installation, your directory structure will be:
.claude/skills/glab/
├── SKILL.md # Core skill (~200 lines, loaded when skill invoked)
├── references/ # Detailed docs (loaded only as needed)
│ ├── commands-detailed.md # Comprehensive command reference
│ ├── quick-reference.md # Command cheat sheet
│ └── troubleshooting.md # Detailed error scenarios
├── README.md
├── CONTRIBUTING.md
├── CHANGELOG.md
└── LICENSE
Before using this skill, ensure glab is installed on your system:
macOS:
brew install glab
Linux:
# Debian/Ubuntu
sudo apt install glab
# Fedora/RHEL
sudo dnf install glab
# Arch Linux
sudo pacman -S glab
Windows:
# Using Chocolatey
choco install glab
# Using Scoop
scoop install glab
From source:
go install gitlab.com/gitlab-org/cli/cmd/glab@latest
For more installation options, visit: https://gitlab.com/gitlab-org/cli
Once installed, Claude Code will automatically detect when you need GitLab CLI assistance and can invoke this skill. You can also explicitly invoke it:
@claude using the glab skill, help me create a merge request
Or simply ask Claude Code to perform GitLab operations:
Can you list my open merge requests?
Create an issue for the bug we just found
Show me the status of the CI pipeline
This skill follows the progressive disclosure design principle for optimal performance:
The main skill file is concise and focused on:
Why it's concise: Loads quickly when invoked, providing immediate guidance without overwhelming context.
commands-detailed.md - Load when:
troubleshooting.md - Load when:
quick-reference.md - Load when:
The skill is configured with allowed-tools: Bash, Read, Grep, Glob to ensure Claude Code can:
Rather than memorizing commands, the skill teaches:
30+ glab commands documented across:
The skill helps Claude Code:
Full support for GitLab.com and self-hosted instances with environment variable configuration and multi-instance authentication.
After installation, Claude Code can help with tasks like:
Creating a merge request:
Create a merge request for my current branch with the title "Fix login bug" and assign it to reviewers alice and bob
Reviewing merge requests:
Show me all merge requests where I'm assigned as a reviewer
Managing CI/CD:
Watch the current pipeline and let me know if it passes
Working with issues:
Create a bug issue titled "API timeout" with high priority label
The skill automatically adapts to:
This skill is designed to be comprehensive and up-to-date. If you find commands or workflows that should be added, please contribute:
glab auth login)If Claude Code doesn't recognize the skill:
.claude/skills/glab/ or ~/.claude/skills/glab/If glab commands fail:
glab --versionglab auth status-R owner/repo flagThis skill is provided as a community resource for Claude Code users working with GitLab.
Version: 1.0.0
Last Updated: November 2025
Compatible with: glab v1.40.0+