process-pr-reviews
Skill3.3k starsChanged 8 months agoMITView on GitHub
Use when the user asks to process, triage, fetch, view, count, list, or resolve review feedback in a GitHub PR. Supports both CodeRabbit and Codex review workflows. In this workflow, “real review feedback” is strictly defined as actionable inline comments; for CodeRabbit, exclude review summaries and nitpicks, and for Codex, exclude review summary cards and use PR main-thread reactions only as status signals.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- datadogSkill
- nexu-e2e-testSkill
- sync-specsSkill
- feedbackSkill
- nano-bananaSkill
- static-deploySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 17 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Do not treat these as primary sources:
- Distinctive: line 53
If the user may ask you to resolve review conversations after triaging them, fetch review thread IDs as soon as you know the PR number:
- Distinctive: line 63
If the user only wants to view/list/count review feedback, this step is optional.
- Very specific: line 64
If the user may want to resolve conversations, doing this early is usually more convenient because you can map comment databaseId / path / …
- Distinctive: line 72
Only keep records that satisfy all of the following:
- Distinctive: line 104
Treat CodeRabbit nitpicks as non-actionable by default.
- Distinctive: line 105
Do not include nitpicks in counts, summaries, or resolution queues unless the user explicitly asks for nitpicks.
- Very specific: line 110
Use pulls/<pr_number>/reviews to determine whether the PR contains nitpick summaries
- Very specific: line 115
If the output of gh api --paginate ...
- Distinctive: line 118
Do not manually read through the entire large JSON blob
- Distinctive: line 128
When triaging review feedback, apply this rule:
- Distinctive: line 130
If a comment will not be fixed, you may resolve the conversation after triage.
- Distinctive: line 131
If a comment will be fixed, do not resolve it first — make the code change first, then resolve the conversation afterward.
- Distinctive: line 138
If the user asks to resolve a CodeRabbit review conversation:
- Very specific: line 143
If needed, fall back to path + line + author login.
- Very specific: line 170
If Codex finds no issues, it may leave no actionable inline comments and instead react to the PR main conversation thread with +1 (thumbs …
- Very specific: line 171
If Codex finds issues, it may create inline review comments in pulls/<pr_number>/comments and a review summary card in …
- Distinctive: line 202
Use reactions on the PR main conversation thread only to detect Codex review state:
- Distinctive: line 209
Do not treat these as primary sources for actionable comments:
- Distinctive: line 248
If the user asks whether Codex is still reviewing, or whether Codex finished with no findings, inspect reactions on the PR main thread.
- Distinctive: line 255
Do not count these reactions as review comments.
- Very specific: line 266
Use pulls/<pr_number>/reviews only to recognize the summary card
- Distinctive: line 267
If there are no Codex inline comments, optionally inspect PR main-thread reactions to distinguish:
- Distinctive: line 270
no observable Codex activity
- Very specific: line 274
If any gh api --paginate ...
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Process PR Reviews
This workflow supports both CodeRabbit and Codex PR review signals.
CodeRabbit Reviews
“Real review feedback” is strictly defined as:
- inline review comments
- not a review summary
- not a nitpick
Nitpick comments from CodeRabbit must always be ignored to avoid unnecessary noise.
There is no need to analyze the comment content itself.
Data sources
The CodeRabbit workflow only needs these two sources:
PR review comments
gh api --paginate repos/<owner>/<repo>/pulls/<pr_number>/commentsThis is the authoritative source for real inline comments.
PR reviews
gh api --paginate repos/<owner>/<repo>/pulls/<pr_number>/reviewsThis is only used to identify and exclude review summaries / nitpick summaries. It is not used to extract the final result.
Do not treat these as primary sources:
gh pr view ...gh api repos/<owner>/<repo>/issues/<pr_number>/comments
Reason: they are not the authoritative source for actionable inline comments.
Workflow
0. Optional: fetch review thread IDs early if resolve/dismiss may be needed
If the user may ask you to resolve review conversations after triaging them, fetch review thread IDs as soon as you know the PR number:
gh api graphql -f query='query { repository(owner: "<owner>", name: "<repo>") { pullRequest(number: <pr_number>) { reviewThreads(first: 100) { nodes { id isResolved comments(first: 20) { nodes { databaseId path line author { login } body } } } } } } }'This is not a primary source for actionable review feedback. It is only for mapping inline comments to resolvable thread IDs.
Recommendation:
- If the user only wants to view/list/count review feedback, this step is optional.
- If the user may want to resolve conversations, doing this early is usually more convenient because you can map comment
databaseId/path/lineto thread IDs in one pass.
1. Fetch inline comments
gh api --paginate repos/<owner>/<repo>/pulls/<pr_number>/commentsOnly keep records that satisfy all of the following:
user.loginiscoderabbitai[bot]orcoderabbitaiin_reply_to_id == null(only top-level inline comments, not replies)
This is the candidate set.
2. Fetch reviews to exclude review summaries / nitpicks
gh api --paginate repos/<owner>/<repo>/pulls/<pr_number>/reviewsIdentify CodeRabbit review summaries. Common characteristics include:
Actionable comments posted: NNitpick comments- long summary text
These review-level contents are not the final result. They are only used to help determine:
- which items are summaries
- which nitpicks should not be counted as actionable inline comments
Filtering rule
The final goal of the CodeRabbit workflow is always:
Top-level inline comments left by CodeRabbit in
pulls/<pr_number>/commentsthat are neither nitpicks nor summaries
Important:
- Treat CodeRabbit nitpicks as non-actionable by default.
- Do not include nitpicks in counts, summaries, or resolution queues unless the user explicitly asks for nitpicks.
In practice, do the following:
- Get CodeRabbit top-level inline comments from
pulls/<pr_number>/comments - Use
pulls/<pr_number>/reviewsto determine whether the PR contains nitpick summaries - In the output, keep only the inline comments you confirm are actionable
Large output handling
If the output of gh api --paginate ... is too large and gets truncated:
- Record the tool output file path
- Do not manually read through the entire large JSON blob
- Hand it off to
@explorerto extract:- CodeRabbit-authored comments
- the number of top-level inline comments
- each comment’s
path/line/body
Resolving review conversations
Resolution policy
When triaging review feedback, apply this rule:
- If a comment will not be fixed, you may resolve the conversation after triage.
- If a comment will be fixed, do not resolve it first — make the code change first, then resolve the conversation afterward.
In short:
- won't fix / no code change → triage, then resolve
- will fix / code change required → fix first, then resolve
If the user asks to resolve a CodeRabbit review conversation:
- Identify the target inline comment from the actionable comment list.
- Map that comment to its review thread ID via
reviewThreadsGraphQL data.- Match using
databaseIdwhen possible. - If needed, fall back to
path+line+ author login.
- Match using
- Resolve the thread with GraphQL:
gh api graphql -f query='mutation { resolveReviewThread(input: {threadId: "<thread_id>"}) { thread { isResolved } } }'Notes:
- Resolve the thread, not the individual comment.
pulls/<pr_number>/commentsremains the source of truth for identifying actionable inline comments.reviewThreadsis only for thread-level operations such as resolving conversations.
Codex Reviews
“Real review feedback” is strictly defined as:
- inline review comments
- not the review summary card
There is no need to analyze the comment content itself.
Important behavior differences from CodeRabbit
- Codex review is silent while running.
- Unlike CodeRabbit, Codex does not expose an in-progress PR check for review status.
- While Codex is reviewing, the PR main conversation thread gets an
eyesreaction fromchatgpt-codex-connector[bot]. - If Codex finds no issues, it may leave no actionable inline comments and instead react to the PR main conversation thread with
+1(thumbs up). - If Codex finds issues, it may create inline review comments in
pulls/<pr_number>/commentsand a review summary card inpulls/<pr_number>/reviews.
Data sources
The Codex workflow uses these sources:
PR review comments
gh api --paginate repos/<owner>/<repo>/pulls/<pr_number>/commentsThis is the authoritative source for actionable inline Codex comments.
PR reviews
gh api --paginate repos/<owner>/<repo>/pulls/<pr_number>/reviewsThis is used to identify the Codex review summary card such as
### 💡 Codex Review. It is not the primary source of actionable inline feedback.Issue comment reactions on the PR main thread
First fetch the PR issue node / comments if needed:
gh api repos/<owner>/<repo>/issues/<pr_number>/comments gh api repos/<owner>/<repo>/issues/<pr_number>/reactionsUse reactions on the PR main conversation thread only to detect Codex review state:
eyesfromchatgpt-codex-connector[bot]→ Codex review appears to be in progress+1fromchatgpt-codex-connector[bot]on the PR main thread → Codex reviewed and found no issues
These reactions are status signals, not actionable review feedback.
Do not treat these as primary sources for actionable comments:
gh pr view ...gh api repos/<owner>/<repo>/issues/<pr_number>/commentsgh api repos/<owner>/<repo>/issues/<pr_number>/reactions
Reason: actionable Codex review feedback still lives in PR review comments, not in the PR issue timeline.
Workflow
1. Fetch inline comments
gh api --paginate repos/<owner>/<repo>/pulls/<pr_number>/commentsOnly keep records that satisfy all of the following:
user.loginischatgpt-codex-connector[bot]in_reply_to_id == null(only top-level inline comments, not replies)
This is the candidate set of actionable Codex comments.
2. Fetch reviews to identify the summary card
gh api --paginate repos/<owner>/<repo>/pulls/<pr_number>/reviewsIdentify Codex review summaries. Common characteristics include:
### 💡 Codex Review- explanatory text such as
Here are some automated review suggestions for this pull request. - “About Codex in GitHub” help text
These review-level contents are not the final result. They are only used to understand whether Codex posted a review summary.
3. Optionally inspect PR main-thread reactions for status
If the user asks whether Codex is still reviewing, or whether Codex finished with no findings, inspect reactions on the PR main thread.
Interpret them as follows:
eyesbychatgpt-codex-connector[bot]→ likely still reviewing / review in progress+1bychatgpt-codex-connector[bot]with no Codex inline comments → likely completed with no findings
Do not count these reactions as review comments.
Filtering rule
The final goal of the Codex workflow is always:
Top-level inline comments left by Codex in
pulls/<pr_number>/comments
In practice, do the following:
- Get Codex top-level inline comments from
pulls/<pr_number>/comments - Use
pulls/<pr_number>/reviewsonly to recognize the summary card - If there are no Codex inline comments, optionally inspect PR main-thread reactions to distinguish:
- still reviewing (
eyes) - reviewed with no findings (
+1) - no observable Codex activity
- still reviewing (
Large output handling
If any gh api --paginate ... output is too large and gets truncated:
- Record the tool output file path
- Do not manually read through the entire large JSON blob
- Hand it off to
@explorerto extract:- Codex-authored inline comments
- the number of top-level inline comments
- each comment’s
path/line/body
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.

