{"data":{"slug":"discovered-6145b00da133aa51a2693976dbc1889e5b215879d8f9423e","title":"Review Batch for GitLab MRs","summary":"Automatically process and review all GitLab merge requests in the 'Review requested' list, identifying which can be approved and which require further action.","url":"https:\/\/skillshunter.net\/skills\/discovered-6145b00da133aa51a2693976dbc1889e5b215879d8f9423e","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-6145b00da133aa51a2693976dbc1889e5b215879d8f9423e","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-6145b00da133aa51a2693976dbc1889e5b215879d8f9423e.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-6145b00da133aa51a2693976dbc1889e5b215879d8f9423e\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before running, ensure the project has an entry in `CLONES` in `review-batch.py`. The `--resolve` flag must be explicitly passed to resolve threads with `verified` fixes.","instructions":"---\nname: review-batch\ndescription: Run the review-followup pass over every MR in my GitLab \"Review requested\" list, one subagent per MR, and report which to approve. Use for \"go through my review requests\", \"follow up on all my re-reviews\", \"which MRs can I approve\", \"batch review-followup\".\n---\n\n# Review batch\n\nThis skill replaces the manual loop of switching to the MR worktree, pulling,\nstarting Claude, and running `\/review-followup <mr-url>` for each re-review.\nRun it from any directory. It uses no worktree: `review-followup.py` fetches\nthe MR refs into the project's clone, and the agents read files at the MR\nhead with `git show <sha>:<path>` and `git grep -n <pattern> <sha>`.\n\n`--resolve` resolves each thread whose fix is `verified`. Typing it is the\nsame-turn request that `review-followup` rule 5 and my GitLab write rule ask\nfor. Without it the run reads only. The skill never approves an MR on GitLab.\n\n## Steps\n\n### 1. Intake\n\n```bash\n~\/.claude\/skills\/review-batch\/review-batch.py --out <scratchpad>\/review-batch\n```\n\nThe script sorts each MR in the review-requested list by `status`:\n\n| Status | Meaning | Action |\n|---|---|---|\n| `approve` | I started threads, all are settled, nothing changed since. | Report `Approve <url>`. |\n| `followup` | `route` is `replies-only`, `verify-fixes`, or `rereview`. | Step 2. |\n| `waiting` | Nothing changed, and `unsettled` threads are still open. | List under **Waiting on author**. |\n| `first-review` | I have no notes on the MR. | List under **First review**, with `\/mr-review <url>`. |\n| `draft`, `no-clone`, `error` | Not run. | List with the reason (`error` carries its message). |\n\n`no-clone` means the project has no entry in `CLONES` in `review-batch.py`.\n\n### 2. Follow-up agents\n\nFor every `followup` MR, make one `Agent` call with `model: \"sonnet\"`, all in\none message. The prompt is, filled from the row:\n\n```plaintext\nInvoke the review-followup skill for GitLab MR !<iid> of <project> in batch\nmode and follow it.\n\nClone: <clone>. Prefix every Bash command with `cd <clone> &&`, because the\nworking directory does not persist.\nFacts file: <facts>\nResolve: <yes if the person passed --resolve, else no>\nScratchpad: <scratchpad>\n```\n\nEach agent ends its reply with `OUTCOME:` and, for a re-review, `DISPATCH:`\n(see review-followup, Batch mode).\n\n### 3. Delta reviews\n\nAs each agent returns a `DISPATCH: <prompt path> <skill>` line, make one\n`Agent` call with `model: \"opus\"` and the prompt:\n\n```plaintext\nRead <prompt path> and follow it exactly. Reply with the review in the\nformat it names. Write nothing to GitLab.\n```\n\nDo not wait for the other follow-up agents before dispatching.\n\n### 4. Report\n\nPut the lines the person acts on first, then the rest. Write `Approve <url>`\nfor:\n\n- an `approve` row from the intake,\n- an `OUTCOME: approve` agent. With `Resolve: no`, append\n  `(<n> verified threads not resolved)`, or\n- a `rereview` MR whose intake `unsettled` is 0 and whose delta review\n  returned no findings at or above the skill's blocker bar.\n\nThen these sections, each omitted when empty, one line per MR with its URL:\n\n- **Needs you:** each `OUTCOME: needs-you` MR, and each `rereview` MR with a\n  finding or an unsettled thread. Under it, paste the agent's **Needs your\n  decision** list and the delta review's findings unchanged.\n- **Waiting on author:** `waiting` rows and `OUTCOME: waiting` agents.\n- **Review by hand:** a `rereview` MR with no `DISPATCH` line, with the\n  reason the agent gave.\n- **First review**, **Not run**: as the intake table says.\n","use_cases":["Batch review all GitLab merge requests in the 'Review requested' list","Identify which merge requests can be approved","Follow up on re-reviews and unresolved threads","Generate delta reviews for specific merge requests"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/gitlab.com\/radbatnag\/claude-skills\/-\/blob\/05b55872e4e98b79bc052be748b3abd6dccbabe6\/skills\/review-batch\/SKILL.md","source_commit":"05b55872e4e98b79bc052be748b3abd6dccbabe6","license":null,"version":null,"listing_approved_at":"2026-11-28","created_at":"2026-11-28T08:00:13.000000Z","updated_at":"2026-11-28T18:37:52.000000Z","seo_title":"Batch Review GitLab Merge Requests","seo_description":"Automate the review process for GitLab merge requests with this tool, which identifies approvals, follow-ups, and unresolved threads.","seo_keywords":["GitLab merge request review","batch review tool","automate code review","review-followup","merge request approval"]}}