← ClaudeAtlas

gh-pr-triagelisted

Survey open PRs — yours, assigned, and review-requested — grouped by what action is needed. Outputs a table with a concrete next-action suggestion per PR.
seansmithworks/agent-skills · ★ 0 · AI & Automation · score 76
Install: claude install-skill seansmithworks/agent-skills
# PR Triage Survey open PRs and surface what needs action. Three buckets: your PRs waiting on something, PRs waiting on your review, and stale PRs that need a decision. Triggered by: `/gh-pr-triage`, "pr triage", "triage prs", "review my prs", "what prs need attention". Requires `gh` CLI authenticated. ## Steps ### 1. Gather open PRs Run in parallel: ```bash gh pr list --author @me --state open --json number,title,url,isDraft,mergeable,reviewDecision,statusCheckRollup,updatedAt,baseRefName gh pr list --search "review-requested:@me state:open" --json number,title,url,author,isDraft,reviewDecision,statusCheckRollup,updatedAt ``` Deduplicate (a PR you authored may also be review-requested to you). ### 2. Classify each PR For each PR, determine: - **CI status** — passing / failing / pending / none - **Review state** — approved / changes-requested / awaiting-review / none - **Mergeability** — mergeable / conflicts / unknown - **Staleness** — last updated date; flag if >14 days with no activity - **Draft** — drafts go in a separate bucket, lower priority ### 3. Group into buckets **Your PRs — needs action:** PRs you authored where something is blocking: CI failing, conflicts, reviewer requested changes, or approved and ready to merge. **Waiting on your review:** PRs where you're a requested reviewer and haven't submitted a review yet. **Stale (>14 days, no activity):** PRs from either bucket with no updates in 14+ days. These need a decision: push, ping, or close. *