gitlab-copilot
Installation
SKILL.md
GitLab Skill (Copilot CLI)
Use the glab CLI to interact with GitLab. Supports six MR workflows (Create → Read → Review → Fix → CI Fix → Feedback) plus general glab operations.
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
Determine the user's intent before selecting a workflow. There are six distinct workflows — Create creates a new MR from the current branch, Read is the lightest (just summarize), Review runs full specialist agents, Fix reviews then implements, CI Fix targets pipeline failures, and Feedback addresses reviewer comments. Default to Read when the user provides a MR URL with no strong signal indicating they want more.