agentleFS
jonathascostajonathascosta/claude-code-workflow/.claude/skills/pr-watch/SKILL.md

pr-watch

Skill2 starsChanged 14 days agoMITView on GitHub

Watch the user's own open pull requests in the background and report as soon as a teammate reviews, comments or approves, a check fails, or one is merged. Use right after opening a pull request, when resuming work on a working day with pull requests waiting for review, or when the user asks to watch or monitor the pull requests.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use composio, architect and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • composio-communitySkill

    composio

    Use 1000+ external apps via Composio - either directly through the CLI or by building AI agents and apps with the SDK

    Also in 3 projects that use this

  • Harut8Skill

    architect

    Also in 3 projects that use this

  • OpenAISkill

    systematic-debugging

    Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

    Also in 3 projects that use this

  • Microsoft AzureSkill

    verify

    End-to-end app testing pipeline for browser-based web apps on cloud browsers via Azure Playwright Workspaces: verify the live app, author tests for working flows, heal failing tests, then re-run with video and produce one consolidated report. Three phases (app verification, test authoring, test healing) plus a scoped final sanity run; each phase emits a sub-report. Use when asked to "verify my app", "make sure my app works and has good test coverage", "do a full QA pass", "add tests where I'm missing coverage", "fix failing tests and add new ones", "smoke test before deploy", "QA my deployment", or any combined verify-and-test ask. Requires Azure CLI (`az login`) and a Playwright Workspace resource ID — bootstraps configs on first invocation. Browser-based web apps with Playwright only — not for unit/API tests, native mobile/desktop, load/perf, or full accessibility audits.

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Only one watcher per repository.

    line 23
  2. Very specific:

    after pr-answer posts replies.

    line 27
  3. Very specific:

    when work resumes on a working day and a pull request is waiting for review (status checks this).

    line 28
  4. Distinctive:

    Read the lines it printed, then act on each kind:

    line 32
  5. Distinctive:

    Stop the background command when the user asks, or when the last pull request is merged.

    line 61

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Watch our pull requests

Waiting for a review costs nothing if the answer is noticed at once, and a lot if it is noticed two hours later. This skill keeps a background check on every open pull request the user authored and wakes the session when someone else does something.

The hours come from .claude/project.md ("Communication": the reviewers' working hours, the review cut-off and the watching window, all in the user's local time). If they are missing, ask.

Start

python .claude/skills/pr-watch/scripts/pr_watch.py <owner/repo> --interval 15 --hours <watching window>

Run it with the Bash tool's background mode. It checks every 15 minutes and exits when there is news, when no pull request is left, when the watching window closes, or when it cannot read the pull requests (an expired login, for example: sign in again and restart it). Its exit is the signal: do not poll it and do not sleep waiting for it.

A pull request seen for the first time with reviews or comments already on it reports them as news, so a pull request opened outside the window does not lose its first review.

Only one watcher per repository. Before starting, check whether one is already running in this session.

Start it:

  • at the end of pr-open;
  • after pr-answer posts replies;
  • when work resumes on a working day and a pull request is waiting for review (status checks this).

When it reports news

Read the lines it printed, then act on each kind:

NewsWhat to do
A review with comments, or new commentsRecord the time in the worklog (start <task id> fixes --at <the ISO time at the end of the news line>), tell the user, and start pr-answer: analyse and draft at once; fix and publish only with approval.
Approved by everyone required, nothing blockingRecord waiting_merge, tell the user, and start release: it checks that nothing blocks the merge and asks the merge question.
A check started failingRead the failure, say whether it comes from our change or from the platform, and what to do.
Merged by someone else (the line says MERGED)Tell the user, and continue from step 2 of release (the part for a pull request that was already merged).
Closed without merging, by anyone (the line says CLOSED)Tell the user and ask what they want to do. Do not propose deleting the branch or moving the task on the board: the work was not merged.
"For your information": merged by youThe user merged it themselves, in the browser. The steps after a merge are waiting: continue from step 2 of release (the part for a pull request that was already merged). This line needs no acknowledgement; it is printed once, or on each run while other news is still unacknowledged. If it says CLOSED, treat it as the row above.

News is repeated until it is acknowledged. The watcher does not move its baseline when it prints news, so a report nobody read comes back on the next run. As soon as the user has been told and the news is being handled, acknowledge it: pr_watch.py <owner/repo> --ack. Acknowledge early, not at the end of the fix: the acknowledgement covers exactly what was printed, so anything that arrives afterwards is still reported. Then start the watcher again, if any pull request is still open and the window is still open. Starting it without acknowledging makes it fire at once with the same news.

A change made by the user themselves (their own comment, their own push) is not news and does not stop the watcher.

Working hours

The reviewers work fixed hours, and after their day ends nothing will be reviewed until the next working day.

  • Review cut-off. A pull request, or a reply that needs a new review, sent after the cut-off in project.md will probably not come back the same day with time to fix it. When the cut-off is near, say so, and say what would have to be skipped to make it. After it, say plainly that the review is expected on the next working day; do not rush a change to beat the clock. A pull request waiting overnight is a long wait: propose the next piece of work (story-start, as far as its plan).
  • Watching window. The watcher does not run outside its window or on weekends. When it stops at the end of the window, tell the user what is still waiting and that watching resumes on the next working day.
  • Next working day. A background watcher does not survive the session. When work resumes, do one check first (--once): it compares with the last acknowledged baseline, so reviews that arrived overnight, and news printed yesterday that nobody acknowledged, are reported even though nothing was running.
python .claude/skills/pr-watch/scripts/pr_watch.py <owner/repo> --once

Stop

Stop the background command when the user asks, or when the last pull request is merged. Never leave it running after the watching window.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.