Follow a PR after you push it by polling for new review feedback, comments, CI state changes, and merge-readiness. Use when the user says "follow the PR", "watch this PR", "poll this PR", or wants the agent that opened a PR to keep tracking it until mergeable.
Use this skill after you create or update a pull request and want the same agent to keep watching it until it is mergeable or new action is required.
Turn PR-following into a polling loop with explicit activation criteria so the agent does not have to continuously re-derive whether anything changed.
The skill should:
300 seconds.Accept either:
OWNER/REPO PR_NUMBERhttps://github.com/OWNER/REPO/pull/123If the poll interval is not provided, default to 300 seconds.
By default, the wait script treats these as non-blocking for merge-ready detection:
Code CoverageKani proofsOverride with:
FOLLOW_PR_NONBLOCKING_CHECKS='Code Coverage,Kani proofs,Some Other Check'
./scripts/wait-for-pr-activity.sh OWNER/REPO PR_NUMBER --interval 300
The script writes state under:
/tmp/follow-pr/OWNER__REPO/pr-PR_NUMBER/
Artifacts:
snapshot.json: normalized current PR statecontext/: refreshed PR context bundle when activation occursThe script exits when one or more of these occurs:
merge_ready: PR is mergeable, has zero unresolved threads, and only non-blocking checks remain red/pendingblocking_checks_changed: a blocking CI failure appeared or changednew_comment: new top-level PR discussion commentnew_review: new PR review bodyunresolved_threads_changed: unresolved review thread set changedhead_changed: PR head SHA changedreview_requested: review decision became CHANGES_REQUESTEDpr_closed: PR merged or closedWhen the script exits, inspect the returned summary and act accordingly.
If the reason is:
merge_ready: report that clearly to the user. Do not merge without explicit permission.blocking_checks_changed: inspect the failing check logs and fix the issue if appropriate.new_comment, new_review, unresolved_threads_changed, or review_requested: use the refreshed context bundle in context/ and address the feedback.head_changed: re-read the PR head state before making edits. If someone else advanced the branch, integrate that state instead of assuming your old local context is still valid.pr_closed: stop following it.After you push fixes or finish triage, run the wait script again.
/skill follow-the-pr strawgate/memagent 1776 300
Expected behavior: