Agent skill

Watch PR

by parawanderer in parawanderer/OpenTagViewer

Watch a pushed PR's checks with the Monitor tool, and act on the verdict.

MITAuto-check passedSecurity

Install Watch PR

skills CLI
$ npx skills add parawanderer/OpenTagViewer --skill watch-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install parawanderer/OpenTagViewer watch-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/parawanderer/OpenTagViewer.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/watch-pr .claude/skills/watch-pr && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
watch-pr
GitHub stars
420
Token cost
~1.9k tokens
SKILL.md length
963 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Watch a pushed PR's checks with the Monitor tool, and act on the verdict.

  • Security work in your project
  • SKILL.md covers The trap this skill exists for, First check whether this PR…, Use gh pr view, not gh pr checks and The monitor, plus 2 more sections
  • Calls gh and git

What it does

Watch PR is an agent skill from parawanderer/OpenTagViewer. Watch a pushed PR's checks with the Monitor tool, and act on the verdict. Use after opening or pushing to a PR.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Security. The repository describes itself as: Track your AirTags, iDevices and other FindMy devices on Android. The licence is MIT.

When your agent uses it

  • Security work in your project

Example prompts

  • “/watch-pr”

What it can do on your machine

Read from SKILL.md and the folder at commit 335b258. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Watch PR loads about 1.9k tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 963 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from parawanderer/OpenTagViewer at commit 335b258, republished under its MIT licence (© parawanderer). 963 words, ~1,909 tokens.

Download SKILL.mdSave it as .claude/skills/watch-pr/SKILL.md (or your agent's skills folder).
name
watch-pr
description
Watch a pushed PR's checks with the Monitor tool, and act on the verdict. Use after opening or pushing to a PR.

Watching a PR through to a verdict

A pushed PR is not finished work. It is work awaiting a verdict that gh can read — so read it, and say what happened. Offer this every time a PR is pushed, unless told otherwise.

Arm a Monitor. Do not poll in a loop, and do not go idle waiting. The notification arrives on its own; keep working on the next thing in the meantime.

The trap this skill exists for

A monitor that emits nothing looks exactly like a monitor watching something that has not happened yet. Silence is not success. One was armed on PR #97 here, produced nothing for its whole lifetime, and exited 0 — and the PR's status was found by hand, while the monitor was still believed to be running.

So: run the poll body once in the foreground first, and see it print. One Bash call. If it prints nothing there, it will print nothing for the next half hour either.

bash
# Prove it emits BEFORE arming anything.
PR=99
gh pr view "$PR" --json statusCheckRollup --jq \
  '.statusCheckRollup[] | select(.status == "COMPLETED") | "\(.name): \(.conclusion)"'

First check whether this PR gets checks at all

An empty rollup is not "too early" — it may mean nothing will ever run.

bash
gh pr view <n> --json statusCheckRollup,baseRefName \
  --jq '{base: .baseRefName, checks: (.statusCheckRollup | length)}'

Two independent reasons it comes back zero, and the second one is invisible in the diff:

  • Path filters. Every workflow here is filtered (app/**, scripts/**, gradle/**, pyrightconfig.json, .flake8), so a PR touching only docs, .gitattributes, .claude/, or .github/ itself produces nothing.
  • A base that is not main. Every workflow is pull_request: branches: [ "main" ], so a stacked PR gets no checks whatsoever, however much application code it touches. This is the one that catches you out: the obvious test — "does the diff touch a filtered path?" — says yes, and still nothing runs. Seen on #105, which changed app/** heavily and had a rollup of zero because it was based on the branch of #104.

Zero either way? Do not arm a monitor. Say the change is not covered by CI and why, and let the human decide — that is more useful than a green tick would have been, because it names what is not being verified. For a stack, the choice is theirs: merge the base so GitHub retargets the child onto main, or retarget it now and accept the parent's commits showing in the diff.

Whichever they pick, local runs are the only evidence until then. Say what you ran, in numbers — ./gradlew :app:testEmulatorDebugAndroidTest and the pytest suites — rather than letting "no checks" read as "nothing to check".

Use gh pr view, not gh pr checks

gh pr checks sets its exit code from the checks themselves, so the usual s=$(gh pr checks …) || continue swallows the real answer and loops silently. gh pr view --json statusCheckRollup exits 0 whatever the checks say, which is what a poll loop needs.

Note the two fields differ: .status is the lifecycle (QUEUED, IN_PROGRESS, COMPLETED) and .conclusion is the verdict (SUCCESS, FAILURE, CANCELLED, SKIPPED). A check that has not finished has an empty conclusion, so filter on .status == "COMPLETED" and report .conclusion.

Show full SKILL.md (498 more words)Show less

The monitor

Emits one line per check as it lands, then one line when the run is over. Copy it as-is and change PR:

bash
cd 'c:\Users\shaneb\git\OpenTagViewer'
PR=99
seen=""
while true; do
  now=$(gh pr view "$PR" --json statusCheckRollup --jq \
        '.statusCheckRollup[] | select(.status == "COMPLETED") | "\(.name): \(.conclusion)"' 2>/dev/null | sort)
  comm -13 <(printf '%s\n' "$seen") <(printf '%s\n' "$now")
  seen="$now"
  total=$(gh pr view "$PR" --json statusCheckRollup --jq '.statusCheckRollup | length' 2>/dev/null)
  if [ "$total" = "0" ]; then
    echo "PR #$PR: NO CHECKS EXIST - nothing is verifying this. See the section above."
    break
  fi
  if [ "$(gh pr view "$PR" --json statusCheckRollup --jq \
          '[.statusCheckRollup[].status] | length > 0 and all(. == "COMPLETED")' 2>/dev/null)" = "true" ]; then
    echo "PR #$PR: all $total checks finished"
    break
  fi
  sleep 30
done

The zero case is checked separately, and that is not belt-and-braces. [] | all(...) is true in jq, so without it an empty rollup exits immediately announcing "all checks finished" — a monitor reporting success over a PR that ran nothing at all. That happened on #105.

timeout_ms: the emulator suite here takes several minutes and the whole run rarely exceeds 20, so 2700000 (45 min) is comfortable. persistent: false — it ends itself.

Why it is shaped this way:

  • comm -13 against the previous set reports each check once, as it finishes, rather than re-reporting the finished ones every 30 seconds.
  • printf '%s\n', not echo, so an empty seen is one empty line and comm behaves.
  • It reports failures as readily as successes. A filter matching only SUCCESS stays silent through a red build, and silence reads as "still running".
  • 2>/dev/null on the gh calls, but no || continue. A transient API failure yields an empty result and the loop tries again; it must not be able to exit quietly.
  • length > 0 and before the all, because all on an empty list is true. Without it the loop declares victory the instant the rollup is empty — which is exactly what a freshly pushed commit looks like before GitHub has created its runs, and what a fork PR waiting on "Approve and run" looks like indefinitely. It printed all checks finished for a PR with zero checks, one line after a push, and that reads identically to a green build.

A fork PR can sit at action_required forever, and that is not a failure state. GitHub gates workflow runs on PRs from forks, so gh run list shows completed / action_required and gh pr checks says "no checks reported". Nothing is wrong and nothing will happen until a maintainer approves:

bash
gh run list --limit 5 --json databaseId,headSha,conclusion \
  --jq '.[] | select(.conclusion=="action_required") | .databaseId'
gh api -X POST repos/<owner>/<repo>/actions/runs/<id>/approve

When it lands

  • Green — merge if that was asked for, otherwise say it is green and offer. gh pr merge <n> --merge --delete-branch. Then git fetch && git rebase origin/main on anything stacked on it.

  • Red — read the failing step and fix it. --log-failed refuses while a run is still going, so get the step list from the API first:

    bash
    gh pr checks <n>                                    # which job, and its URL
    gh api repos/parawanderer/OpenTagViewer/actions/jobs/<job-id> \
      --jq '.steps[] | "\(.conclusion // .status)\t\(.name)"'
    gh run view --job <job-id> --log-failed | tail -30   # once the run has finished

    Read the failure before assuming it is flaky. On #99 a red build was not CI noise: it was the repo type-checking against PyPI's FindMy while the app built a fork, which was a real defect the failure exposed.

  • Pushed a fix? Re-arm. A green run on the previous commit says nothing about this one.

  • AGENTS.md on gh — why an agent without it can only guess at a red build.
  • The memory notes propose-watching-a-pushed-pr (act on the one just pushed) and sweep-open-prs-read-only (look at all the others, and only look).

© parawanderer, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/watch-pr of parawanderer/OpenTagViewer.

Open the folder on GitHubat commit 335b258

Compare with similar skills

Watch PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Watch PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Watch PR this skillparawanderer/OpenTagViewer420—~1.9kAutomated safety check: PassMIT
Fla Ascend Performancefla-org/flash-linear-attention5.8k—~6.3kAutomated safety check: PassMIT
Deepsec Documentation Guidevercel-labs/deepsec8.1k—~956Automated safety check: PassApache-2.0
Skill Scannergetsentry/skills1k4 repos~2.5kAutomated safety check: WarnApache-2.0
Serenity Aleabitoreddityan-labs/serenity-aleabitoreddit4811 repos~3.3kAutomated safety check: PassNone
Security Alert Triageelastic/agent-skills5921 repos~3.5kAutomated safety check: NotesApache-2.0

Similar skills

  • Fla Ascend Performance

    fla-org/flash-linear-attention

    Guidelines for Ascend NPU kernel / Triton-Ascend backend performance work in the FLA repo.

    5.8k GitHub stars~6.3k tokensUpdated today
    SecurityAuto-check passed
  • Deepsec Documentation Guide

    vercel-labs/deepsec

    Official

    Points the agent at deepsec's own docs to answer questions about initializing, configuring, resuming, scanning with and extending the vulnerability scanner.

    8.1k GitHub stars~956 tokensUpdated 10 days ago
    SecurityAuto-check passed
  • Skill Scanner

    getsentry/skills

    Official

    Scan agent skills for security issues. An agent skill from getsentry/skills.

    1k GitHub starsUsed in 4 repos~2.5k tokens
    SecurityAuto-check: warnings
  • Serenity Aleabitoreddit

    yan-labs/serenity-aleabitoreddit

    Apply trader Serenity's (@aleabitoreddit) AI/semiconductor supply-chain analytical lens to US-stock ideas and market judgment.

    481 GitHub starsUsed in 1 repo~3.3k tokens
    SecurityAuto-check passed
  • Security Alert Triage

    elastic/agent-skills

    Official

    Triage Elastic Security alerts — gather context, classify threats, create cases, and acknowledge.

    592 GitHub starsUsed in 1 repo~3.5k tokens
    SecurityAuto-check: notes
  • Shiro Attack CLI

    SummerSec/ShiroAttack2

    当用户要求利用、检测或测试 Apache Shiro rememberMe 反序列化漏洞 (Shiro-550, CVE-2016-4437) 时使用。触发词包括 "Shiro"、"rememberMe"、"shiro attack"、"CVE-2016-4437"、"Shiro-550"、"爆破 Shiro key"、"利用 Shiro"、"Shiro…

    2.6k GitHub stars~945 tokensUpdated 4 mo ago
    SecurityAuto-check passed

More from parawanderer/OpenTagViewer

  • Add Strings

    parawanderer/OpenTagViewer

    Add or back-fill user-facing Android strings across all locales in OpenTagViewer.

    420 GitHub stars~1.2k tokensUpdated 20 days ago
    Auto-check passed
  • Device Screenshots

    parawanderer/OpenTagViewer

    Render app UI on the Gradle managed device and look at the result without spending a fortune in vision tokens.

    420 GitHub stars~1.4k tokensUpdated 20 days ago
    Auto-check passed
  • Investigating Bug Reports

    parawanderer/OpenTagViewer

    Read a GitHub bug report completely - every comment and every image - before diagnosing or asking the reporter for more.

    420 GitHub stars~1.7k tokensUpdated 20 days ago
    Auto-check passed
  • Watch Gradle Tests

    parawanderer/OpenTagViewer

    Watch a Gradle instrumented-test run to a verdict without hand-writing greps.

    420 GitHub stars~1.4k tokensUpdated 20 days ago
    Auto-check passed

Categories

Questions about Watch PR

What does Watch PR do?

Watch a pushed PR's checks with the Monitor tool, and act on the verdict. Watch PR is an agent skill from parawanderer/OpenTagViewer. Watch a pushed PR's checks with the Monitor tool, and act on the verdict.

When should I use Watch PR?

Watch PR fits situations like: security work in your project.

How do I install Watch PR in Claude Code?

Run `npx skills add parawanderer/OpenTagViewer --skill watch-pr -a claude-code`. Or copy the skill folder (.claude/skills/watch-pr in parawanderer/OpenTagViewer) into .claude/skills/watch-pr in your project. Claude Code loads it when a task matches its description.

How do I install Watch PR in Codex?

Run `npx skills add parawanderer/OpenTagViewer --skill watch-pr -a codex`. Or copy the skill folder (.claude/skills/watch-pr in parawanderer/OpenTagViewer) into .agents/skills/watch-pr in your project. Codex loads it when a task matches its description.

Can I use Watch PR in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add parawanderer/OpenTagViewer --skill watch-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/watch-pr, .gemini/skills/watch-pr, .github/skills/watch-pr and .opencode/skills/watch-pr in your project.

What does Watch PR need to run?

Going by SKILL.md and its folder, Watch PR needs the command-line tools its instructions call (gh and git).

Does Watch PR access the network?

SKILL.md contains no URLs. Its commands use gh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Watch PR safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Watch PR use?

Watch PR is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Watch PR use?

About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Watch PR?

Skills that share tags, products or a category with Watch PR: Fla Ascend Performance (fla-org/flash-linear-attention, 5.8k stars), Deepsec Documentation Guide (vercel-labs/deepsec, 8.1k stars), Skill Scanner (getsentry/skills, 1k stars) and Serenity Aleabitoreddit (yan-labs/serenity-aleabitoreddit, 481 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Watch PR?

parawanderer (a GitHub user) maintains it in parawanderer/OpenTagViewer, which has 420 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 19, 2026.

Source: parawanderer/OpenTagViewer on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.