monitor-pr
Skill13 starsChanged 37 days agoMITView on GitHub
Create or update a GitHub pull request, monitor CI and review feedback, inspect every thread and summary, fix valid findings, explain and resolve invalid findings, commit and push, and repeat until the current head is clean. Use when asked to open a PR and babysit reviews, watch a PR for comments, address automated or human review feedback, clear existing review threads, or keep fixing a PR until all required checks and reviews are resolved. Pause only when human input or access is genuinely required.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscode-team-kittheir own version, first seen Oct 27, 2026
- nexus-a1/claude-skillstheir own version, first seen Oct 17, 2026
- BabylonJS/Babylon.jstheir own version, first seen Oct 8, 2026
- caiopizzol/skillstheir own version, first seen Sep 28, 2026
- sageox/oxtheir own version, first seen Jun 11, 2026
- doc-detective/agent-toolstheir own version, first seen Apr 10, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- BabylonJS/Babylon.js★ 26ksame name
- sageox/ox★ 67same name
- microsoft/vscode-team-kit★ 65same name
- doc-detective/agent-tools★ 13same name
- caiopizzol/skills★ 3same name
- nexus-a1/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-avatarSkill
- agent-bringupSkill
- sageoxSkill
- agent-avatarSkill
- agent-bringupSkill
- monitor-prSkill
- sageoxSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. 0 are common, 17 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Read references/github-review-operations.md before the first GitHub mutation.
- Distinctive: line 18
Keep working while a safe, in-scope action can make progress.
- Distinctive: line 21
Treat an outdated thread as unresolved until its claim has been checked against the current code.
- Very specific: line 31
Read repository instructions.
- Distinctive: line 34
Do not create a PR from its target branch or detached HEAD.
- Distinctive: line 36
Run the repository's relevant tests and review the full diff.
- Distinctive: line 38
Verify GitHub authentication, push normally, then find the PR for the branch and create one if absent.
- Distinctive: line 65
Wait until required checks and expected reviewer lanes reach a terminal state for that SHA.
- Distinctive: line 67
Prefer a platform-native background monitor when one is available.
- Distinctive: line 70
Keep the user updated during a long watch.
- Distinctive: line 72
After checks and reviewers complete, take two unchanged snapshots separated by 30-60 seconds to catch late or edited feedback.
- Very specific: line 74
Read review threads, pull-request reviews, conversation comments, and check runs.
- Distinctive: line 99
Run focused tests for fixes, then the repository's required validation suite.
- Distinctive: line 101
Commit one coherent review round and push normally to the same branch.
- Distinctive: line 109
Treat validation and CI failures as findings.
- Distinctive: line 116
Keep iterating if the push produces new comments.
- Distinctive: line 129
Every required check passes.
- Distinctive: line 130
Every expected reviewer completed for the current head and reports no actionable finding.
- Distinctive: line 132
Every review thread is resolved, including outdated threads.
- Distinctive: line 133
No actionable pull-request review, summary, walkthrough, or conversation comment remains.
“Common” is measured: kept by at least 6 in 10 of the 6 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.
Files
Monitor PR
Own the selected pull request from its current state through a clean review result. Continue monitoring, fixing, testing, committing, pushing, replying, and resolving without an arbitrary iteration limit. Do not merge unless the user explicitly asks.
Read references/github-review-operations.md before the
first GitHub mutation. Use scripts/pr-review-state.sh for every full
review snapshot so inline threads and edited summary comments are never omitted.
Non-negotiable contract
- Keep working while a safe, in-scope action can make progress.
- Evaluate every finding on its merits. Never blanket-dismiss bot comments, nitpicks, or outdated threads.
- Treat an outdated thread as unresolved until its claim has been checked against the current code.
- Preserve unrelated user changes and repository conventions. Never force-push or rewrite history unless explicitly authorized.
- Fail closed: an unreadable or partial GitHub response is unknown state, never a clean result.
- Require only signals configured for this repository or named by the user. Do not require a particular review vendor merely because this skill knows about it.
- Prove every completion condition against the same current remote head SHA.
1. Preflight and create or find the PR
- Read repository instructions. Inspect
git status, the current branch, remotes, and the complete diff from the intended base. For an existing PR, use its actualbaseRefName; otherwise use the user-specified or repository-default branch. - Do not create a PR from its target branch or detached HEAD. Request input only when selecting a safe feature branch would change the user's intent.
- Run the repository's relevant tests and review the full diff. Commit only task-related changes with a repository-conforming message. Leave unrelated changes untouched.
- Verify GitHub authentication, push normally, then find the PR for the branch and create one if absent. Include a concise summary and test evidence.
- Record the PR number, URL, base, branch, and head SHA. Continue on the same PR for every round.
Invocation authorizes normal pushes to the scoped feature branch, PR creation or updates, review replies, and thread resolution. It does not authorize merging, closing, force-pushing, changing repository settings, or creating unrelated issues.
2. Establish the expected signals
Discover the completion requirements from branch protection, repository instructions, the user's request, and the PR's checks, reviews, comments, and history. Expected signals can include:
- Required CI checks and review approvals.
- Automated reviewers that are configured for the repository or have started on this PR.
- A reviewer explicitly named by the user, such as CodeRabbit, Greptile, or a human reviewer.
Match integrations across check names, app slugs, review authors, and comment authors; do not assume one exact login. Once an expected reviewer starts on a head, wait for it to finish and inspect its output. If an expected integration never appears after CI starts and several snapshots, use only an already-documented retrigger mechanism. If it is absent or inaccessible, request human input.
3. Monitor the current head
For each head SHA:
- Run
scripts/pr-review-state.sh <pr-number-or-url>. - Wait until required checks and expected reviewer lanes reach a terminal state for that SHA. A check or review attached only to an older commit is stale.
- Prefer a platform-native background monitor when one is available. Otherwise take snapshots in bounded intervals, normally no more often than every 60 seconds. Never hide an unbounded sleep loop inside one blocking shell call.
- Keep the user updated during a long watch. Do not return a final result while required work is pending.
- After checks and reviewers complete, take two unchanged snapshots separated by 30-60 seconds to catch late or edited feedback.
- Read review threads, pull-request reviews, conversation comments, and check runs. If any
commentsTruncatedvalue is true, fetch the remaining comments before classification.
Skipped or neutral checks are not failures unless repository rules make them required. Failed or cancelled required checks are unclean. API degradation is unknown, so keep monitoring.
4. Classify every finding
Maintain a ledger keyed by thread or stable comment ID. Include human feedback and every automated reviewer, not only the expected lanes. Classify each unresolved thread or actionable summary item:
valid: reproduce or trace the problem, make the smallest complete fix, and add or update regression coverage.already-fixed: verify the current code and the PR's own base, then reply with the evidence.incorrect: reply with concise code, test, or behavior evidence; do not make appeasement changes.out-of-scope: do not silently widen the PR. Link an existing tracking issue, or request authorization before creating one or expanding scope.needs-human: exhaust safe investigation, then state the exact decision and tradeoff required.
Deduplicate equivalent findings from multiple reviewers: fix once, then reply to and resolve each thread. Treat labels such as "nitpick" or "trivial" as severity hints, not dismissal rules. Treat summary or walkthrough comments as findings even when they do not create resolvable threads.
5. Validate, push, reply, and resolve
- Run focused tests for fixes, then the repository's required validation suite.
- Re-read the complete diff for scope, security, and accidental changes.
- Commit one coherent review round and push normally to the same branch.
- Reply to every handled inline finding with its disposition and pushed commit SHA or evidence, even if the reviewer auto-resolved the thread after the push.
- Resolve any handled thread that remains open, but only after its fix is pushed or its explanatory reply is posted. Include outdated threads.
- Re-run the state script, record the new remote head SHA, and return to monitoring. Every push invalidates the previous clean determination and can trigger new feedback.
Treat validation and CI failures as findings. Retry only infrastructure failures that are clearly transient and safely rerunnable; fix deterministic failures at their source.
Batch and stacked PRs
For a request to clear existing feedback rather than watch live, fetch and classify all current threads before editing, make one coherent fix round, reply and resolve in a batch, then re-fetch. Keep iterating if the push produces new comments.
For multiple dependent PRs, work from the lowest dependency upward. Determine each PR's own base, fix the finding in the layer that owns the code, and propagate it using the repository's documented stack workflow. Never assume a project-specific stack tool or fix the same defect independently in multiple layers.
Completion gate
Finish only when two stable snapshots prove all of these for one current remote head SHA:
- Local HEAD equals the PR's remote head and no task-related change is uncommitted. Report any preserved, unrelated working-tree changes.
- Every required check passes; skipped or neutral non-required checks do not block completion.
- Every expected reviewer completed for the current head and reports no actionable finding. An integration that is not configured is not required.
- Every review thread is resolved, including outdated threads.
- No actionable pull-request review, summary, walkthrough, or conversation comment remains.
- GitHub responses are complete and parseable, with no new or edited feedback between snapshots.
Report the PR URL, final head SHA, rounds completed, fixes made, tests run, intentionally declined or deferred findings, and final reviewer/check state. Do not merge unless separately requested.
Human-input gate
Pause only for an action or decision the agent cannot safely supply: missing GitHub access, an expected reviewer integration that is unavailable, interactive authentication, an unresolved product or security choice, conflicting mandatory requirements, authorization to expand scope or create a follow-up issue, or a destructive operation. State exactly what is blocked and resume the loop after the user answers; do not treat the pause as completion.
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
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.

