# Watching PR Reviews

> Polls your GitHub PR in the background and handles approvals and new review comments as they arrive

Watching PR Reviews is a free AI agent skill on Agensi by Jeonghan Lee, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Jeonghan Lee](https://www.agensi.io/creators/creator-608)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/watching-pr-reviews
- Tags: api, github-cli, automation, code-review, git

## About this skill

### What it does

Open a PR, say "tell me when it's approved" or "handle reviews as they come in", and keep working. A bundled shell script polls the PR in the background and wakes your agent only when something happens.

- **Background poller** (`scripts/poll-pr.sh`) checks reviews, inline comments, and general PR comments since your latest push. It prints a heartbeat line per check and exits on `APPROVED`, `REVIEW`, `COMMENT`, `MERGED`, or `CLOSED`.
- **Ignores your own activity**, so the agent's replies don't re-trigger the poll.
- **Review handling loop**: the agent checks each finding against the code (including review-bot findings), fixes the real ones, runs your lint/checks, pushes, and restarts the poll.
- **Reply etiquette**: when code changed, the commit is the answer and no reply is posted. When a finding is wrong, already fixed, or out of scope, the agent posts a one or two sentence reason, naming the commit if it was already fixed.
- **Scope control**: "notify me" only reports findings. "Handle reviews" lets the agent fix and push within the PR's scope.
- **Dead-poller detection**: if the heartbeat goes stale, the agent checks the PR directly instead of claiming it is "still waiting".

### Requirements

- Authenticated GitHub CLI (`gh`), `bash`, and `jq`.
- An agent that can run background shell tasks (e.g. Claude Code).

Trigger phrases work in English and Korean.

## Known limitations

Requires authenticated gh CLI. Poller runs locally in background. Zsh requires bash invocation for the polling script to avoid word-splitting bugs.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Watching PR Reviews skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill improve my existing PR workflow?

This skill eliminates the 'context-switching' tax by running a background process that watches for GitHub feedback, allowing you to focus on other tasks while the agent handles minor fixes and status tracking.

### What are the technical prerequisites for running the polling script?

The skill requires the GitHub CLI (`gh`) and `jq` installed on your machine, along with an active authenticated session to access your private or public repositories.

### What is included in the 'watching pr reviews' skill package?

You receive the core `poll-pr.sh` orchestration script, the logic for smart remediation and state management, and the documentation for integrating it with your AI agent's environment.

### Can the agent distinguish between a request for a code change and a general question?

Yes, the skill is designed to differentiate between code changes that need fixing and general questions; it will only push updates when it can programmatically resolve a finding, otherwise, it drafts a reply.

### How does the skill prevent duplicate updates or infinite loops after pushing a fix?

The skill uses state management to track commit SHAs and timestamps, ensuring that once it pushes a fix, it won't react to the same review comments again or get stuck in a loop.

### Does this skill work with any specific AI agent framework?

This skill is designed to operate within a local repository worktree on any environment where the GitHub CLI and a bash-compatible shell are available.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
