pr-watch

pr-watch is a skill for Claude Code, Codex from DJRHails/dotfiles. It costs 103 tokens per session (1,232 once invoked), scanned A, original, MIT.

A watcher for GitHub pull requests that reports each new change, such as CI results, reviews, comments, conflicts, queue changes, and merges. A pull request is a proposed code change waiting for review before it is merged.

In plain words
What is it for?
Use it to monitor selected PRs or your own PRs, follow them through review and the merge queue, and optionally enable merging when approval arrives.
Why use it?
It avoids repeatedly checking several pull requests by hand and reports only facts that changed since the previous check. It can also track new pull requests from a specified author.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to monitor selected PRs or your own PRs, follow them through review and the merge queue, and optionally enable merging when approval arrives.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/djrhails/dotfiles/pr-watch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DJRHails/dotfiles --skill pr-watch
Clone the repo
git clone --depth 1 https://github.com/DJRHails/dotfiles

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-watch

README.md
[![agentmods](https://agentmods.dev/badge/skills/djrhails/dotfiles/pr-watch/github.svg)](https://agentmods.dev/skills/djrhails/dotfiles/pr-watch)
Your own site
<a href="https://agentmods.dev/skills/djrhails/dotfiles/pr-watch"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/pr-watch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-watch

Your own site · 80×15
<a href="https://agentmods.dev/skills/djrhails/dotfiles/pr-watch"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/pr-watch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,232 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.01232
Opus 5.5 $0.00041 $0.00493
Sonnet 5.5 $0.00021 $0.00246
Haiku 4.5 $0.00010 $0.00123

Measured 21d ago against content hash 1d5316de69db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-watch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

modules/agents/skills/pr-watch/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

pr-watch

scripts/pr-watch polls PRs over GraphQL and prints one line per new fact — the diff between consecutive snapshots. Pipe it into the Monitor tool and each line becomes a notification.

~/.agents/skills/pr-watch/scripts/pr-watch --repo OWNER/NAME --requeue 13029 12931 12408
~/.agents/skills/pr-watch/scripts/pr-watch --author @me --requeue --merge-approved  # merge mine as approved
~/.agents/skills/pr-watch/scripts/pr-watch --once 13029               # one pass, for testing

Arm it with Monitor at the 30-minute maximum and re-arm on each expiry notice. Snapshots persist in ~/.cache/pr-watch/<owner>_<repo>/, so a re-arm resumes silently instead of replaying history, and the first pass over a new PR only records a baseline. --author is re-resolved every pass, so new PRs join and merged ones drop out. --state-dir isolates a watch from earlier ones.

When the user says "my PRs", watch --author @me, not a fixed list of numbers. A fixed list silently misses every PR opened after the watch starts. Add explicit numbers only for other people's PRs. When they ask to merge PRs as they get approved, add --merge-approved: it turns on auto-merge for the user's own approved, non-conflicting PRs with no unresolved review threads (bot threads included; never anyone else's PRs), including PRs already approved when the watch starts. It never re-adds a PR the merge queue dropped: timeouts are --requeue's job, and any other drop needs its failing check read first.

Events

line meaning
ci=SUCCESS / ci=FAILURE / ci=ERROR latest commit's rollup settled (PENDING is suppressed)
CONFLICTING no longer merges cleanly with its base
review <id> <login> APPROVED|CHANGES_REQUESTED|COMMENTED a new review (the PR author's own are skipped)
now APPROVED review decision flipped to approved — merge-ready once CI passes
open-thread <id> last-by=<login> a new unresolved thread, or a reply on one
comment <id> <login> new top-level comment from someone else
removed-from-merge-queue <at> <reason> merged, or a drop such as checks_timed_out
approved; auto-merge enabled --merge-approved queued one of your approved PRs
requeued after checks_timed_out --requeue put an approved PR back in the queue
state=MERGED / state=CLOSED done; the PR is dropped from the watch
snapshot failed: <error> gh could not read the PR (typo'd number, auth, rate limit); printed once per failure streak

Read the full file on GitHub · 69 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 21d ago First seen · 69 lines · 103 tokens per session scan A 1d5316de69db

Subscribe to this mod's changes

pr-watch is a skill published in the GitHub repository DJRHails/dotfiles (2 stars, last pushed 3d ago), licensed MIT. It adds 103 tokens to every session and 1,232 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-09.

Related

pr-watch compared with skills from other repositories

pr-watch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-watchDJRHails/dotfilesSkill23d agoMITA103Claude Code, Codex
source-draftingnicknisi/dotfilesSkill3.0kyesterdayMITA54Claude Code
autopilotjoshukraine/dotfilesSkill4307d agoMITA40Claude Code
autopilot-triagejoshukraine/dotfilesSkill4307d agoMITA44Claude Code
create-prjoshukraine/dotfilesSkill4307d agoMITA25Claude Code
drift-checkjoshukraine/dotfilesSkill4307d agoMITA20Claude Code
merge-prjoshukraine/dotfilesSkill4307d agoMITA23Claude Code