guided-mr

Reviewed at commit 46027a2

Groups a GitHub PR, GitLab MR or branch diff into ordered review steps with summaries and check notes, paged through in a pane or a browser page with…

Made by
Alex Jacobs
What we checked

Adds /guided-mr, which reads a GitHub PR, GitLab MR or your branch diff with git, gh or glab, sends the diff and description to Claude Opus on your own account to group it into ordered steps, and shows them in a pane. On request it saves the guide, with the code, as an HTML page in /tmp/guided-mr and opens it in your browser, where it loads diff2html and Mermaid from jsDelivr.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (registers the /guided-mr command), command.run and ui.render for its Pane. Runs git (remote get-url, symbolic-ref, rev-parse, diff --no-ext-diff, log), gh pr view and gh pr diff, glab mr view and glab mr diff, mkdir and open through $.process.run with argument arrays, no shell, 60 to 120 second timeouts; the PR reference is a number or a URL matched by a regex, a local base ref is whatever you type. $.model.complete with the hard-coded model 'opus' receives the hunks (6000 characters each, 250000 in total) plus the PR description and commit messages and must return JSON; ids unknown to the diff are discarded and the displayed code always comes from git. $.fs.write saves the HTML to /tmp/guided-mr/<slug>.html only for the 'web' argument or the w key, then runs 'open' (macOS command). The page embeds the guide as JSON with < escaped, escapes text before innerHTML, uses textContent for diff lines and Mermaid securityLevel strict; it loads diff2html@3 and mermaid@11 from cdn.jsdelivr.net without pinned versions or integrity hashes, but sends no data (README discloses this and the /tmp location); reviewed marks are kept in the browser's localStorage. Plugin state (guide, view, reviewed steps) uses atoms. gh and glab talk to GitHub or GitLab with your own sign-in; the mod does not send them anything beyond the PR reference. Not reviewed: gh, glab and git themselves, the jsDelivr scripts, and the types import (resolved from the bundled types/index.d.ts).

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): yes
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events

Guided review of a GitHub PR, GitLab MR or local branch: the diff grouped into ordered steps you page through in a pane

Made this mod? Add a badge to your README

modsforClaude badge for guided-mr

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/guided-mr.svg)](https://modsforclaude.com/mods/guided-mr/)

← All mods