Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Watch Pr?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sherifabdlnaby-watch-pr)
---
name: watch-pr
description: Watch a PR until CI is green and its reviews are answered.
license: MIT
argument-hint: "[PR number or URL] [duration|forever] [humans] (defaults to current branch's PR, 30m)"
metadata:
author: sherifabdlnaby
version: "0.3.1"
---
# watch-pr
Load the **git** skill, then read its watch and review-responses references before acting. Load the **review** skill to judge review comments.
`<git-skill-dir>` below is the base directory the harness printed when the git skill loaded.
Goal: get the PR to green with every review answered, without blocking your turn. Fix CI failures,
answer bot and human comments per the review skill, and escalate only what needs my
input while you keep making progress on everything else (a round that waits on my decision posts nothing). Block waiting on me only once CI is green
and every bot review is addressed.
The sibling skills narrow this: `watch-pr-ci` (CI only) and `watch-pr-comments` (reviews only).
## Target PR
`$ARGUMENTS` may name the PR (number or URL). If empty, resolve the PR for the current branch:
```
gh pr view --json number,url,headRefName,state,isDraft
```
## Start
1. **Draft PR:** flick it once, per the watch reference's draft rules.
2. **Existing review threads:** unresolved threads already on the PR are not news to the watch.
Fetch them per the **git** skill's review-responses Batching rules
and address them first.
## The watch
Use the harness's PR-watch tool when it has one, per the watch reference. Else:
```
python3 <git-skill-dir>/scripts/pr-watch.py watch --pr <N> --repo <OWNER/REPO> --watcher <id> --until quiet --max-total <s>
```
Run it through the cheap subagent the watch reference describes, and react per its verdict table.
On `DONE`: digest and stop.
## Time budget
`$ARGUMENTS` may include a duration (`30m`, `1h`, `2h`, …) or `forever` / `indefinitely`.
- **Duration** -> `--max-total <seconds>`. Default **30m** when neither a duration nor `forever` is given.
- **`forever`** -> no `--max-total`, and for this skill `--until closed`, so settling does not end it;
the siblings keep their own `--until`.
## Human comments
Reviews and comments, bot or human, are judged per the review skill and posted per review-responses; a decision goes to me. With `humans` in
`$ARGUMENTS`, make the decisions too and post the reply as Agent Decided.