jodavis/agent-plugins/work-with-pr
Claude Code and agent skill by jodavis/agent-plugins
- community
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-prSKILL.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 orgrepo— the repository namepullNumber— the integer after/pull/
Reading the PR
Fetch the diff:
Fetch review threads (for sign-off):
Each thread has:
id— the node ID (PRRT_...) used to resolve the threadisResolved— whether the thread is already resolvedcomments.nodes[0]— the first comment:body,path, and numericid
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:
2. Add each inline comment (use source file line numbers, not diff positions):
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):
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):
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_...):
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:
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:
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):
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:
- Use the
lookupJiraAccountIdoperation to resolve the identity to a Jira account ID. - Use the
editJiraIssueoperation 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
- SKILL.md in the repositoryCheckingplugins/dev-team/skills/work-with-pr/SKILL.md
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
[](https://verified-skill.com/skills/jodavis/agent-plugins/work-with-pr)