gitlab-cli
npx machina-cli add skill GantisStorm/essentials-claude-code/gitlab-cli --openclawGitLab CLI helper skill for common glab operations. Requires glab CLI installed and authenticated.
Note: For creating/updating MR descriptions, use /mr-description-creator instead.
Actions
MR Operations
View MR status:
/gitlab-cli mr status
View MR in browser:
/gitlab-cli mr view --web
List MRs:
/gitlab-cli mr list
Merge MR:
/gitlab-cli mr merge
Issue Operations
List issues:
/gitlab-cli issue list
Create issue:
/gitlab-cli issue create
View issue:
/gitlab-cli issue view <number>
CI/CD Operations
View CI status:
/gitlab-cli ci status
View pipeline:
/gitlab-cli ci view
List jobs:
/gitlab-cli job list
Repository Operations
View repo:
/gitlab-cli repo view
Instructions
Step 1: Validate Environment
# Check glab is installed
glab --version
# Check glab is authenticated
glab auth status
If not installed, report: "Install glab CLI: https://gitlab.com/gitlab-org/cli" If not authenticated, report: "Run: glab auth login"
Step 2: Parse and Execute
Parse $ARGUMENTS and pass directly to glab:
glab $ARGUMENTS
Step 3: Report Result
Show glab output directly to user.
Examples
# View MR status
/gitlab-cli mr status
# View MR in browser
/gitlab-cli mr view --web
# List open MRs
/gitlab-cli mr list
# Merge current MR
/gitlab-cli mr merge
# List issues
/gitlab-cli issue list
# Create issue interactively
/gitlab-cli issue create
# View repo info
/gitlab-cli repo view
# View CI status
/gitlab-cli ci status
# View pipeline
/gitlab-cli ci view
# List jobs
/gitlab-cli job list
# API calls
/gitlab-cli api projects/:id/merge_requests
# Any glab command works
/gitlab-cli release list
/gitlab-cli label list
Error Handling
| Scenario | Action |
|---|---|
| glab not installed | "Install glab: https://gitlab.com/gitlab-org/cli" |
| Not authenticated | "Run: glab auth login" |
| glab command fails | Show glab error output |
Source
git clone https://github.com/GantisStorm/essentials-claude-code/blob/main/essentials/skills/gitlab-cli/SKILL.mdView on GitHub Overview
This skill wraps common glab commands to manage merge requests, issues, CI, and repository details from chat. It streamlines GitLab workflows by forwarding structured actions to the glab CLI after validating the environment. Note: For creating/updating MR descriptions, use /mr-description-creator.
How This Skill Works
Users issue commands like /gitlab-cli mr status. The skill first validates that glab is installed and authenticated, then parses the incoming arguments and forwards them directly to glab. The resulting glab output is shown to the user.
When to Use It
- Check the status of the current merge request
- Open a MR in the browser using --web
- List merge requests or issues to review
- View CI status, pipelines, or jobs
- View repository information
Quick Start
- Step 1: Validate Environment — Check glab is installed and authenticated
- Step 2: Parse and Execute — Pass arguments to glab: glab $ARGUMENTS
- Step 3: Report Result — Show glab output directly to the user
Best Practices
- Ensure glab is installed and the user is authenticated before running commands
- Pass specific, minimal arguments to glab to reduce noise
- Verify the glab output for errors and report them clearly
- Prefer interactive commands (e.g., issue create) only when appropriate
- Avoid exposing sensitive data in automated logs or chat transcripts
Example Use Cases
- View MR status with /gitlab-cli mr status
- Open MR in browser with /gitlab-cli mr view --web
- List issues with /gitlab-cli issue list
- View CI status with /gitlab-cli ci status
- View repository info with /gitlab-cli repo view