refresh-repo

refresh-repo is a skill for Claude Code from dryvist/claude-code-plugins. It costs 15 tokens per session (762 once invoked), scanned A, original, Apache-2.0.

A Git and GitHub check that reviews open pull requests and brings your local repository up to date with its default branch.

In plain words
What is it for?
Use it before merging or continuing work on a branch, especially when you have open pull requests.
Why use it?
It helps you see whether your changes can be merged and avoids working from an outdated copy of the code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the github-workflows plugin — 18 skills shipped together

Good fit Use it before merging or continuing work on a branch, especially when you have open pull requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dryvist/claude-code-plugins/refresh-repo
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dryvist/claude-code-plugins --skill refresh-repo
Clone the repo
git clone --depth 1 https://github.com/dryvist/claude-code-plugins

Made for: Claude Code.

Or install github-workflows, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for refresh-repo

README.md
[![agentmods](https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/refresh-repo/github.svg)](https://agentmods.dev/skills/dryvist/claude-code-plugins/refresh-repo)
Your own site
<a href="https://agentmods.dev/skills/dryvist/claude-code-plugins/refresh-repo"><img src="https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/refresh-repo/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for refresh-repo

Your own site · 80×15
<a href="https://agentmods.dev/skills/dryvist/claude-code-plugins/refresh-repo"><img src="https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/refresh-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 762 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00762
Opus 5.5 $0.00006 $0.00305
Sonnet 5.5 $0.00003 $0.00152
Haiku 4.5 $0.00002 $0.00076

Measured 1mo ago against content hash e8d8223bd4c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

refresh-repo scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

github-workflows/skills/refresh-repo/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Refresh

Check open PR merge-readiness and fast-forward the local default branch. For branch creation and PR-branch sync, follow the Git Town rule.

State warning: Branch state, remote tracking, and PR status change between invocations. Re-run all git and gh commands before reporting.

Steps

1. Identify open PRs

Always check for open PRs, regardless of the current branch.

gh pr view --json state,number,title 2>/dev/null
gh pr list --state open --limit 50 --json number,title,headRefName

2. Check merge readiness

For each open PR, run the canonical PR-readiness gate. It requires zero unaddressed items in the PR feedback ledger and every required status context reported. Name an absent context as required check never reported: <context> and see github-actions-silent-failures. Replace <OWNER>, <REPO>, and <PR_NUMBER> per the placeholder legend in that skill.

A PR is ready only when all of these conditions pass:

Field Required
state OPEN
mergeable MERGEABLE
mergeStateStatus CLEAN or HAS_HOOKS
isDraft false
reviewDecision APPROVED or null
statusCheckRollup.state SUCCESS
PR feedback ledger Zero unaddressed items
Required status-check contexts Every context reported
reviewThreads.isResolved true for every thread
reviewThreads.pageInfo.hasNextPage false

3. Fast-forward the local default branch

  1. Fetch origin without updating tags: git fetch origin --no-tags.
  2. Resolve the default branch from origin/HEAD; use gh-cli-patterns if it is not set.
  3. Find the worktree checked out to the local default branch with git worktree list --porcelain.
  4. If that worktree is clean, fast-forward it with git -C <path> merge --ff-only origin/<default>. If it is dirty, report that and skip it.
  5. If the local default branch is not checked out in any worktree, run git fetch origin <default>:<default>. This creates the local branch if needed and refuses non-fast-forward updates.
  6. If an update refuses, report git rev-list --left-right --count <default>...origin/<default> and skip. Do not force, reset, or rebase the local default branch.

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -73 lines · -49 tokens per session e8d8223bd4c2
  2. 1mo ago Changed · +6 lines 2b306c11d3e9
  3. 1mo ago Changed d6792e0bea3c
  4. 1mo ago Changed · +12 lines · +29 tokens per session badbe54e511e
  5. 2mo ago Changed dd6fc92d173d
  6. 3mo ago First seen · 132 lines · 35 tokens per session scan A f6cf14cd543e

Subscribe to this mod's changes

refresh-repo is a skill published in the GitHub repository dryvist/claude-code-plugins (3 stars, last pushed 14d ago), licensed Apache-2.0. It adds 15 tokens to every session and 762 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

refresh-repo compared with skills from other repositories

refresh-repo next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
refresh-repodryvist/claude-code-pluginsSkill314d agoApache-2.0A15Claude Code
nav-pilotqf-studio/navigatorSkill35814d agoMITA62Claude Code
core-workflowtravisjneuman/.claudeSkill115yesterdayMITA52Claude Code
debug-systematictravisjneuman/.claudeSkill115yesterdayMITA33Claude Code
auto-claudetravisjneuman/.claudeSkill115yesterdayMITA30Claude Code
agent-debugging-specialisttravisjneuman/.claudeSkill115yesterdayMITA12Claude Code
github-ops0xDarkMatter/claude-modsSkill866d agoMITA105Claude Code