wait-for-pr

wait-for-pr is a skill for Claude Code, Codex from dburkart/auto-engineer. It costs 53 tokens per session (1,237 once invoked), scanned A, original, BSD-3-Clause.

A pull-request status helper that waits for GitHub Actions checks and review-bot feedback after a pull request is opened or updated, then combines the results into one report.

In plain words
What is it for?
Use it after creating a pull request or pushing a new commit to its branch. It reports completed, failed, skipped, cancelled, or still-blocked checks and review feedback together.
Why use it?
It removes the need to repeatedly check whether automated tests, builds, and review comments have finished. It also flags checks that need manual approval.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/dburkart/auto-engineer/wait-for-pr
Any agent
npx skills add dburkart/auto-engineer --skill wait-for-pr
Clone the repo
git clone --depth 1 https://github.com/dburkart/auto-engineer

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 wait-for-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/dburkart/auto-engineer/wait-for-pr.svg)](https://agentmods.dev/skills/dburkart/auto-engineer/wait-for-pr)
Your own site
<a href="https://agentmods.dev/skills/dburkart/auto-engineer/wait-for-pr"><img src="https://agentmods.dev/badge/skills/dburkart/auto-engineer/wait-for-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,237 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00053 $0.01237
Opus 5 $0.00026 $0.00619
Sonnet 5 $0.00011 $0.00247
Haiku 4.5 $0.00005 $0.00124

Measured 5d ago against content hash c83dfced2ed2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wait-for-pr 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 5d 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.

.claude/skills/wait-for-pr/SKILL.md · 127 lines

How it starts

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

wait-for-pr

Read docs/agent-playbooks/pr-review.md first for repo-level CI readiness and review-classification rules.

This skill keeps only the Claude-specific wait loop and automation needed to turn shared review rules into a single consolidated PR-status report.

When to invoke

  • Immediately after gh pr create / mcp__github__create_pull_request returns a PR URL.
  • After pushing a follow-up commit to a PR branch (re-enter the loop to confirm green).
  • When the user says "wait for CI," "check the PR," or similar.

Identifying the PR

If the PR number isn't already known from the preceding tool call:

gh pr list --head "$(git branch --show-current)" --json number,url --jq '.[0]'

Record the number and URL; reuse them for every poll tick.

What "done" means

The PR isn't ready for a summary until all are true:

  1. Every GitHub Actions check is in a terminal state: success, failure, skipped, cancelled, neutral, timed_out, or stale. Nothing in_progress, queued, or pending.
  2. No check is sitting in action_required waiting on manual approval (flag it and stop — the user needs to act).
  3. At least one review-bot comment / review exists, or 30 minutes have elapsed since the PR opened (bots may not be wired up; don't block forever).

Poll cadence

Use ScheduleWakeup between ticks. Tune delaySeconds to stay friendly to the 5-minute prompt-cache TTL:

Elapsed since PR opened delaySeconds
0–10 min 120
10–30 min 180 (still under the 270 s cache window)
30 min+ (waiting only on slow bots) 1200

Never pick 300 s — it's the worst of both worlds (cache miss with no payoff). Under 10 minutes, stay ≤ 270 s.

Each poll tick

  1. Check CI state:

    gh pr checks <PR> --json name,state,bucket,link
    

    or mcp__github__get_pull_request_status.

  2. Count review-bot activity:

    gh api "repos/dburkart/auto-engineer/issues/<PR>/comments" \
      --jq '[.[] | select(.user.login | test(""))] | length'
    

    Also fetch formal reviews via mcp__github__get_pull_request_reviews.

Read the full file on GitHub · 127 lines

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. 5d ago First seen · 127 lines · 53 tokens per session scan A c83dfced2ed2

Subscribe to this mod's changes

wait-for-pr is a skill published in the GitHub repository dburkart/auto-engineer (5 stars, last pushed 4mo ago), licensed BSD-3-Clause. It adds 53 tokens to every session and 1,237 once invoked, about $0.0003 per session on Opus 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-08-31.

Related

Other skills, from other repositories

systematic-debugging

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

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens