From gitlab-skills
Add the current user as a reviewer on a GitLab merge request. Use when a user asks to assign themselves to an MR review.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gitlab-skills:gitlab-mr-assign-reviewerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Add the current user as a reviewer on a GitLab merge request without removing
Add the current user as a reviewer on a GitLab merge request without removing
existing reviewers. The skill uses the GitLab CLI when GITLAB_TOKEN is not
set and the REST API when the token is available.
$ARGUMENTS contains the merge request IID.
Extract the merge request IID from $ARGUMENTS.
Check whether GITLAB_TOKEN is set.
Run:
glab mr update {iid} --reviewer @me
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 the current user:
GET {GITLAB_HOST}/api/v4/user
Headers: PRIVATE-TOKEN: {GITLAB_TOKEN}
Extract the user id and username.
Fetch the merge request:
GET {GITLAB_HOST}/api/v4/projects/{encoded_project_path}/merge_requests/{iid}
Headers: PRIVATE-TOKEN: {GITLAB_TOKEN}
Extract the current reviewers. If the authenticated user is already a reviewer, stop and report that no change is needed.
Otherwise, append the user ID to the existing reviewer IDs and update the merge request:
PUT {GITLAB_HOST}/api/v4/projects/{encoded_project_path}/merge_requests/{iid}
Headers: PRIVATE-TOKEN: {GITLAB_TOKEN}
Content-Type: application/json
Body: {"reviewer_ids": [{id1}, {id2}, ...]}
Return a short confirmation such as Successfully added @username as reviewer on MR !42. On failure, include the HTTP status or CLI error output.
/gitlab-mr-assign-reviewer 42
add me as reviewer on MR 42
assign myself to merge request 105
npx claudepluginhub rogerbriggen/ai_skills --plugin gitlab-skillsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.