get-pr-comments
Skill7 starsChanged 2 months agoMITView on GitHub
Use when an agent needs to retrieve GitHub pull request review comments, review threads, or general review feedback. Supports an explicit repository and PR number or the active pull request, with optional filtering for unresolved, resolved, inline, and timeline comments. Read-only: never changes or resolves review threads.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- Yeachan-Heo/oh-my-claude-sisyphustheir own version, first seen Nov 8, 2026
- novuhq/novutheir own version, first seen Nov 8, 2026
- Yeachan-Heo/oh-my-claudecodetheir own version, first seen Nov 8, 2026
- ArchitektApx/cursor-skills-for-claudetheir own version, first seen Nov 1, 2026
- therapys/dotagentstheir own version, first seen Nov 1, 2026
- Scino/fstacktheir own version, first seen Oct 25, 2026
Used with
Projects with it also use check-compiler-errors, new-branch-and-pr and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
cogine-aiSkillcheck-compiler-errors
Run compile and type-check commands and report failures
Also in 3 projects that use this
cogine-aiSkillnew-branch-and-pr
Create a fresh branch, complete work, and open a pull request
Also in 3 projects that use this
MicrosoftSkillrun-smoke-tests
Run smoke tests to verify extension functionality in a real VS Code environment. Use this when checking if basic features work after changes.
Also in 3 projects that use this
- +1 more from cogine-ai
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- novuhq/novu★ 40ksame name
- LedgerHQ/ledger-live★ 627same name
- Scino/fstack★ 18same name
- therapys/dotagents★ 8same name
- cogine-ai/cogine-dev-skillset★ 4same name
- dhanji4U/skills★ 2same name
- jaydubya818/MissionControl★ 2same name
- ElyzeSolutions/skills★ 1same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- address-pr-commentsSkill
- build-and-scan-container-imageSkill
- execute-database-migrationSkill
- generate-adrSkill
- generate-service-documentationSkill
- incident-triageSkill
- install-dev-toolsSkill
- prepare-releaseSkill
- remediate-dependency-vulnerabilitiesSkill
- review-configurationSkill
- twg-agentic-searchSkill
- twg-artifactsSkill
- twg-code-reviewSkill
- twg-confluenceSkill
- twg-context-discoverySkill
- twg-engineering-workSkill
- twg-jira-resolve-merged-workSkill
- twg-jiraSkill
- twg-operational-healthSkill
- twg-responsibility-routingSkill
- twgSkill
- twg-space-creationSkill
- twg-status-rollupsSkill
- validate-and-deploy-iacSkill
- validate-and-deploy-kubernetesSkill
- validate-documentationSkill
- validate-github-actionsSkill
- verify-service-healthSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
If pullRequest is supplied, require owner and repository unless the GitHub integration can infer them unambiguously.
- Distinctive: line 47
Read both sources when available:
- Distinctive: line 57
Never resolve, reply to, edit, label, approve, or otherwise mutate the PR.
- Distinctive: line 58
Use the separate review-comment workflow when an action is requested.
- Very specific: line 107
Use null for unavailable scalar values and an empty array for unavailable collections.
- Very specific: line 113
If no active PR exists, request or report owner, repository, and pullRequest.
- Distinctive: line 114
If GitHub authentication fails, report that authentication is required and do not substitute local Git history for review comments.
- Distinctive: line 116
If the PR exists but comments are unavailable, return the PR metadata and a limitation explaining which comment source was unavailable.
- Distinctive: line 118
If the result is truncated, say so and preserve the available comments.
- Distinctive: line 119
If cached and refreshed results disagree, prefer the refreshed result and note that the PR changed during retrieval.
- Distinctive: line 124
Use the bundled Bash script only when the structured GitHub tools are unavailable or the caller explicitly requests a local CLI fallback:
- Distinctive: line 145
Run the script from the repository root or use its absolute path.
- Distinctive: line 151
When another workflow will address the feedback, pass along the normalized thread IDs and whether each thread is resolved.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Get Pull Request Comments
Retrieve pull request review feedback in a predictable, read-only form. Use this skill before addressing review comments, summarizing review feedback, or deciding whether a PR needs changes.
Parameters
Accept these parameters when the caller provides them:
| Parameter | Type | Default | Meaning |
owner | string | repository owner from workspace | GitHub repository owner. |
repository | string | repository name from workspace | GitHub repository name. |
pullRequest | integer | active PR | Pull request number. |
active | boolean | true when no PR number is given | Use the checked-out active PR. |
refresh | boolean | automatic | Force a fresh GitHub read. |
includeResolved | boolean | false | Include resolved inline review threads. |
includeTimeline | boolean | true | Include general PR reviews and timeline comments. |
includeSystem | boolean | false | Include bot/system events that are not review feedback. |
file | string | all files | Limit inline comments to a repository-relative file path. |
author | string | all authors | Limit comments to a GitHub login. |
format | summary or json | summary | Select human-readable output or normalized structured output. |
If pullRequest is supplied, require owner and repository unless the GitHub
integration can infer them unambiguously. If neither pullRequest nor active
is supplied, use the active PR only when one is available; otherwise report the
missing repository and PR parameters.
Retrieval Procedure
- Determine the target using the parameters.
- For the active PR, call the active pull request tool once without forcing a refresh.
- Inspect
lastUpdatedAt. If the cached result is less than three minutes old, call the same tool again withrefresh: true. Otherwise use the cached result unless the caller explicitly setrefresh: true. - For an explicit PR number, use the GitHub pull request or issue/PR details tool that returns review threads and timeline comments. Do not use repository text search as the primary retrieval method.
- Read both sources when available:
reviewThreadsfor inline comments, thread state, and file locations.timelineCommentsfor general reviews, change requests, and non-inline feedback.
- Filter the result:
- Exclude resolved threads unless
includeResolvedistrue. - Exclude system-only events unless
includeSystemistrue. - Apply
fileandauthorfilters to both inline comments and timeline comments when the fields exist.
- Exclude resolved threads unless
- Preserve the original comment text, author, file, line or position, timestamp, thread ID, resolution state, and comment type when available.
- Never resolve, reply to, edit, label, approve, or otherwise mutate the PR. Use the separate review-comment workflow when an action is requested.
Normalized Output
For format: summary, return:
- Repository and PR identity.
- PR title, state, and URL when available.
- Retrieval timestamp and whether the result was refreshed.
- Unresolved inline threads first, grouped by file and ordered by severity or source order when severity is unavailable.
- General review and timeline feedback next.
- Resolved threads only when requested.
- A short note for skipped filters, unavailable fields, or retrieval limitations.
For format: json, return an object with this shape:
{
"repository": "owner/name",
"pullRequest": 0,
"title": "",
"state": "",
"url": "",
"retrievedAt": "",
"refreshed": false,
"reviewThreads": [
{
"id": "",
"isResolved": false,
"canResolve": false,
"file": "",
"comments": [
{
"author": "",
"body": "",
"commentType": "",
"createdAt": "",
"line": null,
"position": null
}
]
}
],
"timelineComments": [],
"limitations": []
}Use null for unavailable scalar values and an empty array for unavailable
collections. Do not invent line numbers, authors, timestamps, or resolution
states.
Failure Handling
- If no active PR exists, request or report
owner,repository, andpullRequest. - If GitHub authentication fails, report that authentication is required and do not substitute local Git history for review comments.
- If the PR exists but comments are unavailable, return the PR metadata and a limitation explaining which comment source was unavailable.
- If the result is truncated, say so and preserve the available comments.
- If cached and refreshed results disagree, prefer the refreshed result and note that the PR changed during retrieval.
CLI Fallback
Use the bundled Bash script only when the structured GitHub tools are unavailable or the caller explicitly requests a local CLI fallback:
skills/get-pr-comments/scripts/get-pr-comments.sh \
--owner OWNER \
--repo REPOSITORY \
--pr NUMBER \
--format jsonThe script requires bash, gh, jq, and git. It supports --file,
--author, and --include-system filters, uses paginated REST responses, and
cleans up temporary files automatically. It never changes the pull request.
The REST fallback returns reviewComments and timelineComments, but its
reviewThreads array is empty because REST does not provide GraphQL thread
resolution state. Its limitations array must be preserved and surfaced to the
caller. Do not claim that unresolved or resolved filtering was applied when the
fallback was used.
Run the script from the repository root or use its absolute path. Do not copy its output into a committed file unless the caller explicitly requests an export.
Review Handoff
When another workflow will address the feedback, pass along the normalized thread IDs and whether each thread is resolved. Do not resolve threads in this skill; the addressing workflow owns implementation, replies, and resolution.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

