assign-mr-reviewerslisted
Install: claude install-skill bcmyguest/personal-skills
# 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 CODEOWNER