plugin-refresh

plugin-refresh is a skill for Claude Code from kvdm-co-pilot/create-cmp. It costs 183 tokens per session (1,399 once invoked), scanned A, original, MIT.

A command-line skill that refreshes an installed Claude Code plugin from its marketplace and checks the actual files loaded by running sessions.

In plain words
What is it for?
Use it after publishing a plugin release, when a skill appears outdated, or when you need to check for stale installations without changing anything.
Why use it?
A version number can look current while cached or separately installed files are still old. It helps identify whether each session is using the expected plugin contents.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/plugin-refresh.mjs --check # is it stale? changes nothing.

Part of the create-cmp plugin — 18 skills, 4 agents, 3 hooks, 1 MCP server shipped together

Good fit Use it after publishing a plugin release, when a skill appears outdated, or when you need to check for stale installations without changing anything.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/kvdm-co-pilot/create-cmp
agentmods
npx agentmods add skills/kvdm-co-pilot/create-cmp/plugin-refresh

Made for: Claude Code.

Or install create-cmp, the plugin that ships this one along with the rest of its 18 skills, 4 agents, 3 hooks, 1 MCP server.

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 plugin-refresh

README.md
[![agentmods](https://agentmods.dev/badge/skills/kvdm-co-pilot/create-cmp/plugin-refresh/github.svg)](https://agentmods.dev/skills/kvdm-co-pilot/create-cmp/plugin-refresh)
Your own site
<a href="https://agentmods.dev/skills/kvdm-co-pilot/create-cmp/plugin-refresh"><img src="https://agentmods.dev/badge/skills/kvdm-co-pilot/create-cmp/plugin-refresh/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 plugin-refresh

Your own site · 80×15
<a href="https://agentmods.dev/skills/kvdm-co-pilot/create-cmp/plugin-refresh"><img src="https://agentmods.dev/badge/skills/kvdm-co-pilot/create-cmp/plugin-refresh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 183 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,399 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.00183 $0.01399
Opus 5.5 $0.00073 $0.00560
Sonnet 5.5 $0.00037 $0.00280
Haiku 4.5 $0.00018 $0.00140

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

Security

Grade A, and why

plugin-refresh 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 2mo 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.

.claude/skills/plugin-refresh/SKILL.md · 101 lines

How it starts

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

plugin-refresh — refresh the plugin, and prove it by content

node scripts/plugin-refresh.mjs is the whole procedure. This file is not a copy of it.

node scripts/plugin-refresh.mjs --check     # is it stale? changes nothing
node scripts/plugin-refresh.mjs             # refresh, then prove it
node scripts/plugin-refresh.mjs --dry-run   # print the plan, write nothing

--check also runs at SessionStart, as one line under the proof schedule. If that line says current, there is nothing to do here — and it says current only when the bytes at every scope's installPath (from installed_plugins.json) match the marketplace clone at HEAD, in both directions. A matching version number or a sha that exists is not enough.

A refresh takes the documented path first — claude plugin marketplace update, then claude plugin update for each scope — and reads the result back from installed_plugins.json (version, installPath) and the bytes. Only if that leaves it stale (the update refuses a version number that did not move) does it rebuild the cache directory itself. /reload-plugins is then yours to type in each session it names.

Why a program and not a checklist

Every step of this has a failure mode that reports success. Measured on this machine over two days, all four at once:

  • /reload-plugins re-reads disk. It never refetches from GitHub, and will happily rebuild a cache directory out of a clone 56 commits stale.
  • The cache is keyed by version. If a stale snapshot already declares the new number, the reinstall records the new sha and reuses the directory holding the old bytes.
  • installed_plugins.json holds one entry per scope. Updating the one you thought about leaves the other behind — and the one that serves is not necessarily the one you expect. A local entry was found pinned to a version whose sha no longer existed, rebased away.
  • The version number, the plugin count, and the reload's own "N skills" line are all blind to every one of the above.

Read the full file on GitHub · 101 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. 2mo ago Changed · +18 lines · -11 tokens per session 90df6c5a1ab1
  2. 2mo ago Changed · +2 lines · +37 tokens per session dee56ba1ed64
  3. 2mo ago First seen · 81 lines · 157 tokens per session scan A 21809b4eab3f

Subscribe to this mod's changes

plugin-refresh is a skill published in the GitHub repository kvdm-co-pilot/create-cmp (0 stars, last pushed 7d ago), licensed MIT. It adds 183 tokens to every session and 1,399 once invoked, about $0.0007 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-09-10.

Related

plugin-refresh compared with skills from other repositories

plugin-refresh next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plugin-refreshkvdm-co-pilot/create-cmpSkill07d agoMITA183Claude Code
debugging-instrumentsTalissonVitorino/kmp-ios-skillsSkill1618d agoMITA221Claude Code, Codex
swift-concurrencyTalissonVitorino/kmp-ios-skillsSkill1618d agoMITA133Claude Code, Codex
error-handling-resultTalissonVitorino/kmp-ios-skillsSkill1618d agoMITA141Claude Code, Codex
kmp-loggingTalissonVitorino/kmp-ios-skillsSkill1618d agoMITA143Claude Code, Codex
perfetto-trace-analysisTalissonVitorino/kmp-ios-skillsSkill1618d agoMITA84Claude Code, Codex
r8-analyzerTalissonVitorino/kmp-ios-skillsSkill1618d agoMITA60Claude Code, Codex