gitlab-cli
Skill8 starsChanged 6 months agoMITView on GitHub
Use glab for GitLab merge requests, CI/CD, variables, issues, and raw API calls on gitlab.com or any self-hosted GitLab instance. Includes macOS/Windows install and auth walkthrough. Triggers on glab, GitLab CLI, GitLab MR, pipeline status, install/setup glab, or GitLab-specific repo operations.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- abdullahkhawer/devops-skillstheir own version, first seen May 7, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- abdullahkhawer/devops-skills★ 8same 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.
In this repository129 other files it gives its agents.
- AGENTS.mdAGENTS.md
- guidance/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- guidance/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- blast-radius-checkSkill
- brainstormingSkill
- branch-flow-gateSkill
- branch-sync-gateSkill
- codebase-reconSkill
- codeowners-drift-auditSkill
- code-review-batterySkill
- cognitive-complexity-refactoringSkill
- debateSkill
- debug-conductorSkill
- dispatching-parallel-agentsSkill
- domain-buildSkill
- evidence-adjudicatorSkill
- executing-plansSkill
- external-cli-auditSkill
- feature-developmentSkill
- field-rename-verificationSkill
- finishing-a-development-branchSkill
- git-branch-conventionsSkill
- hotfix-charterSkill
- implementation-trackerSkill
- incident-revert-reviewSkill
- infra-config-investigatorSkill
- investigation-stateSkill
- kernel-splitSkill
- llm-behavior-investigatorSkill
- llm-skill-reviewSkill
- merge-authorization-gateSkill
- micro-harsh-reviewSkill
- output-verificationSkill
- pre-commit-gateSkill
- progressive-code-review-gateSkill
- progressive-harsh-reviewSkill
- providing-code-reviewSkill
- pr-triage-gateSkill
- push-authorization-gateSkill
- receiving-code-reviewSkill
- reproduction-experiment-investigatorSkill
- requesting-code-reviewSkill
- requirements-validation-pmSkill
- requirements-validationSkill
- scope-tripwireSkill
- session-handoffSkill
- skills-hierarchy-tuningSkill
- sp-bughuntSkill
- state-consistency-investigatorSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- timeline-trace-investigatorSkill
- token-estimationSkill
- unified-commit-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 60
When glab is missing or auth fails, walk the user through these steps in order.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitLab CLI (glab)
Announce at start: "I'm using the gitlab-cli skill for GitLab / glab operations."
Do not use for: GitHub (gh), Azure DevOps, or Bitbucket workflows.
Agent setup walkthrough
When glab is missing or auth fails, walk the user through these steps in order. Ask which OS they use (macOS vs Windows) before giving install commands. Run checks yourself when you have shell access (with network enabled).
| Step | Check / action | Success signal |
| 1 | glab version | Prints a version (e.g. glab 1.x.x) |
| 2 | Install glab if step 1 fails | See Install glab for their OS |
| 3 | git --version | Git installed (needed for clone context and glab auth login remote detection) |
| 4 | Ask GitLab hostname | gitlab.com or their self-hosted host (no https://) |
| 5 | glab config set host <hostname> --global | Only if not gitlab.com or host not already set |
| 6 | Create PAT or OAuth | See Authenticate |
| 7 | glab auth status (add --hostname <host> if self-managed) | Shows logged in as their user |
| 8 | cd into a GitLab clone; glab repo view | Resolves project from origin |
| 9 | Smoke test: glab mr list or glab api user | API works end-to-end |
For install, auth, MR, CI, variables, issues, API, and repo command reference, see reference.md.
Failure Modes
| Failure | Fix |
403 after valid glab auth status | SAML SSO: authorize the PAT at https://<host>/-/user_settings/personal_access_tokens then retry |
| SSL/TLS error on self-hosted instance | Install internal CA cert, or use GITLAB_SSL_VERIFY=false for dev only |
glab variable set overwrites a live secret | Always glab variable get <key> first; set has no confirmation prompt |
| API returns partial results from large org | Add --paginate to glab api calls; default per_page=20 silently truncates |
glab ci trace hangs on long-running job | Use Ctrl-C to interrupt; trace resumes from the current position on next run |
CI_JOB_TOKEN in GitLab CI pipeline returns 403 | CI_JOB_TOKEN has restricted scope — cannot manage variables or most project API endpoints; use a PAT stored as a masked CI variable instead |
| Project access token vs. PAT confusion | Project access tokens are scoped to one project, created under Settings > Access Tokens (not user settings); PATs work across projects. glab auth login supports both, but project access tokens cannot be used for user-level API calls like glab api user. |
Reference
- Upstream docs: https://gitlab.com/gitlab-org/cli
- Per-command help:
glab <command> --help - Releases: https://gitlab.com/gitlab-org/cli/-/releases
Version notice: This reference was verified against glab 1.105.0. Flags such as
--device(auth),--use-keyring, and pipeline input flags (-i) were added in recent releases. On older glab versions, runglab <command> --helpto confirm flag availability before use.glab versionshows your installed version.
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.

