AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Github Pr Watch

skill-shodocan-pi-monitor-plugin-github-pr-watch · by Shodocan

Watch GitHub for pull requests awaiting the user's review and notify the session when new review requests appear. Use when the user asks to watch a repo (or all repos) for PRs, babysit their review queue, get pinged about review requests, or stop such a watch.

No reviews yet
0 installs
9 views
0.0% view→install

Install

$ agentstack add skill-shodocan-pi-monitor-plugin-github-pr-watch

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-shodocan-pi-monitor-plugin-github-pr-watch)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Github Pr Watch? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

GitHub PR review watcher

Starts a background monitor that polls GitHub for open pull requests where the user's review is requested, and delivers a structured event into this session for each new one. Polling uses the ambient gh CLI authentication — no tokens are read or stored.

Prerequisites

  • gh CLI installed and authenticated (gh auth status must succeed).
  • jq installed.
  • The pi-monitor extension active (this skill ships with it).

If gh auth status fails, tell the user to run gh auth login themselves — never attempt to authenticate on their behalf.

Start watching

  1. Resolve scope.
  • User said "this repo" or you are inside a repo: run

gh repo view --json nameWithOwner -q .nameWithOwner and use --repo .

  • User said "my PRs", "everything", or gave no repo: use cross-repo mode without --repo.
  1. Pick interval. Default 300 seconds. Minimum practical interval is 60 seconds because gh search indexing may lag.
  2. Start monitor. Use the absolute script path from this skill directory.

Slash examples

Watch review requests across all repos every 5 minutes:

/monitor --regex '^PI_EVENT ' -- /scripts/watch-prs.sh --interval 300

Watch one repo:

/monitor --regex '^PI_EVENT ' -- /scripts/watch-prs.sh --interval 300 --repo acme-org/example-service

Include drafts or bot-authored PRs:

/monitor --regex '^PI_EVENT ' -- /scripts/watch-prs.sh --interval 300 --include-drafts --include-bots

Tool example

Pass jobs_monitor params directly:

{
  "command": "/scripts/watch-prs.sh --interval 300 --repo acme-org/example-service",
  "regex": "^PI_EVENT ",
  "before": 0,
  "after": 0,
  "debounceSeconds": 5,
  "deliver": "polite"
}

Parameter cheat sheet

  • --repo owner/name — limit watch to one repository; omit for all repos.
  • --interval seconds — polling interval; default 300.
  • --include-drafts — include draft PRs; skipped by default.
  • --include-bots — include bot authors like Dependabot; skipped by default.
  • --once — single poll for testing; do not use for a long-running monitor.

After starting, tell the user: "Watching every ; /jobs shows active monitors and /cancel stops it."

When an event arrives

Deliveries contain one PI_EVENT JSON line per new PR ({"v":1,"type":"pr_review_requested","repo":...,"number":...,"url":...}). For each:

  1. Run gh pr view (add --json title,body,additions,deletions,statusCheckRollup

if you need structure) for a cheap enrichment.

  1. Give the user a 2–3 line summary: what it changes, size, CI status.
  2. Ask whether they want you to start a review. **Never review, comment, or approve

without explicit confirmation.** If the author is a bot and it is a routine dependency bump, say so and offer a quick skim instead.

A {"type":"baseline","count":N} event on first run means N requests already existed — report the count once, do not enumerate them unless asked.

Stop watching

Run /jobs, find the mon_* job, then /cancel .

/jobs
/cancel mon_1

Watcher state (seen PR ids) lives under ~/.local/state/pi-monitor/watch-prs/ and may be deleted freely — the only consequence is a fresh baseline.

Testing the pipeline

scripts/watch-prs.sh --once performs a single poll and exits — useful for verifying gh auth and inspecting the raw PI_EVENT output before starting a monitor.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.