PR Comment Handler

Help address review/issue comments on the open GitHub PR for the current branch using gh CLI; verify gh auth first and prompt the user to authenticate if not logged in.

概览

The PR Comment Handler is a specialized DevOps skill designed to facilitate the resolution of pull request feedback through an AI agent interface. Sourced from the mxyhi/ok-skills repository—a collection with 423 stars—this tool utilizes the GitHub CLI to interact with comments on the active branch's PR. The skill ensures operational reliability by verifying the user's GitHub authentication status at the start of the process, prompting for a login if the session is inactive. By integrating with agents like Claude-Code and Cursor, it allows developers to programmatically address review issues and maintain workflow continuity without leaving their development environment.

使用场景

Automating responses to code review feedback on active GitHub pull requests.
Verifying GitHub CLI authentication status before executing PR modifications.
Processing issue comments associated with the current branch's open PR.

安装说明

# Review source first
open https://github.com/mxyhi/ok-skills/blob/main/gh-address-comments/SKILL.md

Copy or clone the skill folder into your agent skills directory after reviewing its instructions and scripts.

安全提示

The skill operates through the GitHub CLI and requires existing local authentication. It includes a mandatory check to verify the user's login status, ensuring that actions are only performed when a valid, authorized session is detected.

相关 Skills