From gitlab-skills
Show the diff for a GitLab merge request. Use when a user asks to inspect, review, or summarize the changes in an MR.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gitlab-skills:gitlab-mr-diffThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Show the unified diff for an existing GitLab merge request. The skill uses the
Show the unified diff for an existing GitLab merge request. The skill uses the
GitLab CLI when GITLAB_TOKEN is not set and the REST API when the token is
available.
42$ARGUMENTS contains the merge request IID.
Extract the merge request IID from $ARGUMENTS.
Check whether GITLAB_TOKEN is set.
Run:
glab mr diff {iid}
Display the unified diff output as returned.
Require these environment variables and fail clearly if any are missing:
GITLAB_HOSTGITLAB_TOKENDetermine the project path from git remote get-url origin, strip the host
prefix and .git suffix, then URL-encode / as %2F.
Fetch MR details:
GET {GITLAB_HOST}/api/v4/projects/{encoded_project_path}/merge_requests/{iid}
Headers: PRIVATE-TOKEN: {GITLAB_TOKEN}
Display a header with the title, author, branch mapping, and state.
Fetch MR changes:
GET {GITLAB_HOST}/api/v4/projects/{encoded_project_path}/merge_requests/{iid}/changes
Headers: PRIVATE-TOKEN: {GITLAB_TOKEN}
For each entry in changes, display:
old_path -> new_path for renamesAt the end, summarize:
+++ headers--- headersReturn a readable MR header, the per-file diffs, and the summary counts. On failure, include the HTTP status or CLI error output.
/gitlab-mr-diff 42
show the diff for MR 42
review merge request 105
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub rogerbriggen/ai_skills --plugin gitlab-skills