glab
Installation
SKILL.md
glab — GitLab CLI
Use glab to operate GitLab from the terminal. All commands assume glab is authenticated; verify with glab auth status before making changes.
Critical Rules for Agents
- Confirm repository context before mutating. Use
glab repo view -F jsonor pass-R GROUP/PROJECTwhen there is any ambiguity. - Never use interactive mode. Always pass
--yes/-yto skip prompts and--no-editorwhere available. - Prefer JSON output. Use
-F jsonor--output jsonfor parseable data. Fall back to text only for human display. - Repo context. When inside a git repo linked to GitLab, glab auto-detects the project. Use
-R OWNER/REPOor-R GROUP/NAMESPACE/REPOto target a different project. - Never expose tokens. Do not log, print, or embed tokens in commands. Use
glab auth statusto check auth, neverglab config get token. - Avoid TUI/browser commands.
glab ci viewlaunches a TUI and--webopens a browser. Use JSON/list/view commands instead. - Never invent flags. If the skill or reference file doesn't show a flag, verify with
--helpbefore using it. - Never pass multi-line strings inline. Write markdown or JSON content to
/tmp/file.mdfirst, then reference it.
Agent Safety — Verified Flags
These flags are confirmed via --help. Do not assume other flags exist.