pr-status
Skill0 starsChanged 10 months agoMITView on GitHub
Analyze PR merge readiness and diagnose blockers — CI failures, review status, missing checks, bot error comments, merge conflicts, draft state. Use when user asks about PR status, why a PR can't merge, CI failures, merge blockers, check status, review status, GitHub Actions failures, missing checks, bot comments, or pastes a github.com/*/pull/* URL.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- amit-nayar/skillstheir own version, first seen Nov 29, 2026
- MrBogomips/skillstheir own version, first seen Nov 29, 2026
- vzhukovs/podman-desktop-kittheir own version, first seen Nov 1, 2026
- spalladino/claude-skillstheir own version, first seen Nov 1, 2026
- henrilhos/skillstheir own version, first seen Oct 17, 2026
- GustavoAlecio/claude-setuptheir own version, first seen Oct 16, 2026
Used with
Projects with it also use handoff.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- flurdy/agent-skills★ 10same name
- joris887/exosuit★ 9same name
- magnusrodseth/dotfiles★ 3same name
- henrilhos/skills★ 1same name
- MrBogomips/skills★ 1same name
- spalladino/claude-skills★ 1same name
- amit-nayar/skills★ 0same name
- GustavoAlecio/claude-setup★ 0same name
- vzhukovs/podman-desktop-kit★ 0same 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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- argocd-opsSkill
- codexSkill
- convergent-reviewSkill
- create-handoffSkill
- create-planSkill
- create-researchSkill
- init-ai-docsSkill
- init-central-docsSkill
- jiraSkill
- loki-debugSkill
- resume-handoffSkill
- tatari-turboliftSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Do NOT use python scripts/pr_status.py or python3 scripts/pr_status.py
- Very specific: line 34
Verify gh CLI is available and authenticated:
- Very specific: line 80
After running diagnose, use these commands for deeper investigation.
- Very specific: line 81
All subcommands accept PR URLs or --repo owner/repo for cross-repo context:
- Very specific: line 125
All subcommands accept --repo owner/repo or a full PR URL for cross-repo work:
- Very specific: line 135
Use --format json for machine-readable output (default is text):
- Distinctive: line 182
404: No branch protection configured (reported as info, not error)
“Common” is measured: kept by at least 6 in 10 of the 9 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
PR Status Analyzer
This skill diagnoses why a PR can't merge and reports actionable blockers.
Invocation
IMPORTANT: All scripts have shebangs and are executable. Always invoke directly:
scripts/pr_status.py <command>(correct)- Do NOT use
python scripts/pr_status.pyorpython3 scripts/pr_status.py
When to Use This Skill
- User pastes a GitHub PR URL (
github.com/owner/repo/pull/123) - User asks "why can't this merge", "check my PR", "PR status", "merge blockers"
- User asks about CI failures, workflow logs, Actions status
- User asks about review status, pending checks, missing checks
- User asks about bot comments or error messages on a PR
Prerequisites
Verify gh CLI is available and authenticated:
scripts/pr_status.py check-cliAuthentication and Account Switching
The check-cli command validates authentication and repo access. In interactive terminals, it detects access issues and prompts for account switching. In non-interactive environments, it displays an error with manual instructions.
Common authentication issues:
- Wrong account: Authenticated with personal account but repo is in organization
- Multiple accounts: Need to switch using
gh auth switch - Missing permissions: Need
gh auth refresh -s repofor branch protection access
Primary Workflow: Diagnose PR
The diagnose command is the main entry point. It runs all checks and produces a structured blocker report:
scripts/pr_status.py diagnose 123
scripts/pr_status.py diagnose https://github.com/org/repo/pull/456
scripts/pr_status.py diagnose # detect from current branchWhat Diagnose Covers
- Draft status — whether PR is marked as draft
- Merge state — CLEAN/DIRTY/BEHIND/BLOCKED/UNSTABLE/UNKNOWN with actionable message
- Review decision — APPROVED/CHANGES_REQUESTED/REVIEW_REQUIRED with reviewer names
- Unresolved review threads — count of unresolved conversations
- Stale approvals — approvals older than the latest push
- CI checks — pass/fail/pending counts, failing check names
- Missing required checks — required by branch protection but not present
- Bot comments — count and summary of bot comments mentioning errors
- Actionable next steps for each blocker found
Exit Codes
0— PR is ready to merge (no blockers)1— blockers found2— auth or runtime error
Drilling Into Specific Areas
After running diagnose, use these commands for deeper investigation.
All subcommands accept PR URLs or --repo owner/repo for cross-repo context:
CI Failures
# Get run IDs from failed checks
scripts/pr_status.py failed-runs https://github.com/org/repo/pull/123
# Analyze logs for a specific run (pass PR URL for cross-repo context)
scripts/pr_status.py analyze-logs 789012 https://github.com/org/repo/pull/123
# or: scripts/pr_status.py analyze-logs --repo org/repo 789012Review and Comment Context
# All comments and reviews
scripts/pr_status.py comments https://github.com/org/repo/pull/123
# Bot comments only (renovate[bot], dependabot[bot], etc.)
scripts/pr_status.py bot-comments https://github.com/org/repo/pull/123Check Details
# Full check results with required vs optional
scripts/pr_status.py checks https://github.com/org/repo/pull/123
# Branch protection required checks
scripts/pr_status.py required-checks https://github.com/org/repo/pull/123
# Compare required vs actual — find what's missing
scripts/pr_status.py missing-checks https://github.com/org/repo/pull/123PR Metadata
scripts/pr_status.py status https://github.com/org/repo/pull/123Cross-Repo Support
All subcommands accept --repo owner/repo or a full PR URL for cross-repo work:
scripts/pr_status.py diagnose --repo org/other-repo 42
scripts/pr_status.py checks --repo org/other-repo 42
scripts/pr_status.py diagnose https://github.com/org/other-repo/pull/42Output Formats
Use --format json for machine-readable output (default is text):
scripts/pr_status.py diagnose 123 --format jsonUtility Commands
# Verify gh auth and repo access
scripts/pr_status.py check-cli
# Detect GitHub repo from git remote
scripts/pr_status.py detect-repoStandalone Workflow Functions
For CI troubleshooting outside of PR context:
# Analyze a specific GitHub Actions run
scripts/pr_status.py analyze-logs <run-id>
# For runs in a different repo than CWD, pass repo context
scripts/pr_status.py analyze-logs <run-id> https://github.com/org/repo/pull/123
scripts/pr_status.py analyze-logs --repo org/repo <run-id>This downloads failed logs, filters GitHub Actions noise (group markers, action downloads, cache lines, progress indicators), extracts error annotations and test failure summaries, then truncates to 250 lines and pattern-matches common errors.
Error Handling
Rate Limiting
gh api rate_limitPrivate Repositories
gh auth refresh -s read:org,repoBranch Protection API Errors
- 404: No branch protection configured (reported as info, not error)
- 403: Insufficient token scope — fix with
gh auth refresh -s repo
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.

