Address GitHub Comments Skill · Devops

Efficiently Address GitHub Pull Request Comments

Master the 4-step workflow to address GitHub PR comments and issue feedback using the gh CLI.

Streamline your code reviews today!

  • GitHub CLI
  • Pull Request
  • Code Review
  • DevOps Workflow
  • Automation

About This Skill

Streamline your development lifecycle with this 4-step workflow designed to inspect, categorize, apply, and respond to GitHub comments using the gh CLI.

Quick Start

  1. 1Verify authentication with gh auth status
  2. 2Fetch PR comments using gh pr view --comments
  3. 3Apply necessary code fixes
  4. 4Respond to threads with gh pr comment
Example Command
gh pr comment <PR_NUMBER> --body "Addressed in latest commit."

Core Capabilities

Inspect Comments

Fetch and view all existing comments and review threads for the current branch's Pull Request.

Categorize and Plan

Systematically list review threads and propose specific fixes for each identified comment.

Apply Fixes

Execute the necessary code changes to resolve the selected feedback items.

Respond to Comments

Update the conversation threads to mark them as resolved once the fixes are applied.

Usage Examples

Before

PR status: 3 open comments, unresolved threads.

After

PR status: 0 open comments, all threads addressed.

Input

gh pr view --comments

Output

A detailed list of all comment threads in the current PR.

Input

gh pr comment 123 --body 'Fixed!'

Output

A new comment added to PR #123 with the text 'Fixed!'

SKILL.md

---
name: address-github-comments
description: "Use when you need to address review or issue comments on an open GitHub Pull Request using the gh CLI."
risk: unknown
source: community
date_added: "2026-02-27"
---

# Address GitHub Comments

## Overview

Efficiently address PR review comments or issue feedback using the GitHub CLI (`gh`). This skill ensures all feedback is addressed systematically.

## Prerequisites

Ensure `gh` is authenticated.

```bash
gh auth status
```

If not logged in, run `gh auth login`.

## Workflow

### 1. Inspect Comments

Fetch the comments for the current branch's PR.

```bash
gh pr view --comments
```

Or use a custom script if available to list threads.

### 2. Categorize and Plan

- List the comments and review threads.
- Propose a fix for each.
- **Wait for user confirmation** on which comments to address first if there are many.

### 3. Apply Fixes

Apply the code changes for the selected comments.

### 4. Respond to Comments

Once fixed, respond to the threads as resolved.

```bash
gh pr comment <PR_NUMBER> --body "Addressed in latest commit."
```

## Common Mistakes

- **Applying fixes without understanding context**: Always read the surrounding code of a comment.
- **Not verifying auth**: Check `gh auth status` before starting.

## When to Use
This skill is applicable to execute the workflow or actions described in the overview.

## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Frequently Asked Questions

FAQ

What tool compatibility is required?
This skill requires the GitHub CLI (gh) to be installed and properly configured on your system.
Who is the target audience for this skill?
It is specifically designed for software developers and DevOps engineers managing GitHub workflows.
How does this differ from manual commenting?
Unlike manual web-based commenting, this skill provides a structured, CLI-driven workflow for systematic resolution.
Is there any language support required?
The skill is language-agnostic as it operates on the GitHub metadata and CLI commands, though the fixes you apply will be in your project's language.
What are the expected results after use?
You can expect a cleaner Pull Request history with all review feedback addressed and threads closed.

Discussion

Discussion

0 comments
U

Trigger Phrases

Use these phrases to activate this skill in your AI coding assistant:

address pr commentsresolve github threadsgh cli pr workflowhandle github feedbackautomate pr reviews