Skip to content
Back to skills

Watch Pr

ASecurity

Watch a PR until CI is green and its reviews are answered.

  • 9 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 5, 2026
ai-agentspythongoreactgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add sherifabdlnaby/skills --skill watch-pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Watch Pr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Watch Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sherifabdlnaby-watch-pr/badge)](https://www.skillsdirectory.com/skills/sherifabdlnaby-watch-pr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • README.md8 B
  • SKILL.md1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.