refresh-repo

Synchronize a local Git repository and check open Pull Requests for merge readiness.

3|1|Updated Jan 1, 2026
One-click install
npx skills add https://github.com/JacobPEvans/claude-code-plugins --skill refresh-repo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refresh-repo
Source: https://github.com/JacobPEvans/claude-code-plugins/tree/main/git-workflows/skills/refresh-repo
Command: npx skills add https://github.com/JacobPEvans/claude-code-plugins --skill refresh-repo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) components.

What problem does it solve?

This Skill streamlines Git workflows by ensuring your local repository is up-to-date with remote changes, checking the readiness of open Pull Requests for merging, and cleaning up old worktrees.

Core Features & Use Cases

  • PR Readiness Check: Verifies if open Pull Requests meet merge criteria (checks passed, approved, etc.) without merging them.
  • Repository Synchronization: Fetches the latest changes, switches to the default branch, pulls updates, and prunes local branches that have been merged.
  • Worktree Management: Identifies and removes stale worktrees whose branches are no longer active or have been merged.
  • Use Case: Before starting new work, run this Skill to ensure your local main branch is current and to see which of your open PRs are ready to be merged, preventing merge conflicts and wasted effort.

Quick Start

Run the refresh-repo skill to synchronize your local repository and check your open pull requests.

Frequently Asked Questions about refresh-repo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync my local Git repository with remote changes and clean up merged branches?

To sync a local Git repository, you can fetch remote changes, update the default branch, and prune merged local branches. This keeps your local environment current and removes stale references to branches that have already been merged.

How can I check if a pull request is ready to merge without actually merging it?

You can check pull request readiness by assessing its mergeability, CI/CD status, and review decisions. This verifies if open PRs meet merge criteria like passing checks and approvals before you attempt to merge them.

What is the best way to clean up stale Git worktrees associated with deleted branches?

Cleaning up stale Git worktrees involves identifying and removing worktrees linked to branches that are no longer active or have been merged. This removes orphaned working directories and maintains a clean development environment.

Do I need the GitHub CLI installed to check PR merge readiness and sync my repo?

Yes, you need the GitHub CLI (gh) installed to check PR merge readiness and sync your repo. It provides the necessary API access to assess open pull requests, review decisions, and merge statuses directly from GitHub.

How does repository synchronization prepare my local environment for new development work?

Repository synchronization prepares your local environment for new development by fetching the latest remote changes and updating the default branch. This ensures your local main branch is current, preventing merge conflicts and wasted effort.