Best for
- Use when a PR has reviewer feedback to address, including code changes, style fixes, and documentation updates.
streamlit/streamlit/.claude/skills/addressing-pr-review-comments/SKILL.md
Address all valid review comments on a PR for the current branch in the streamlit/streamlit repo. Covers both inline review comments and general PR (issue) comments. Use when a PR has reviewer feedback to address, including code changes, style fixes, and documentation updates.
Decision brief
Address actionable review comments on the PR for the current branch using gh CLI.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/streamlit/streamlit --skill ".claude/skills/addressing-pr-review-comments"Inspect the Agent Skill "addressing-pr-review-comments" from https://github.com/streamlit/streamlit/blob/cd03ef10c348299c73117b6ecea61c93d327ae74/.claude/skills/addressing-pr-review-comments/SKILL.md at commit cd03ef10c348299c73117b6ecea61c93d327ae74. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Copy and track progress:
gh api --paginate repos/streamlit/streamlit/pulls/{PRNUMBER}/comments
gh api repos/streamlit/streamlit/pulls/{PRNUMBER}/comments/{COMMENTID}/replies \ -f body="Your reply text here"
If auth fails, prompt user to run gh auth login.
You must fetch both inline review comments and general PR (issue) comments. Use both when building the list of feedback to address. General comments have no file or line. Treat them as PR-level feedback.
Permission review
The documentation asks the agent to read local files, directories, or repositories.
Read the affected file (for general comments, infer from comment content; see below)The documentation asks the agent to run terminal commands or scripts.
git status --shortThe documentation asks the agent to run terminal commands or scripts.
git diff --statEvidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 91/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 45,605 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Address actionable review comments on the PR for the current branch using gh CLI.
Copy and track progress:
- [ ] 1. Verify auth: gh auth status
- [ ] 2. Fetch PR data and comments
- [ ] 3. Analyze and categorize comments
- [ ] 4. Present options to user
- [ ] 5. Apply selected fixes
- [ ] 6. Show summary, next steps, and offer to post replies
gh auth status
If auth fails, prompt user to run gh auth login.
You must fetch both inline review comments and general PR (issue) comments. Use both when building the list of feedback to address. General comments have no file or line. Treat them as PR-level feedback.
# PR details for current branch (extract PR number from here)
gh pr view --json number,title,url,state,author,headRefName,baseRefName,reviewDecision,reviews,comments
# Inline review comments with file/line info (--paginate fetches all pages)
gh api --paginate repos/streamlit/streamlit/pulls/{PR_NUMBER}/comments
# General PR discussion comments (--paginate fetches all pages)
gh api --paginate repos/streamlit/streamlit/issues/{PR_NUMBER}/comments
Get unresolved review threads via GraphQL (inline only; used for file/path/line). The query returns the first comment of each thread for display when listing threads; full comment bodies are already fetched via the REST pulls/{PR_NUMBER}/comments and issues/{PR_NUMBER}/comments APIs above. Note: reviewThreads(first: 100) returns at most 100 threads; for PRs with more unresolved threads, use cursor-based pagination (pageInfo.hasNextPage / endCursor) or rely on the REST comments list.
gh api graphql -f query="
{
repository(owner: \"streamlit\", name: \"streamlit\") {
pullRequest(number: {PR_NUMBER}) {
reviewThreads(first: 100) {
nodes {
id
isResolved
path
line
comments(first: 1) {
nodes { author { login } body }
}
}
}
}
}
}" --jq '[.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)]'
Issue comments (from issues/{PR_NUMBER}/comments) do not have a "resolved" flag. Consider all issue comments when building the actionable list, including the PR author's. Author comments can add useful context.
Tip: Save outputs for later reference if the data falls out of context: work-tmp/reviews/pr-{PR_NUMBER}-review-threads.json for inline threads, and work-tmp/reviews/pr-{PR_NUMBER}-issue-comments.json for general PR comments.
Include: Unresolved threads (inline), general PR comments from issues/{PR}/comments, issue/todo/chore comments, maintainer feedback, CHANGES_REQUESTED reviews. Include the PR author's comments when present. They can help clarify the problem space.
Exclude: Resolved threads, praise/thought/note comments (unless the caller explicitly requests responding to ALL comments, in which case acknowledge these with a brief reply)
Skip status-only automated comments. Ignore comments that are only status or check notifications with no actionable feedback. Examples: Snyk ("Snyk checks have passed. No issues have been found so far.") and comments from .github/workflows/pr-preview.yml that only say the PR is building or the preview is ready.
Include substantive bot feedback. Include automated comments that contain actual review feedback. For example, AI review comments from the github-actions bot. Treat them like other review comments and validate before acting. Bot suggestions can be false positives.
General PR comments: Analyze general PR comments (from issues/{PR}/comments) the same way as inline comments. Same include/exclude rules and conventional-comment types (issue / todo / chore / suggestion / etc.).
Critical analysis: Before categorizing a comment or suggesting a response, thoroughly investigate the code and context:
Action types (per conventional comments): issue / todo / chore (must fix) · suggestion (consider) · nitpick (optional) · question (clarify) · praise / thought / note (skip)
The list below combines actionable inline comments and general PR comments. For general comments use "(general)" or "PR-level" instead of {file_path}:{line}.
Found {N} actionable comments ({X} inline, {Y} general) on PR #{NUMBER}: {TITLE}
Review Decision: {APPROVED|CHANGES_REQUESTED|REVIEW_REQUIRED}
Actionable Items:
─────────────────────────────────────────────────────────
1. [issue] {file_path}:{line}
@{reviewer}: "{comment text}"
Action: {what will be done}
2. [todo] (general)
@{reviewer}: "{comment text}"
Action: {what will be done}
3. [chore] (general)
@{reviewer}: "{comment text}"
Action: {what will be done}
4. [suggestion] {file_path}:{line}
@{reviewer}: "{comment text}"
Action: {what will be done} (optional)
5. [nitpick] {file_path}:{line}
@{reviewer}: "{comment text}"
Action: {what will be done} (optional)
6. [question] (general)
@{reviewer}: "{comment text}"
Action: Clarify with user
Skipped: {N} items (praise/thought/note)
─────────────────────────────────────────────────────────
Which items should I address?
Recommended: "1,2,3" (required items)
Options: "1-5" | "all" | "1,2,3" | "skip 4,5"
For each selected item:
For general (non-inline) comments there is no path or line on the comment. Infer the affected file from the comment content, or treat as PR-level (e.g. "update README", "add a test"). If the target is unclear, list options and let the user choose before applying.
High-complexity fixes: If a fix requires large refactors, new abstractions, or risky changes disproportionate to the comment, stop and present the trade-off to the user. Let them decide whether to proceed, push back, or find a simpler approach.
git status --short
git diff --stat
Report:
git add, git commit -m "fix: address PR review comments", git pushExample summary:
─────────────────────────────────────────────────────────
Summary of Changes
─────────────────────────────────────────────────────────
Addressed 4 of 6 comments:
✅ #1 [issue]: Fixed null check in utils.py
Reply: "Added null check as suggested. Good catch!"
✅ #2 [chore] (general): Updated README as requested
Reply: "Done, README updated."
✅ #3 [nitpick]: Renamed variable to snake_case
Reply: "Fixed, thanks for the consistency note."
✅ #4 [todo]: Added docstring to function
Reply: "Added comprehensive docstring."
⏭️ #5 [question]: Skipped - requires your input
Question: "Should this handle the edge case of empty lists?"
🤖 #6 [suggestion] (bot): Skipped - false positive
Bot suggested: "Variable may be undefined"
Reason: Variable is always initialized in the preceding block
─────────────────────────────────────────────────────────
Files modified:
lib/streamlit/utils.py | 15 +++++++++------
Next steps:
git add -A
git commit -m "fix: address PR review comments"
git push
─────────────────────────────────────────────────────────
Post Replies to PR Comments? (optional, after push)
Options: "all" | "bots" (skip humans) | "1,2,3" | "skip"
To post a reply to a review comment:
# For inline review comments (use the comment ID from the API response)
gh api repos/streamlit/streamlit/pulls/{PR_NUMBER}/comments/{COMMENT_ID}/replies \
-f body="Your reply text here"
# For general PR discussion comments
gh api repos/streamlit/streamlit/issues/{PR_NUMBER}/comments \
-f body="@{reviewer} Re: {brief context} - {reply text}"
To resolve an inline review thread after addressing it (use the thread id from the GraphQL query above):
gh api graphql -f query='mutation { resolveReviewThread(input: { threadId: "<THREAD_NODE_ID>" }) { thread { isResolved } } }'
Note: Only inline review threads can be resolved. General PR (issue) comments do not have a resolvable state. Do not resolve threads that were deferred to human input - let the reviewer resolve those once satisfied.
| Issue | Solution |
|---|---|
| Auth failed | gh auth login |
| No PR for branch | gh pr list --head $(git branch --show-current) |
| No comments | "No actionable comments found" |
| File not found | Comment may reference deleted/moved file |
| Rate limited | Wait and retry |
| Uncommitted changes | Warn user first |
Frequently asked questions
Address actionable review comments on the PR for the current branch using gh CLI.
The source record exposes this install command: npx skills add https://github.com/streamlit/streamlit --skill ".claude/skills/addressing-pr-review-comments". Inspect the command and pinned source before running it.
Static rules flagged read-files, exec-script in the source; the page lists the matching lines and excerpts.
Alternatives
NintendaDev/unikit-ai
Generate and maintain the project's TECHNICAL documentation from its codebase — scans the project structure, tech stack, and module boundaries, then writes a lean README landing page plus detailed topic pages (architecture, modules, setup, build, APIs), only the docs that are relevant. Use whenever the user wants to create, update, or validate documentation of the CODE or the project itself, e.g. "generate documentation", "create docs", "write the README", "update the project docs", "document th
vasilyu1983/AI-Agents-public
Scans public GitHub repos for agent skills, dev practices, and code patterns. Use when enriching skills, setting team policy, or researching a build domain.
oaustegard/claude-skills
Orchestrates parallel API instances, delegated sub-tasks, and multi-agent workflows with streaming and tool-enabled delegation patterns. Routes by surface — native subagents in Cowork and Claude Code, httpx fan-out on claude.ai — and covers Gemini delegation via the Cloudflare AI Gateway on every surface. Use for parallel analysis, multi-perspective reviews, or complex task decomposition.
mgiovani/cc-arsenal
Multi-agent review team: architecture, security, performance, testing, style, docs/UX, plus an adversary that cross-examines the other 6, for security-sensitive, architectural, or large PRs (15+ files) where a single-agent pass risks missing cross-cutting issues. Use for auth/payments/PII changes, schema/pattern changes, compliance sign-off, or when asked to 'get the review team on this' / 'multi-agent review' / 'thorough review before merge'. For a standard PR or a quick pre-merge check, use /r