jodavis/agent-plugins/work-with-pr

Claude Code and agent skill by jodavis/agent-plugins

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when you are working with an existing GitHub PR. Covers reading PR details and diffs, posting inline comments, managing pending reviews, resolving threads, and requesting human review.

Install

npx vskill@latest install jodavis/agent-plugins/work-with-pr

SKILL.md

The same SKILL.md was published earlier as jodavis/agent-plugins/work-with-pr.

General guidance

When executing a gh or git command, never prepend a cd to the directory onto the command. Command safety scanners see this as a risk and prompt for permission, breaking autonomy.

Extracting PR details from a URL

Given a PR URL of the form https://github.com/<owner>/<repo>/pull/<number>:

  • owner — the GitHub user or org
  • repo — the repository name
  • pullNumber — the integer after /pull/

Reading the PR

Fetch the diff:

mcp__plugin_github_github__pull_request_read(method="get_diff", owner=<owner>, repo=<repo>, pullNumber=<number>)

Fetch review threads (for sign-off):

mcp__plugin_github_github__pull_request_read(method="get_review_comments", owner=<owner>, repo=<repo>, pullNumber=<number>)

Each thread has:

  • id — the node ID (PRRT_...) used to resolve the thread
  • isResolved — whether the thread is already resolved
  • comments.nodes[0] — the first comment: body, path, and numeric id

Posting a review

Gather all inline issues before creating the pending review — it does not appear to reviewers until it is submitted.

1. Create a pending review:

mcp__plugin_github_github__pull_request_review_write(method="create", owner=<owner>, repo=<repo>, pullNumber=<number>)

2. Add each inline comment (use source file line numbers, not diff positions):

mcp__plugin_github_github__add_comment_to_pending_review(owner=<owner>, repo=<repo>, pullNumber=<number>, path=<file>, line=<line>, side="RIGHT", subjectType="LINE", body=<comment>)

Get the configured attribution line once (via the message-attribution skill) before gathering inline issues, then append it to each inline comment's body in this step — every inline comment carries it, not just the overall review summary.

3. Submit the pending review — use event: COMMENT, not APPROVE or REQUEST_CHANGES (GitHub rejects those when reviewer and PR author share the same account):

mcp__plugin_github_github__pull_request_review_write(method="submit_pending", owner=<owner>, repo=<repo>, pullNumber=<number>, body=<overall summary>, event="COMMENT")

Append the same attribution line to step 3's body argument too.

Responding to and resolving threads

Reply to an existing thread (use the numeric comment ID of the thread's first comment):

mcp__plugin_github_github__add_reply_to_pull_request_comment(owner=<owner>, repo=<repo>, pullNumber=<number>, commentId=<numeric id>, body=<reply>)

Before this call, use the message-attribution skill to get the configured attribution line, if any, and append it to the body argument.

Resolve a thread (use the node ID PRRT_...):

mcp__plugin_github_github__pull_request_review_write(method="resolve_thread", owner=<owner>, repo=<repo>, pullNumber=<number>, threadId=<PRRT_... node ID>)

Hand-off operations

These three operations are bare, mechanical, and independently callable — each is invoked on its own from a plain-language instruction (e.g. by run-hook-instructions, following a project's configured after-signoff-approved instructions). None of them reads an environment variable; the reviewer's or assignee's identity is always a literal value the calling instruction supplies.

convert-to-ready

Convert the PR from draft to Ready for Review:

mcp__plugin_github_github__update_pull_request(owner=<owner>, repo=<repo>, pullNumber=<number>, draft=false)
request-review

Given a GitHub username (supplied by the caller), request their review on the PR. Requesting a review is a distinct GitHub REST endpoint (POST /repos/{owner}/{repo}/pulls/{number}/requested_reviewers) — update_pull_request's underlying PR-update endpoint has no reviewers field, so calling it with one succeeds (no error) without ever actually creating a review request. Call the dedicated endpoint directly via gh api instead:

bash
gh api "repos/<owner>/<repo>/pulls/<number>/requested_reviewers" -X POST -f "reviewers[]=<github-username>"

A 422 here means <github-username> isn't a collaborator on the repo (e.g. a bot like copilot-pull-request-reviewer[bot] that was never installed) — not a transient failure, and not fixable by any agent (#254): don't retry, and don't report it as a plain failure either. Return skipped: <github-username> is not a repo collaborator — this specific wording (starting with skipped:) is what a caller dispatching this as a hook result checks for to avoid escalating an unfixable condition to the troubleshooter on every run (see workflow-orchestrate/SKILL.md's hook-result handling). Any other error from this call is a genuine failure — report it as-is.

Verify success via the PR's timeline/review history (a review_requested or copilot_work_started event, or an eventual submitted review):

bash
gh api "repos/<owner>/<repo>/issues/<number>/timeline" --paginate \
--jq '.[] | select(.event == "review_requested" or .event == "copilot_work_started" or .event == "reviewed") | {event, actor: (.actor.login // .user.login), created_at}'

A matching entry for <github-username> confirms the request landed.

This matters specifically for reviewers that clear themselves from requested_reviewers the instant they start work — confirmed for copilot-pull-request-reviewer[bot], the root cause in

#272 — where an empty requested_reviewers list does not mean the request failed, so the timeline check above is the only reliable signal. It is not a blanket rule for every reviewer: for a human reviewer, requested_reviewers staying populated is itself a normal, valid "still outstanding" signal — it only clears once they submit a review or the request is withdrawn — so checking it directly is fine there. Reach for the timeline check above only for bot/immediate-start reviewers, or when you don't already know which kind of reviewer this is.

assign-issue

Given a Jira issue key and a reviewer identity (name or email, supplied by the caller), assign the Jira issue to that reviewer using work-with-Jira-tasks:

  1. Use the lookupJiraAccountId operation to resolve the identity to a Jira account ID.
  2. Use the editJiraIssue operation to set the issue's assignee to that account ID.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jodavis/agent-plugins/work-with-pr/badge)](https://verified-skill.com/skills/jodavis/agent-plugins/work-with-pr)

Something wrong with this skill or its page? Tell us.