gh-modify-pr for Openclaw

A GitHub-integrated automation skill for fetching, analyzing, and resolving pull request review comments through local code modifications.

danie1lin
v1.0.1
Feb 26, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install gh-modify-pr

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-modify-pr 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 gh-modify-pr?

The gh-modify-pr skill is designed to accelerate the code review cycle by automating the tedious process of addressing reviewer feedback. By integrating directly with the GitHub CLI and Git, it allows developers to interpret inline comments and apply code changes across a repository without manual context switching. As a key component of the Openclaw Skills library, it focuses on precision and developer intent to maintain clean, high-quality codebases.

This skill is particularly effective for developers who want to streamline their contribution workflow. It handles the heavy lifting of branch management, comment extraction, and local committing, ensuring that pull requests are updated quickly and accurately in response to peer suggestions.

gh-modify-pr Use Cases

  • Automatically fixing all unresolved review comments on a specific GitHub pull request.
  • Updating a PR branch with suggested code changes after a round of peer reviews.
  • Synchronizing local development environments with feedback provided via the GitHub web interface.
  • Applying specific, scoped edits to code based on individual reviewer requests.

How gh-modify-pr Works

  1. The skill extracts the repository owner, name, and pull request number from a user-provided URL.
  2. It utilizes the GitHub CLI to fetch metadata and the GitHub API to retrieve all inline review comments.
  3. It identifies actionable items within the comment bodies and maps them to specific files and lines.
  4. If the repository is not present locally, it clones the repo; otherwise, it checks out the relevant PR branch.
  5. It applies the requested modifications to the code exactly as suggested by the reviewers.
  6. It generates a local commit with a descriptive message outlining the addressed comments.
  7. It provides a final report including changed files, commit hashes, and the current branch status.

gh-modify-pr Setup

To use this skill, ensure you have the GitHub CLI and Git installed and authenticated on your machine.

# Install GitHub CLI and Git
brew install gh git

# Authenticate with your GitHub account
gh auth login

gh-modify-pr Data Schema & Taxonomy

The skill manages and interacts with several data components to ensure accurate PR updates:

Component Type Description
PR URL Input The primary link to the GitHub pull request.
Comment API Data JSON Raw data containing inline feedback and review threads.
Repository Metadata Object Includes branch names, file lists, and review status.
Change Log List A summary of files modified and the specific comments addressed.

gh-modify-pr Advanced Features

  • Context-aware parsing that understands the relationship between PR comments and specific code blocks.
  • Automatic repository cloning and branch management to prevent workflow interruptions.
  • Support for focused scope execution, allowing users to target specific comments or entire review rounds.
  • Integration with the broader suite of Openclaw Skills for end-to-end automated software development.
  • Detailed traceability logs that record all attempted and successful modifications for review.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*