From mz-dev-base
ALWAYS invoke when the user wants to review a GitHub pull request. Triggers:"review PR","review pull request","check this PR","PR review". Provide a PR URL or owner/repo#number as argument.
npx claudepluginhub doctormozg/claude-pipelines --plugin mz-dev-baseThis skill is limited to using the following tools:
Dispatch the `pr-reviewer` agent to perform a thorough review of a GitHub pull request in an isolated worktree. Produces a report under `.mz/reviews/` with severity-labeled findings and a verdict.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Dispatch the pr-reviewer agent to perform a thorough review of a GitHub pull request in an isolated worktree. Produces a report under .mz/reviews/ with severity-labeled findings and a verdict.
Triggers: "review PR", "review pull request", "check this PR", "PR review".
review-branch.scan-prs.owner/repo#number.$ARGUMENTS should be a GitHub PR reference:
https://github.com/owner/repo/pull/123owner/repo#123If no argument is provided, ask the user for a PR URL.
| Phase | Goal | Details |
|---|---|---|
| 0 | Setup | Inline below |
| 1 | Dispatch pr-reviewer agent | Inline below |
$ARGUMENTS. If the PR reference is empty or malformed, escalate via AskUserQuestion — never guess, never fabricate a PR URL.<owner>_<repo>_<pr_number> form.task_name = <YYYY_MM_DD>_review_pr_<slug> where <YYYY_MM_DD> is today's date (underscores) and <slug> is <owner>_<repo>_<pr_number> truncated to 20 chars, snake_case; on same-day collision append _v2, _v3..mz/task/<task_name>/.state.md with Status: running, Phase: 0, Started: <ISO timestamp>, PR: <reference>, Owner: <owner>, Repo: <repo>, Number: <pr_number>.task_name, PR reference, report dir (.mz/reviews/).gh pr view that the normalized PR reference is accessible. On failure, escalate via AskUserQuestion.pr-reviewer agent with the PR reference as the prompt.STATUS: line:
STATUS: DONE or STATUS: DONE_WITH_CONCERNS → update state.md to Status: complete, Phase: 1. On DONE_WITH_CONCERNS, also log the concerns block into state.md.STATUS: NEEDS_CONTEXT → re-dispatch once with the requested context; on a second NEEDS_CONTEXT, escalate via AskUserQuestion.STATUS: BLOCKED → escalate via AskUserQuestion with the blocker reason. Never auto-retry on BLOCKED.Delegated to phase files — see Phase Overview table above. Detailed technique (worktree isolation, diff-plus-context reading, multi-lens fan-out, two-signal Critical gate, CI-result cross-referencing, severity labeling) lives in plugins/mz-dev-base/agents/pr-reviewer.md and the code-lens-* agent files.
N/A — this is a reference/collaboration skill that dispatches a specialist agent. It does not enforce discipline decisions itself. Discipline pressure is enforced inside pr-reviewer and the code-lens-* agents.
pr-reviewer without first validating PR accessibility via gh pr view.STATUS: BLOCKED or NEEDS_CONTEXT and you retried more than once instead of escalating.STATUS: line and you proceeded anyway.Output the report path (.mz/reviews/<YYYY_MM_DD>_review_pr_<owner>_<repo>_<pr_number><_vN>.md), confirm the file exists, and print the VERDICT: line plus the count of Critical: findings.
gh unavailable for Phase 0 validation → before escalating, try mcp__*github* MCP tools if exposed, then direct GitHub REST API (curl -fsSL -H "Authorization: Bearer $GITHUB_TOKEN" -H "Accept: application/vnd.github+json" "https://api.github.com/repos/{owner}/{repo}/pulls/{number}"). Only escalate via AskUserQuestion after all three tiers fail.git worktree unavailable, Agent tool absent) → escalate via AskUserQuestion with the exact missing command.VERDICT: line) → retry the dispatch once with the same prompt; if still empty, escalate via AskUserQuestion with the failure mode.