← Back to Skills Marketplace
wufei-png

glab-cli-skill

by Wu Fei · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
139
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install glab-cli-skill
Description
Guidance for using the GitLab CLI (`glab`) from the terminal for merge requests, issues, CI/CD pipelines and jobs, repository targeting and inspection, clone...
README (SKILL.md)

GitLab CLI (glab) Skill

Use glab when the user wants to operate on GitLab from the terminal. These instructions are verified against glab 1.90.0.

This hot path is intentionally narrow: merge requests, issues, CI/CD, repo targeting, repo view/clone/fork, and glab api. Broader project administration should only be documented through a dedicated reference file.

When to Use

Invoke this skill when the user needs to:

  • Create, review, update, merge, or inspect merge requests
  • Create, inspect, or update issues
  • Check, run, retry, cancel, or inspect CI/CD pipelines and jobs
  • Target a repository explicitly, or view, clone, or fork it
  • Work with self-hosted GitLab instances
  • Make direct GitLab REST or GraphQL API calls with glab api

Preflight

Run these checks before doing real work:

glab --version
glab auth status
git remote -v

If not inside a Git repository, do not guess context. Use one of these patterns instead:

glab mr list -R group/project
glab issue list -R group/project
glab repo view group/project
glab repo view https://gitlab.example.org/group/project.git

For self-hosted GitLab, set the host explicitly when needed:

glab auth login --hostname gitlab.example.org
GITLAB_HOST=gitlab.example.org glab repo view group/project
glab api --hostname gitlab.example.org projects/:id

Execution Policy

  • Prefer read-only commands first: list, view, status, trace.
  • Prefer structured output when the user wants filtering or automation:
    • --output json for mr, ci, and repo commands
    • -O json for issue list
    • --output ndjson for large glab api --paginate responses piped to jq
  • Before remote mutations, confirm the repository, target object, and branch. This matters for mr create, mr merge, mr close, issue close, ci run, ci retry, ci cancel, ci delete, and repo fork commands.
  • If glab auth status shows missing or invalid credentials, stop and ask the user to authenticate instead of retrying failing API calls.
  • Use glab \x3Ccommand> --help before guessing flags. CLI behavior changes across releases.
  • For glab api, pagination belongs in the endpoint query string. Example:
glab api "projects/:id/jobs?per_page=100" --paginate --output ndjson

Common Workflows

Merge Requests

glab mr list --reviewer=@me --output json
glab mr checkout 123
glab mr view 123 --comments
glab mr create -t "Add feature" -d "Implements X" --reviewer alice,bob -l feature
glab mr create --related-issue 123 --fill --yes
glab mr update 123 --ready
glab mr note 123 -m "Please add tests"
glab mr merge 123 --auto-merge

glab mr create --fill sets push to true. Confirm git status, the current branch, and the target remote before using --fill --yes.

Issues

glab issue list --assignee=@me -O json
glab issue view 456 --comments
glab issue create -t "Bug in login" -l bug -d "Steps to reproduce"
glab issue update 456 --label "bug,confirmed"
glab issue close 456

CI/CD

glab ci list -s failed -F json
glab ci status --live
glab pipeline ci view -b main
glab ci trace lint
glab ci run -b main --variables DEPLOY_ENV:staging
glab ci retry lint
glab ci cancel pipeline 123

References

Load only the smallest file that matches the task:

  • references/quick-reference.md for a short cheat sheet
  • references/auth.md for authentication, repo context, self-hosted hosts, and 401/403/404 errors
  • references/merge-requests.md for MR workflows, comments, merge strategies, and MR-specific failures
  • references/issues.md for issue creation, editing, linking, and issue-specific failures
  • references/ci.md for pipeline and job inspection, reruns, cancelation, variables, and CI failures
  • references/api.md for glab api, pagination, GraphQL, and automation patterns

Load a reference only when the task needs deeper flags, examples, or troubleshooting than this file provides.

Usage Guidance
This is an instruction-only help pack for the official glab CLI and appears coherent. Before using it, remember: the guidance includes commands that can mutate repositories (create/merge/close, push, run CI) — always confirm target repo/branch and credentials before running destructive commands. Treat any token files referenced (myaccesstoken.txt) as sensitive; don't paste secret tokens into untrusted UIs or store them in publicly readable files. If you need automatic execution, review the exact commands the agent will run and grant only the minimum token scopes required (api / write_repository as documented).
Capability Analysis
Type: OpenClaw Skill Name: glab-cli-skill Version: 1.0.0 The skill bundle provides legitimate and well-structured guidance for using the GitLab CLI (glab). It includes safety checks, emphasizes read-only operations, and provides clear instructions for common workflows like merge requests, issues, and CI/CD pipelines without any signs of malicious intent or data exfiltration.
Capability Assessment
Purpose & Capability
Name/description match the content: all files are usage guidance for glab (MRs, issues, CI, repo, and api). There are no unrelated binaries, credentials, or external services required beyond normal GitLab usage patterns.
Instruction Scope
SKILL.md and references only instruct glab and git commands, preflight checks, and safe patterns (confirm repo/branch before mutation). Examples that show reading a token from a file or using GITLAB_HOST are appropriate for authentication and self-hosted usage; there are no instructions to read arbitrary user files or exfiltrate data.
Install Mechanism
No install spec and no code files — instruction-only skill. Nothing is downloaded or written to disk by the skill itself.
Credentials
The skill does not declare required env vars or credentials. It sensibly references common runtime variables (GITLAB_HOST) and token usage patterns (glab auth --stdin / --token) which are appropriate and expected for a GitLab CLI guide.
Persistence & Privilege
always is false, the skill is user-invocable and does not request persistent system presence or modification of other skills or system-wide configs.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install glab-cli-skill
  3. After installation, invoke the skill by name or use /glab-cli-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of glab-cli skill. - Added comprehensive guidance for using the GitLab CLI (`glab`) to manage merge requests, issues, CI/CD, repository targeting, authentication, and API calls. - Introduced a more focused execution policy and preflight checks. - Expanded support for self-hosted GitLab instances. - Modularized documentation through reference files for quick lookup and deep-dive use cases. - Replaced and enhanced SKILL.md to match new skill scope and usage style.
Metadata
Slug glab-cli-skill
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is glab-cli-skill?

Guidance for using the GitLab CLI (`glab`) from the terminal for merge requests, issues, CI/CD pipelines and jobs, repository targeting and inspection, clone... It is an AI Agent Skill for Claude Code / OpenClaw, with 139 downloads so far.

How do I install glab-cli-skill?

Run "/install glab-cli-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is glab-cli-skill free?

Yes, glab-cli-skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does glab-cli-skill support?

glab-cli-skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created glab-cli-skill?

It is built and maintained by Wu Fei (@wufei-png); the current version is v1.0.0.

💬 Comments