← ClaudeAtlas

refresh-repolisted

Check PR merge readiness, sync local repo, cleanup stale worktrees; optional cross-repo sweep and stale-branch prune modes
JacobPEvans/claude-code-plugins · ★ 2 · AI & Automation · score 68
Install: claude install-skill JacobPEvans/claude-code-plugins
<!-- cspell:words refspec oneline headRefOid mergedAt --> # Git Refresh Check open PR merge-readiness status, sync the local repository, and cleanup stale worktrees. **Note**: Does not automatically merge PRs - only reports readiness status for each PR. > **State warning**: Branch state, remote tracking, and PR status change between > invocations. Re-run all git/gh commands from Step 1. ## Steps ### 1. Identify Open PRs **CRITICAL**: Always check for open PRs, regardless of current branch. ```bash # Check for PR from current branch gh pr view --json state,number,title 2>/dev/null # ALWAYS also check for any open PRs by the user gh pr list --author @me --state open --json number,title,headRefName ``` ### 2. Report Merge-Readiness Status For each open PR, **DO NOT MERGE** - only check and report. Run the **canonical PR-readiness gate** from /gh-cli-patterns. Replace `<OWNER>`, `<REPO>`, `<PR_NUMBER>` per the placeholder legend in that skill. **Merge-ready criteria** — all of the following must hold: | Field | Required | Status | |---|---|---| | `state` | `OPEN` | Not ready | | `mergeable` | `MERGEABLE` | Not ready | | `mergeStateStatus` | `CLEAN` or `HAS_HOOKS` | Not ready (`BEHIND`, `BLOCKED`, `DIRTY`, `UNSTABLE`, `UNKNOWN`, `DRAFT`) | | `isDraft` | `false` | Not ready | | `reviewDecision` | `APPROVED` or `null` | Not ready | | `statusCheckRollup.state` | `SUCCESS` | Not ready | | All `reviewThreads.isResolved` | `true` | Not ready — unresolved threads | | `review