/dev10x-coding:gh-pr-request-reviewfrom dev10x-coding
Requests reviews on GitHub PRs from teams or users. Resolves reviewers from per-project config, explicit arguments, or prompts the user.
Ships in dev10x-coding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill follows references/task-orchestration.md patterns.
Create a task at invocation, mark completed when done:
REQUIRED: Create a task at invocation. Execute at startup:
TaskCreate(subject="Request PR review", activeForm="Requesting review")Mark completed when done: TaskUpdate(taskId, status="completed")
Request reviews on GitHub pull requests from teams or individual users. Auto-resolves reviewers from per-project config when available.
The skill resolves reviewers in this order:
<Dev10x config>/github-reviewers-config.yaml
and look up the current repo's project entrydefault_action: askThe config file is optional. If it does not exist or lacks an entry
for the current repo, the skill falls back to default_action
behavior (ask or skip).
# <Dev10x config>/github-reviewers-config.yaml
default_action: ask # "skip", "ask", or "standby" for unconfigured projects
projects:
app-pos:
reviewers:
- example-org/backend-devs
Dev10x-ai:
skip: true
my-solo-repo:
standby: true # defer review to supervisor self-review
owner/repo)reviewers list uses GitHub format: org/team-slug for teams,
username for individual usersskip: true suppresses the review request for that project permanentlystandby: true means the supervisor self-reviews before a teammate
is pinged. It does NOT stop the skill: the Stand-by / Defer path
below still runs and asks whether the supervisor has reviewed yet,
so a reviewed PR can be cleared for merge or escalated to the team
without re-arguing the override (GH-998). Persists nothing — for a
standing "no humans review here" posture set durable
supervisor_review: none instead (ADR-0022 D-2)default_action: ask prompts the user for unconfigured projects;
skip silently skips them; standby defers without promptingBefore any pre-flight check, resolve whether this invocation should
request review at all. Use resolve_gate for this — do NOT read
friction_level, active_modes, or walk_away directly, and do NOT
re-derive preset behavior in prose. The tool reads session policy
(preset + overlays) itself.
mcp__plugin_dev10x_cli__supervisor_review_status() and read
supervisor_review from the response (default required; the
boolean human_review payload key was removed in 0.109.0 per the
deprecation register, GH-1161, ADR-0028). Do NOT read
~/.config/Dev10x/friction.yaml directly or re-derive its
first-match-wins precedence in prose — same rule this section already
applies to resolve_gate. When it is none, this project has no humans in
the review loop: do NOT request review and do NOT resolve reviewers,
but STILL run the Pre-flight: Draft State Check below (same
reasoning as effect == "skip" in step 4 — a draft PR whose CI is
suppressed would never become mergeable). Print "Skipping review
request (supervisor_review: none)" and stop. Otherwise continue to
step 1.mcp__plugin_dev10x_cli__resolve_gate(gate="request_review", context={}).effect == "ask" → REQUIRED: Call AskUserQuestion (the
Stand-by widget below) before doing anything else.effect == "auto-advance" → skip the widget entirely; proceed
straight to the Pre-flight checks and Reviewer Resolution below;
surface the returned record line to the transcript.effect == "skip" → do NOT request review (solo-maintainer / no
review posture), but STILL run the Pre-flight: Draft State Check
below first (GH-854 F4): a draft PR whose CI is suppressed until it
is marked ready would otherwise never run CI and never become
mergeable. Flip draft→ready via pr_ready, then print "Skipping
review request (solo-maintainer)" and stop — skip only reviewer
resolution, not the draft flip.error key present → fail safe: treat exactly like effect == "ask" and fire the Stand-by widget.REQUIRED: Call AskUserQuestion (do NOT use plain text) with a
Review header. Options:
dev10x-coding:review) before requesting. On this
choice: follow the Stand-by / Defer path below (which persists
nothing), return without requesting review, and hand control back to
the caller to self-review — the caller re-enters this gate afterward.Before requesting review, verify the PR is not already approved
on its current HEAD by a human reviewer. Spamming reviewers
with redundant requests on already-approved PRs is the failure
mode this guard prevents — but bot approvals (e.g., claude[bot],
automated CI workflows) MUST NOT short-circuit human review.
gh pr view is the supported call site):
gh pr view {pr_number} --repo {repo} \
--json reviewDecision,reviews,headRefOid
headRefOid, drop any review whose author.login ends
with [bot] (e.g., claude[bot], github-actions[bot]) or
whose author.type == "Bot" if that field is available. Bot
approvals do not satisfy the "human review" requirement and
MUST NOT trigger the short-circuit gate below. If the only
approvals on the current HEAD are bot approvals, treat the PR
as unapproved by humans and proceed normally to Step 4.state == "APPROVED" and matching
commit.oid == headRefOid exists: the PR is approved on the
current HEAD by a human. REQUIRED: Call AskUserQuestion
(do NOT use plain text) with options:
dev10x-coding:gh-pr-merge insteadAPPROVED review exists but newer commits
invalidate the approval (latest human review commit.oid !=
headRefOid): proceed to the re-request flow but filter out
any human reviewer whose latest review on the current HEAD is
APPROVED. Build the per-reviewer filter from reviews[]
grouped by author.login (excluding bots), taking each author's
most recent review.CHANGES_REQUESTED, or
null): proceed normally. When only bot approvals exist on the
current HEAD, optionally surface this in the user-facing log
line ("PR has only a bot approval — requesting human review").Skip this precheck when invoked with --force flag or when the
caller passes bypass_approval_check: true (e.g., from
dev10x-coding:gh-pr-monitor Phase 3 after fixup commits where the monitor
has already validated the state transition).
Before requesting review, verify the PR is not in draft state. GitHub silently accepts review requests on draft PRs but does NOT notify the requested reviewers — the request is lost.
mcp__plugin_dev10x_cli__pr_detect(arg="<pr_number_or_url>")
to resolve pr_number and repo, then read isDraft from
mcp__plugin_dev10x_cli__pr_get(number={pr_number}, repo="{repo}").mcp__plugin_dev10x_cli__pr_ready(pr_number={pr_number}) (the
gh-pr-ready hook blocks raw gh pr ready), note that this run
flipped it, then proceedgit remote get-url origin
(or call mcp__plugin_dev10x_cli__pr_detect and use its
returned repo field — last path segment is the repo name)yq:
yq '.projects["REPO_NAME"]' <Dev10x config>/github-reviewers-config.yamlprojects:
skip: true → print "Skipping review request
for {repo}" and stopstandby: true → run the Stand-by / Defer path
below. It asks whether the supervisor has already reviewed; only
the "not reviewed yet" answer stops here. Persist nothing.reviewers list → use those reviewersdefault_action: ask → REQUIRED: Call
AskUserQuestion to ask the user who to request review
from (do NOT use plain text). Gate options (presented as
structured buttons):
gh api repos/{repo}/collaborators if desired)default_action: standby → run the Stand-by /
Defer path below (same clearance gate as the configured case)default_action: skip → print "No reviewers
configured for {repo}, skipping" and stopreferences/review-readiness.md
— the Draft State Check above already handled the draft. When this
run flipped a draft, first wait once with
mcp__plugin_dev10x_cli__ci_check_status(pr_number={pr_number}, repo="{repo}", wait=true) so CI has run on the ready PR — a wait
ending in infra_unavailable is re-read once without wait and
judged by the normal rule, so a PR with no CI still passes — and run
this step even if --readiness-checked was passed: the caller
checked the PR before it was ready. Otherwise skip this step when
the caller passed --readiness-checked (dev10x-coding:request-review
already ran it). When a condition fails, resolve the run mode as
that file orders it: --unattended, else run_mode.mode from the
resolve_gate(gate="request_review") payload this skill already
read (undetermined is attended — print Run mode: undetermined ({basis}) — treated as attended). Unattended: refuse and stop;
attended, REQUIRED: Call
AskUserQuestion (do NOT use plain text) with Stop — fix it
first (Recommended) and Request review anyway, header
Readiness. When the run stops here after this run flipped a
draft — an unattended refusal or "Stop — fix it first" — return
the PR to draft with
mcp__plugin_dev10x_cli__pr_ready(pr_number={pr_number}, undo=true)
before stopping, so it is not left published with a known problem.
Whenever the run stops at this step, print Readiness: stopped — {reasons} for humans, then end with the review_request_result:
line (status: "stopped") from that file § Result for callers —
dev10x-coding:request-review reads its status, not the prose. Every
other ending of this skill emits that line too.request_review MCP tool with the resolved reviewersstandby means "the supervisor reviews before a teammate is pinged"
— it does not mean "never request review". So this path does not
silently stop: it still executes and offers the supervisor the
exit. Deferring unconditionally was the GH-998 defect — the only way
out was to argue the override down again on the next PR, and the one
next PR after that.
Read the durable clearance first (GH-1008). Before firing the gate, call:
mcp__plugin_dev10x_cli__pr_labels(pr_number=<n>, action="list")
If review:cleared is in the returned labels, the supervisor already
cleared THIS PR in an earlier session. Skip the gate entirely —
print "PR #{pr_number} already cleared (review:cleared) — self-review recorded in a previous session.", do not resolve
reviewers, and report the PR as cleared so the caller's completion
gate treats the review requirement as satisfied. Re-asking a question
the supervisor already answered is the friction this label exists to
remove.
Otherwise fire the gate.
REQUIRED: Call AskUserQuestion (do NOT use plain text). This
gate is ALWAYS_ASK — it fires at every friction level, because
auto-selecting either branch is exactly the silent deferral the gate
replaces. Question: "{repo} is on stand-by: you self-review before a teammate is pinged. Where is PR #{pr_number}?" Options:
"Review deferred for {repo} — self-review before requesting teammate review." and stop. Write
no label: nothing has been reviewed.standby
for this PR.Record the clearance (GH-1008). On either "I reviewed it" answer:
mcp__plugin_dev10x_cli__pr_labels(pr_number=<n>, action="add",
labels=["review:cleared"])
This is the durable half of the gate — it is what makes the read at the top of this path able to skip. The call is idempotent, so a re-clearance costs nothing.
Then, on every branch:
active_modes, and in particular do NOT write
.claude/Dev10x/session.yaml — ADR-0018 retired that file, and the
durable read facade reaches it only in a repo with no
friction.yaml entry, so in any configured repo the flag was
written and never read (GH-950).Clearance dies when the head moves (GH-1008). A review the
supervisor gave applies to the commits they read, so the label is
scoped to that head — not to the PR forever. Any force-push
(dev10x-coding:git-groom, a conflict rebase, an amend) rewrites what is
under review, and the push path removes review:cleared so the next
request-review invocation asks again. That is deliberate: silently
carrying a clearance across a rewrite would let unreviewed commits
inherit a sign-off. Ordinary added commits are treated the same way,
since the reviewed diff is no longer the current one.
When to change the config instead. Three "I reviewed it — OK to
merge" answers in a row on one repo means standby is describing the
wrong posture: that repo wants durable supervisor_review: none
(ADR-0022 D-2), not a per-PR clearance. Say so rather than letting the
gate fire forever.
Standing posture vs one-off deferral (ADR-0022 D-2, superseding
ADR-0019). Whether the supervisor reads a project's PRs is a
durable project fact, not a session flag. It lives as
supervisor_review: required|none in the matching projects[] entry
of the global ~/.config/Dev10x/friction.yaml, read via
mcp__plugin_dev10x_cli__supervisor_review_status() (default
required):
supervisor_review: none → skip reviewer resolution and the review
request entirely, and verify-acc-dod skips the unresolved-threads
and review-requested checks. It is also a precondition for the
agent merging once automated findings are resolved — never a grant:
the git-tracked merge: ask pin and allowed_overlays remain
independent vetoes.supervisor_review: required (default) → the supervisor reads the PR
first. Where that park lands follows repo shape (ADR-0022 D-3):
before merge in a solo repo, before request_review in a team one
— where it precedes the team request rather than replacing it.
The review:cleared label the two "I reviewed it" answers write is
what lifts the park; dev10x-coding:git-groom removes it after a
force-push, so the park comes back on rewritten history.The retired human_review: true|false key is no longer read (GH-1771).
A repo still carrying it resolves to required.
Run dev10x config migrate-schema to convert it to supervisor_review.
The legacy review-deferred mode string is still read for
back-compat (a playbook modes.review-deferred.skip clause or an
existing active_modes entry keeps working), but nothing writes it.
Invoke the skill without arguments. It reads the config, detects the current repo, and requests review from the configured reviewers:
/dev10x-coding:gh-pr-request-review
Pass reviewer names directly to skip config lookup:
mcp__plugin_dev10x_cli__request_review(
pr_number=PR_NUMBER, reviewers=["org-name/team-slug"], team=true)
mcp__plugin_dev10x_cli__request_review(
pr_number=PR_NUMBER, reviewers=["user1", "user2"])
gh pr view PR_NUMBER --json reviewRequests \
--jq '.reviewRequests[].login // .reviewRequests[].name'
request_review MCP tool for requesting reviews (handles
both users and teams)org-name/team-slugreviewRequestsIf team review request returns HTTP 422 (e.g., team not found, team has no access to the repo, or org settings prevent team reviews), fall back to requesting from individual team members:
gh api orgs/{org}/teams/{slug}/members --jq '.[].login'This pattern was discovered in audit session GH-446 where the team request consistently returned 422.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dev10x-guru/dev10x-claude --plugin dev10x-coding40 skills in this plugin
/ci-reviewdev10x-coding:ci-reviewUse when a change to a Claude CI review prompt, args file, reviewer agent or CLI pin needs checking before it merges — so you read what the CI code review and PR hygiene check would post on a real PR, with nothing reaching GitHub unless you choose, after reading the report, to share it as one marked replica comment. TRIGGER when: "what would the CI review say", replaying the Claude CI review locally, verifying a review prompt or model change on a PR. DO NOT TRIGGER when: self-reviewing a branch with no PR (use dev10x-coding:review), or reviewing someone's PR and posting (use dev10x-coding:gh-pr-review).
/fanoutdev10x-coding:fanoutProcess multiple independent work items as a worktree-isolated swarm — each item runs the full dev10x-coding:work-on lifecycle inside its own background Agent with isolation="worktree" (under Herdr, its own Herdr workspace and agent). Honors dependencies, minimizes conflicts, auto-advances by default. TRIGGER when: 2+ independent work items need parallel processing (PRs, issues, tickets). DO NOT TRIGGER when: single task or sequential dependency chain (use dev10x-coding:work-on); already running as a swarm child (see recursive-fanout guard).