gitlab
Installation
SKILL.md
GitLab Skill
Use the glab CLI to interact with GitLab. The primary workflow is MR Review — but this skill handles any GitLab operation the user needs.
URL Parsing
When given a GitLab MR URL like https://gitlab.com/group/subgroup/project/-/merge_requests/42:
- repo_ref: strip
https://and everything from/-/onward →gitlab.com/group/subgroup/project - mr_id: extract the number after
merge_requests/→42
These two values power most glab commands: glab mr <cmd> <mr_id> --repo <repo_ref>
Intent Detection
When given a GitLab MR URL, determine the user's intent before selecting a workflow: