glab
Skill2 starsChanged 8 months agoMITView on GitHub
Use this skill when the user asks to work with GitLab from the terminal, especially with `glab`: merge requests, issues, pipelines, releases, project metadata, or GitLab API calls. Prefer it when a local checkout is already connected to GitLab and `glab` is a better fit than manual browser work or raw `curl`. Do not use it for local-only Git operations that `git` handles.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- beeltec/skillstheir own version, first seen Jul 28, 2026
- gccli/skillstheir own version, first seen Jul 27, 2026
- jcsaaddupuy/badrobotstheir own version, first seen Feb 26, 2026
- henricook/claude-glab-skilltheir own version, first seen Nov 7, 2025
- rogue-dev-studio/ai-agents-roguetheir own version, first seen Jul 31, 2021
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- henricook/claude-glab-skill★ 74same name
- beeltec/skills★ 2same name
- rogue-dev-studio/ai-agents-rogue★ 2same name
- jcsaaddupuy/badrobots★ 1same name
- gccli/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use glab when the task is about GitLab state, not just local Git state.
- Very specific: line 13
Prefer the purpose-built subcommand (glab mr, glab issue, glab ci, ...) over glab api.
- Very specific: line 14
Verify flags before running anything non-obvious.
- Very specific: line 16
Keep commands non-interactive in automation: pass flags instead of accepting prompts, and prefer --output json where supported.
- Very specific: line 38
If the installed binary disagrees with the references, trust glab <command> --help and say so instead of improvising.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
glab CLI
Use glab when the task is about GitLab state, not just local Git state. Inside a Git worktree, glab infers host and project from remotes, so run commands from the target repository root when possible.
Workflow
- Confirm context only when it matters:
git remote -vfor repo targeting,glab auth statusfor access, host, or token scope questions. - Prefer the purpose-built subcommand (
glab mr,glab issue,glab ci, ...) overglab api. - Verify flags before running anything non-obvious. Check the references or
glab <command> --help. Do not invent flags. - Fall back to
glab apionly when no subcommand exposes the operation, fields, or pagination control you need. - Keep commands non-interactive in automation: pass flags instead of accepting prompts, and prefer
--output jsonwhere supported.
Command Surface
The CLI has ~45 top-level command groups and changes frequently. Before concluding something needs glab api or claiming a command does not exist, check references/docs-command-tree.md — the full command tree with per-command doc links.
Groups that are easy to miss because they are newer or rarely discussed: work-items, stack (stacked diffs), search, security, packages, container-registry, dependency-firewall, attestation, iteration, cluster, duo, mcp.
References
Generated from the GitLab CLI source docs (tag noted in each file). Load them when exact Usage lines or Options matter:
- references/usage/mr.md — merge requests
- references/usage/issue.md — issues
- references/usage/ci.md — pipelines, jobs, schedules, runners
- references/usage/release.md — releases
- references/usage/repo.md — repos/projects
- references/usage/core.md — auth, config,
glab api - references/usage/misc.md — everything else (labels, milestones, snippets, variables, work-items, stack, search, security, packages, ...)
These files are large (misc.md is ~3,700 lines). Instead of reading a whole file, grep for the command heading, e.g. rg -A 30 '^## .glab mr create.' references/usage/mr.md.
If the installed binary disagrees with the references, trust glab <command> --help and say so instead of improvising.
Non-Obvious Behavior
- Outside a repo (or targeting another project): pass
-R group/project. For self-hosted hosts,-R gitlab.example.com/group/projectorGITLAB_HOST=gitlab.example.com; authenticate per host withglab auth login --hostname <host>. - Non-interactive mode: set
NO_PROMPT=true(orglab config set no_prompt true) to fail fast instead of hanging on prompts in scripts and CI. glab apiresolves placeholders from the current repo context::fullpath,:id,:branch,:group,:namespace,:repo,:user,:username. Useful patterns:glab api projects/:fullpath/variables glab api issues --paginate --output ndjson # one JSON object per line, jq-friendly glab api graphql -f query='query { currentUser { username } }'- Machine-readable pipeline data:
glab ci get --output json(theci status/ci viewoutput is for humans).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

