bcmyguest/personal-skills/assign-mr-reviewers

Claude Code and agent skill by bcmyguest/personal-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Assign reviewers to the user's active GitLab merge requests based on CODEOWNERS. Use this skill whenever the user wants to assign reviewers, add code owners, or get approvals on their MRs/merge requests. Also trigger when the user mentions "who should review", "need reviewers", "assign owners", or anything about getting their MRs reviewed.

Install

npx vskill@latest install bcmyguest/personal-skills/assign-mr-reviewers

SKILL.md

The same SKILL.md was published earlier as bcmyguest/personal-skills/assign-mr-reviewers.

Assign MR Reviewers

Assign code owner reviewers to the user's open GitLab merge requests using glab and the bundled script.

The script is at scripts/assign_mr_reviewers.py inside this skill's directory — resolve it relative to this SKILL.md (e.g. ~/.claude/skills/assign-mr-reviewers/scripts/… in Claude Code; other agents install skills elsewhere). $SKILL below means that directory.

Important: How to run the script

The script must be run as a standalone Bash command with no piping, chaining, or redirection. This is required for auto-approve permissions to work.

  • Run: python3 $SKILL/scripts/assign_mr_reviewers.py <args>
  • Do NOT: python3 $SKILL/scripts/assign_mr_reviewers.py <args> | jq .

The script outputs JSON to stdout. Read and parse the output directly from the Bash tool result.

Workflow

Step 1: Identify the target MR(s)

If the user provides a specific MR URL or IID, use that. Otherwise, list open MRs:

bash
glab mr list --author=@me

If no open MRs, tell the user and stop.

Step 2: Run the script
bash
python3 $SKILL/scripts/assign_mr_reviewers.py <MR_URL>

or:

bash
python3 $SKILL/scripts/assign_mr_reviewers.py <PROJECT_PATH> <MR_IID>

With exclusions (e.g. people who are away):

bash
python3 $SKILL/scripts/assign_mr_reviewers.py <MR_URL> --exclude nhughes,bsmith

The script does everything in one step:

  1. Fetches MR details (author, reviewers, changed files, required approvals)
  2. Checks CODEOWNERS, falls back to team-spectra group members
  3. Picks reviewers (excluding author, existing reviewers, and any --exclude users)
  4. Assigns them via glab mr update

It outputs JSON with: status, project_path, mr_iid, title, author, existing_reviewers, required_approvals, assigned, source, remaining_candidates.

If status is already_has_reviewers, the MR already has enough reviewers — tell the user and stop (unless they asked to reassign). If status is no_eligible_candidates, reviewers are needed but everyone was excluded (author, existing reviewers, --exclude) — tell the user who was ruled out and why.

Step 3: Report

Show a summary:

MR !421 (fix: lodash fixes) → added reviewer: @rtseng (team-spectra fallback)

Indicate whether reviewers came from CODEOWNERS or the team-spectra fallback.

Edge cases

  • MR already has enough reviewers: Skip and mention in summary, unless user asks to reassign.
  • Not enough eligible members: Assign as many as possible and warn the user.
  • Multiple CODEOWNERS matches: Collect all unique owners across changed files. If more owners than required approvals, assign all of them.
  • CODEOWNERS specifies a group: Resolve group members via the API and pick from them.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bcmyguest/personal-skills/assign-mr-reviewers/badge)](https://verified-skill.com/skills/bcmyguest/personal-skills/assign-mr-reviewers)

Something wrong with this skill or its page? Tell us.