GitHub PR Comment Handler for Openclaw

An AI agent skill designed to fetch, organize, and automatically address open GitHub Pull Request review comments using the GitHub CLI.

tbeard602
v1.0.0
Jun 7, 2026
0
836
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install gh-address-comments

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install gh-address-comments using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is GitHub PR Comment Handler?

The GitHub PR Comment Handler is a specialized automation utility designed for developers who want to accelerate their code review cycles. By leveraging the GitHub CLI (gh), this tool syncs with your active workspace branch, identifies the corresponding open Pull Request, and extracts all unresolved review threads and comments requiring developer attention.

Integrating this tool as part of your Openclaw Skills workflow allows your AI coding agent to take a proactive role in maintaining code quality. Instead of manually parsing through dense GitHub UI threads, the skill centralizes comment management directly within your development environment, preparing structured action items for automated or semi-automated fixes.

GitHub PR Comment Handler Use Cases

  • Streamlining Code Reviews: Rapidly parse and triage massive volumes of feedback on large pull requests without leaving the terminal.
  • Automated PR Refactoring: Empower AI agents to automatically apply fixes for specific, well-defined reviewer feedback items.
  • Pre-flight PR Checkups: Review outstanding team feedback on a branch before merging or triggering CI/CD pipelines.

How GitHub PR Comment Handler Works

  1. Authentication Verification: The skill checks the local environment's GitHub authentication status using elevated network permissions.
  2. Comment Extraction: It executes a background script to fetch all active comments, line notes, and review threads associated with the current branch's open PR.
  3. Triage & Summarization: The collected feedback is structured into an indexed, numbered list accompanied by a brief technical summary of the required fix.
  4. User Confirmation: The agent presents the numbered options to the developer, prompting them to select which feedback items to resolve.
  5. Automated Remediation: The skill applies targeted code adjustments to address the selected review items directly in the codebase.

GitHub PR Comment Handler Setup

Ensure that the GitHub CLI (gh) is installed on your system. Before initializing the skill within your Openclaw Skills runner, verify your authentication status and grant the necessary repository and workflow scopes.

# Log in to your GitHub account and follow the prompts
gh auth login

# Verify your authentication status with elevated network access
gh auth status

If your execution environment uses tight sandboxing that restricts credential access, ensure you execute the initialization commands with elevated sandbox permissions (sandbox_permissions=require_escalated).

GitHub PR Comment Handler Data Schema & Taxonomy

The skill manages its workflow data dynamically during runtime. It leverages a dedicated helper script to extract and taxonomy-map raw JSON data from the GitHub API into structured developer outputs:

Data Component Target / Source Description
fetch_comments.py Local Script Orchestrates the connection to the gh API to extract PR feedback threads.
Thread Index Runtime Memory A sequentially numbered mapping (1, 2, 3...) of PR comments used for user selection.
Technical Summary AI Generated A concise summary detailing the code modifications required to satisfy the reviewer's comment.

GitHub PR Comment Handler Advanced Features

  • Elevated Permission Fallbacks: Automatic detection of environment sandboxing blocks, prompting a rerun with sandbox_permissions=require_escalated when necessary.
  • Mid-Run Session Recovery: Real-time error handling that detects rate-limiting or expired authentication tokens mid-execution, gracefully guiding the user to re-authenticate via gh auth login without losing execution state.
  • Interactive Selection Flow: Granular control mechanisms allowing developers to cherry-pick specific comment indices for automated remediation while leaving complex structural discussions for manual review.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*