/release-ops:pr-waitfrom release-ops
Wait for GitHub PR CI checks to complete, then optionally merge
Ships in release-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Monitor GitHub PR CI checks and wait for them to complete. Optionally auto-merge when all checks pass.
/pr-wait <pr_number> [auto_merge] [max_wait_minutes] [check_interval]
# Monitor PR #172 (manual merge)
/pr-wait 172
# Monitor and auto-merge PR #172
/pr-wait 172 true
# Wait up to 30 minutes, check every 90 seconds
/pr-wait 172 false 30 90
# Auto-merge with custom timing
/pr-wait 172 true 15 45
auto_merge=false: Reports final status and exitsauto_merge=true: Merges PR and optionally deletes branchFIRST: Check if the first argument is --help, -h, or help. If so, display usage and exit:
pr-wait - Monitor GitHub PR CI checks and optionally auto-merge
Usage:
/pr-wait <pr_number> [auto_merge] [max_wait_minutes] [check_interval]
/pr-wait --help
Arguments:
pr_number GitHub PR number to monitor (required)
auto_merge Auto-merge after checks pass: true|false (default: false)
max_wait_minutes Maximum wait time in minutes (default: 20)
check_interval Seconds between status checks (default: 60)
Examples:
# Monitor PR (manual merge)
/pr-wait 123
# Monitor and auto-merge
/pr-wait 123 true
# Custom timing: 30 min max, check every 90s
/pr-wait 123 false 30 90
# Auto-merge with custom timing
/pr-wait 123 true 15 45
Features:
⏱️ Configurable check interval (default: 60s)
⏰ Timeout protection (default: 20 minutes)
🤖 Auto-merge option (squash + delete branch)
📊 Real-time progress with timestamps
✅ Success validation (won't merge if checks fail)
Then exit immediately without running any checks.
Validate that pr_number is provided and is numeric.
gh pr view <pr_number> --json state,headRefOid (exit with a clear error if the PR doesn't exist or isn't OPEN).gh pr checks <pr_number> --json name,state,bucket. bucket is one of pass, fail, pending, skipping, cancel (per gh pr checks --help). Do not read gh pr view --json statusCheckRollup and test status: legacy commit-status entries (StatusContext) carry only state and return status: null, so they look pending forever.gh pr checks exits with code 8 while checks are pending (documented in gh pr checks --help). That is "still running", not a failure — don't abort the poll on it.sleep <check_interval>max_wait_minutes * 60 / check_interval iterationsbucket is pendingpending:
pass or skipping. Any fail or cancel = failed.auto_merge=true and all checks passed:
gh pr merge <pr_number> --squash --delete-branch --match-head-commit <headRefOid> — --match-head-commit makes gh refuse the merge if someone pushed after the checks you watched ran.gh pr view <pr_number> --json state --jq .state → MERGEDMonitoring PR #172 CI checks...
Check interval: 60s | Max wait: 20 minutes | Auto-merge: enabled
=== Initial Status ===
✅ Build and Test: pass
⏳ E2E Tests: pending
⏳ Lighthouse CI: pending
[1] 09:50:00 - 2 checks still running:
⏳ E2E Tests
⏳ Lighthouse CI
[2] 09:51:00 - 1 check still running:
⏳ Lighthouse CI
[3] 09:52:00 - All checks complete!
=== Final Status ===
✅ Build and Test: pass
✅ E2E Tests: pass
✅ Lighthouse CI: pass
🎉 All checks passed! Merging PR #172...
✅ PR #172 merged and branch deleted successfully!
--match-head-commit: report the gh error and re-run /pr-wait on the new head instead of merging--admin to get past failing or pending checksstatusCheckRollup and checking only status — commit-status entries have state, not status, so they look permanently pending. Use bucket from gh pr checks --json.8 from gh pr checks as a failure.--match-head-commit, which can merge a commit whose checks never ran.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub stylusnexus/agent-plugins --plugin release-ops10 skills in this plugin
/customer-support-triageSupport inbox workflow for a small team - classify each request (bug, feature request, billing, how-to), attempt reproduction, assign severity, file a standard GitHub issue with no customer PII, check refund requests against the written policy, and draft the reply for a human to send. Use when triaging support email or tickets, or when asked to "handle this support request", "file this bug", or "draft a reply to this customer"./dependency-upgradeSafe batch dependency upgrades across a codebase — inventory outdated packages (npm outdated / uv lock --upgrade), group by risk (patch/minor/major), upgrade in waves with tsc/test/Playwright gates, read changelogs for majors, run `exposure-scan` for supply-chain checks, and land one PR per wave. Use when asked to "upgrade dependencies," "bump packages," "clear npm outdated," or on a periodic maintenance pass./incident-responseProduction incident runbook for a small team - severity call, fixed triage order, rollback-first decision, user comms, and a one-page blameless postmortem. Use when a service is down, erroring, or degraded in production, e.g. "site is down", "we're getting 500s", "uptime alert fired", "users report errors", "was it the last deploy?", "roll back", or "write the postmortem".Other plugins' skills for the same job