address-pr-comments
Addresses PR review comments by making code changes and posting replies. Takes a PR number or auto-detects from current branch. Use when the user wants to address review feedback, respond to PR comments, fix PR feedback, or says "address comments on PR X".
Best use case
address-pr-comments is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Addresses PR review comments by making code changes and posting replies. Takes a PR number or auto-detects from current branch. Use when the user wants to address review feedback, respond to PR comments, fix PR feedback, or says "address comments on PR X".
Teams using address-pr-comments should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/address-pr-comments/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How address-pr-comments Compares
| Feature / Agent | address-pr-comments | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Addresses PR review comments by making code changes and posting replies. Takes a PR number or auto-detects from current branch. Use when the user wants to address review feedback, respond to PR comments, fix PR feedback, or says "address comments on PR X".
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# Address PR Comments ## Purpose Read PR review comments and address them by making code changes, answering questions, or discussing feedback with the user. Post replies to acknowledge addressed comments. ## Prerequisites - Must be on the PR's branch (not main/master) - PR must exist and be open ## Workflow ### Step 1: Verify Environment Check we have a GitHub remote and are on a feature branch: ```bash git remote -v git status git rev-parse --abbrev-ref HEAD ``` **STOP if:** - No remote exists → "This skill requires a GitHub remote. Please add one with `git remote add origin <url>` first." - On main/master → "Please switch to the PR's branch first. You can find it with `gh pr view <number> --json headRefName`" - Uncommitted changes → "Please commit or stash your changes first." ### Step 2: Identify the PR User will provide a PR number (e.g., `#12` or `12`), or auto-detect from current branch: ```bash gh pr view --json number,state,title ``` If no PR exists for the current branch, ask the user for a PR number. Validate the PR is open. If closed/merged, inform the user and stop. ### Step 3: Fetch PR Comments Retrieve general PR comments: ```bash gh pr view <number> --comments ``` Present the comments to the user, showing: - Comment author - Comment body - When it was posted If no comments exist, inform the user and stop. ### Step 4: Process Comments For each comment, work with the user to determine the appropriate action: 1. **Present the comment** clearly to the user 2. **Ask what action to take** using AskUserQuestion: - "Make code changes" → implement the requested changes - "Post a reply" → draft and post a response - "Discuss first" → talk through the feedback before acting - "Skip this comment" → move to the next comment 3. **Execute the action:** - **Code changes**: Make the changes, then optionally post a reply confirming what was done - **Reply**: Draft a reply and post it using `gh pr comment` - **Discussion**: Explore the codebase if needed, discuss with user, then decide on action 4. **Track progress** using TodoWrite to show which comments have been addressed 5. **Loop** until all comments are processed or user wants to stop ### Step 5: Post Replies When posting replies to acknowledge addressed comments: ```bash gh pr comment <number> --body "<reply>" ``` Keep replies concise and professional. Reference specific changes made if applicable. ### Step 6: Commit and Push After making code changes: ```bash git add . git status git commit -m "<summary of changes addressing review feedback>" git push ``` Report what was changed and pushed. ### Step 7: Report Completion Summarise what was done: - Number of comments addressed - Code changes made (files modified) - Replies posted - Any comments skipped or left unresolved ## Guidelines **DO**: - Present each comment clearly before asking for action - Make requested code changes accurately - Post concise, professional replies - Commit and push after making changes - Track progress through comments **DON'T**: - Make changes without user approval - Post replies the user hasn't approved - Skip comments without asking - Leave uncommitted changes ## Handling Common Scenarios **Comment requests a code change:** Implement the change, verify it works, then offer to post a reply confirming it's done. **Comment asks a question:** Discuss with the user, explore the codebase if needed, then draft a reply. **Comment is unclear:** Ask the user for clarification before taking action. **Multiple comments on same topic:** Group them together and address as a single unit. **Disagreement with feedback:** Discuss with user, then post a reply explaining the reasoning if they want to push back. ## Checklist - [ ] Verify on feature branch (not main/master) - [ ] Identify PR (from argument or auto-detect) - [ ] Verify PR is open - [ ] Fetch and display comments - [ ] Process each comment with user - [ ] Make code changes as needed - [ ] Post replies as needed - [ ] Commit and push changes - [ ] Report what was done
Related Skills
addressing-pr-feedback
Fetches, organizes, and addresses PR review comments from GitHub. Use when user asks to review PR comments, fix PR feedback, check what reviewers said, address review comments, or handle bot suggestions on a pull request. Triggers on "review PR", "fix comments", "PR feedback", "what did reviewers say", "address PR feedback", "check PR comments".
address-sanitizer
AddressSanitizer detects memory errors during fuzzing. Use when fuzzing C/C++ code to find buffer overflows and use-after-free bugs.
address-review
Use when addressing PR review comments from Copilot, Claude, or human reviewers. Critically assesses each comment, recommends action (implement/push-back/discuss), and executes appropriately.
address-parser
Parse unstructured addresses into structured components - street, city, state, zip, country with validation.
address-github-comments
Use when you need to address review or issue comments on an open GitHub Pull Request using the gh CLI.
adding-markdown-highlighted-comments
Use when adding responses to markdown documents with user-highlighted comments, encountering markup errors, or unsure about mark tag placement - ensures proper model-highlight formatting with required attributes and correct placement within markdown elements
ux
This AI agent skill provides comprehensive guidance for creating professional and insightful User Experience (UX) designs, covering user research, information architecture, interaction design, visual guidance, and usability evaluation. It aims to produce actionable, user-centered solutions that avoid generic AI aesthetics.
whisper-transcribe
Transcribes audio and video files to text using OpenAI's Whisper CLI, enhanced with contextual grounding from local markdown files for improved accuracy.
tech-blog
Generates comprehensive technical blog posts, offering detailed explanations of system internals, architecture, and implementation, either through source code analysis or document-driven research.
lets-go-rss
A lightweight, full-platform RSS subscription manager that aggregates content from YouTube, Vimeo, Behance, Twitter/X, and Chinese platforms like Bilibili, Weibo, and Douyin, featuring deduplication and AI smart classification.
vly-money
Generate crypto payment links for supported tokens and networks, manage access to X402 payment-protected content, and provide direct access to the vly.money wallet interface.
ontopo
An AI agent skill to search for Israeli restaurants, check table availability, view menus, and retrieve booking links via the Ontopo platform, acting as an unofficial interface to its data.