skills-update
Skill5 starsChanged 8 months agoMITView on GitHub
Refresh plugins previously installed by skills-toolkit by re-fetching their GitHub sources and presenting updated .plugin files to Cowork. Use when the user says "update my loaded skills", "refresh skills from github", "pull latest skills", "sync skills-toolkit plugins", "check for skill updates", or runs /skills-update. Identifies target plugins via the skills-toolkit keyword marker embedded in plugin.json — does not touch domain plugins or unrelated SkillsPlugin entries.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- louisbrulenaudet/monorepo-templatetheir own version, first seen Oct 2, 2026
- Mikefluff/skillstheir own version, first seen Aug 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Mikefluff/skills★ 21same name
- louisbrulenaudet/monorepo-template★ 18same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- detect-github-urlSkill
- skills-loadSkill
- skills-saveSkill
- skills-shareSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 3 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Every .plugin that /skills-load builds embeds its source URL in plugin.json.repository and tags itself with "skills-toolkit" in keywords.
- Very specific: line 69
If filter matches nothing: "No skills matched {args}.
- Very specific: line 88
If source.branch is empty (plugin installed before the provenance feature), call fetch-repo.sh with an empty second arg so it defaults to …
- Very specific: line 92
If a repo fails to fetch (404, private, network error), skip that plugin with a warning like: "Could not fetch {owner}/{repo}@{branch} — …
- Very specific: line 96
If more than 10 unique source pairs, warn about GitHub's 60/hour unauthenticated rate limit and mention GITHUB_TOKEN.
- Very specific: line 133
Look up (repository, source.branch, skill.name) in the fresh catalog.
- Very specific: line 146
Before showing the refresh plan, scan THIS conversation for ### LOADED SKILL: {name} markers.
- Very specific: line 155
If no markers exist, or no overlap with updated skills, skip the warning.
- Very specific: line 156
If ALL overlapping skills are unchanged, also skip (upstream didn't change them, nothing to overwrite).
- Distinctive: line 172
If Step 6.5 found overlapping skills, add a warning block BEFORE the confirmation prompt:
- Very specific: line 189
If user replies save-first: tell them to run /skills-save now and then re-run /skills-update afterward.
- Distinctive: line 193
If no overlap was detected in Step 6.5, show the standard confirmation:
- Very specific: line 198
If every skill across every plugin is unchanged and none are removed_upstream:
- Distinctive: line 309
If multiple plugins were rebuilt, presenting them together in a single call shows all previews at once.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Update Skills from GitHub
Re-fetch the GitHub sources for plugins previously installed by skills-toolkit, detect what changed, and rebuild each plugin with fresh content. Cowork's "Save plugin" flow replaces each installed plugin in-place.
How it works
Every .plugin that /skills-load builds embeds its source URL in
plugin.json.repository and tags itself with "skills-toolkit" in
keywords. This command scans all installed plugins for that marker, reads
the repository URL, re-clones, diffs each SKILL.md by SHA256, and rebuilds
the plugin with the same name — so Save plugin replaces the installed version.
Because the source URL lives inside the installed plugin itself, updates work
across session restarts, VM reboots, and conversation compaction. No
/skills-load rerun needed.
VM constraints
- Bash runs in an isolated Linux VM — use for discovery, cloning, and ZIP building.
- Write tool bridges to the HOST filesystem.
- Host paths like
~/AppData/...don't exist inside the VM.
Step 1: Discover installed skills-toolkit plugins
bash "${CLAUDE_PLUGIN_ROOT}/skills/skills-update/scripts/discover-installed-plugins.sh"Returns JSON array of {pluginName, repository, pluginRoot, manifestPath, keywords, skills: [{name, path, currentSha}]}.
If empty:
No skills-toolkit plugins found.
Run
/skills-load <github-url>to install skills first, then come back here to refresh them.
Then stop.
Step 2: Filter by arguments
Parse $ARGUMENTS:
- Empty or
--all→ keep all discovered plugins and skills - Skill names (space or comma separated) → filter each plugin's
skills[]to entries wherenamematches. Drop plugins with no matching skills.
If filter matches nothing: "No skills matched {args}. Found: {list of names}."
Step 3: Report the plan
Found {M} skills-toolkit plugins with {N} skills total. Re-fetching GitHub sources to check for updates…
Step 4: Re-fetch each unique source
Collect unique (repository, source.branch) pairs across all plugins —
different branches of the same repo need separate fetches. For each unique
pair, clone once and cache by that pair:
FETCH_JSON=$(bash "${CLAUDE_PLUGIN_ROOT}/skills/skills-update/scripts/fetch-repo.sh" "<repository>" "<source.branch>")
REPO_PATH=$(echo "$FETCH_JSON" | python3 -c "import json,sys; print(json.load(sys.stdin)['path'])")
FRESH_SHA=$(echo "$FETCH_JSON" | python3 -c "import json,sys; print(json.load(sys.stdin)['sha'])")If source.branch is empty (plugin installed before the provenance feature),
call fetch-repo.sh with an empty second arg so it defaults to the repo's
default branch — backward compatibility with older installs.
If a repo fails to fetch (404, private, network error), skip that plugin with
a warning like: "Could not fetch {owner}/{repo}@{branch} — skipping
{plugin-name}." Continue with the other plugins.
If more than 10 unique source pairs, warn about GitHub's 60/hour
unauthenticated rate limit and mention GITHUB_TOKEN.
Step 4.5: SHA fast-path check
For each plugin, compare source.sha from Step 1 (install-time SHA) against
FRESH_SHA from Step 4 (current upstream HEAD):
- Both non-empty AND equal → mark all skills in the plugin as
unchanged. Skip Step 5–6 for this plugin; jump to Step 7 for presentation. - Both non-empty AND different → upstream has commits; proceed to Step 5 for per-file diff.
source.shaempty (older plugin without provenance) → no short-circuit available; proceed to Step 5.FRESH_SHAempty (tarball fallback, no.git/) → no short-circuit; proceed to Step 5.
This saves a full file-by-file diff when nothing has actually shipped upstream — a common case on repeat refresh runs.
Step 5: Re-discover skills in each fresh clone
For each source pair that did NOT pass the Step 4.5 fast-path, run:
bash "${CLAUDE_PLUGIN_ROOT}/skills/skills-update/scripts/discover-skills.sh" "<fresh-repo-path>"Build a lookup keyed by (repo_url, branch, skill_name) — including branch
in the key so that two plugins loaded from the same repo but different
branches stay separate.
Step 6: Diff via SHA256
For each installed skill whose plugin did NOT fast-path in Step 4.5:
- Look up
(repository, source.branch, skill.name)in the fresh catalog. - Not found → status
removed_upstream. - Found → compute SHA256 of the fresh
SKILL.md, compare toskill.currentShafrom step 1.- Equal →
unchanged. - Differ →
updated. Optionally compute a brief line diff (added/removed counts) by reading both files for display.
- Equal →
Skills from fast-pathed plugins (Step 4.5) retain their unchanged status
set in that step.
Step 6.5: Check for conversation-loaded overlap
Before showing the refresh plan, scan THIS conversation for
### LOADED SKILL: {name} markers. Collect the marker skill names into a set.
For each skill in the refresh plan with status updated or removed_upstream,
check if its name appears in the conversation-marker set. Track any matches
as "overlapping" skills — these are skills the user loaded (and may have
iterated on) in this conversation that the upstream refresh is about to
overwrite.
If no markers exist, or no overlap with updated skills, skip the warning.
If ALL overlapping skills are unchanged, also skip (upstream didn't change
them, nothing to overwrite).
Step 7: Present the plan and confirm
Show a table grouped by plugin:
Refresh plan:
# Plugin Skill Status Δ lines 1 product-manager-skills roadmap-planning updated +12 −3 2 product-manager-skills discovery-process unchanged — 3 product-manager-skills competitive-analysis removed_upstream — 4 retros-toolkit team-retro updated +4 −1
If Step 6.5 found overlapping skills, add a warning block BEFORE the confirmation prompt:
Heads up — you have conversation-loaded versions of some of these skills:
Skill Refresh status Conversation state roadmap-planningupdated (+12 −3) loaded in this conversation competitive-analysisremoved_upstream loaded in this conversation Updating from upstream will replace the installed plugin. If you modified these skills during this conversation and want to keep those changes, run
/skills-savefirst.Proceed?
yes(take upstream) /save-first(run /skills-save, then re-run /skills-update) /cancel
If user replies save-first: tell them to run /skills-save now and then
re-run /skills-update afterward. Do not auto-chain — keep the commands
independent.
If no overlap was detected in Step 6.5, show the standard confirmation:
Refresh all updated? Reply
yes/all, pick by number (1, 4), ornoneto cancel.
If every skill across every plugin is unchanged and none are
removed_upstream:
All plugins up to date. Nothing to refresh.
Then stop.
For removed_upstream skills, ask a follow-up per-skill before building:
competitive-analysisno longer exists upstream indeanpeters/Product-Manager-Skills. Drop from the rebuilt plugin or keep the currently-installed version? (drop/keep)
Step 8: Rebuild per-plugin .plugin
For each plugin that needs a rebuild (has at least one refreshed or dropped
skill), build a new .plugin ZIP. Contents must include ALL of the plugin's
skills (Cowork's Save plugin REPLACES the entire plugin — omitting unchanged
skills would silently remove them):
updatedskills → use freshSKILL.md(+ any fresh supporting files) from the cloneunchangedskills → copy from the installed plugin's mount pathremoved_upstreamskills → include only if user saidkeep
Preserve the original plugin.json metadata (name, repository, keywords,
description, version) so the marker and source URL survive.
python3 << 'PYEOF'
import zipfile, json, os, re, glob
# ── Substitute these values from the /skills-update context ──
plugin_name = "<PLUGIN_NAME>" # e.g., "product-manager-skills"
manifest_json = '<MANIFEST_JSON>' # original plugin.json content as string
sources_json = '<SOURCES_JSON>' # JSON: [{"skillName":"...", "sourceDir":"/path/to/dir"}, ...]
# Cowork outputs dir lives at /sessions/<session>/mnt/outputs/ — discover it.
out_dirs = glob.glob('/sessions/*/mnt/outputs')
if not out_dirs:
raise RuntimeError("Cowork outputs dir not found - is this a Cowork VM session?")
out_dir = out_dirs[0]
out = os.path.join(out_dir, plugin_name + '.plugin')
sources = json.loads(sources_json)
with zipfile.ZipFile(out, 'w', zipfile.ZIP_DEFLATED) as zf:
zf.writestr('.claude-plugin/plugin.json', manifest_json)
for entry in sources:
skill_name = re.sub(r'[^a-zA-Z0-9_-]', '-', entry['skillName']).strip('-')
src = entry['sourceDir']
if not os.path.isdir(src):
continue
for root, dirs, files in os.walk(src):
for f in files:
fp = os.path.join(root, f)
arc = 'skills/' + skill_name + '/' + os.path.relpath(fp, src).replace('\\', '/')
if f == 'SKILL.md':
with open(fp, 'r', encoding='utf-8') as fh:
content = fh.read()
if len(content.encode('utf-8')) > 12800:
lines = content.split('\n')
fm_end = next((i for i in range(1, len(lines)) if lines[i].strip() == '---'), -1)
if fm_end > 0:
ds = next((i for i in range(1, fm_end) if lines[i].startswith('description')), -1)
if ds >= 0:
de = next((i for i in range(ds+1, fm_end) if lines[i] and not lines[i][0].isspace()), fm_end)
desc = '\n'.join(lines[ds:de])
trim = len(content.encode('utf-8')) - 12800 + 100
if len(desc) > trim + 80:
short = desc[:len(desc)-trim]
cut = short.rfind(' ')
if cut > 50: short = short[:cut]
lines = lines[:ds] + [short] + lines[de:]
content = '\n'.join(lines)
print(f' [!] Truncated {skill_name}/SKILL.md description to fit 12.8KB limit', flush=True)
zf.writestr(arc, content)
else:
zf.write(fp, arc)
print(out)
PYEOFSubstitute actual values into the <PLACEHOLDER> slots above. manifest_json
is the original plugin.json string (preserves repository URL and keywords for
future /skills-update runs). sources_json is a JSON-encoded array.
Step 9: Present each .plugin to Cowork
Load mcp__cowork__present_files via ToolSearch, then call it for each rebuilt
plugin. The files parameter is a list of objects with a single file_path
key — you can present multiple plugins in one call:
mcp__cowork__present_files(files=[
{"file_path": "<plugin-1-path>"},
{"file_path": "<plugin-2-path>"}
])Each path MUST be the Linux path printed by the Python script (under
/sessions/<session>/mnt/outputs/). Windows-style paths and /outputs/ paths
are rejected.
Tell the user what to click:
Plugin
{plugin-name}refreshed — {N} skills updated. Click "Save plugin" on the preview above. Cowork will prompt to replace the existing version.
If multiple plugins were rebuilt, presenting them together in a single call shows all previews at once.
Step 10: Inject updated content
For each refreshed skill, output the fresh SKILL.md body inline so it's
usable immediately, even before the user clicks Save plugin:
### LOADED SKILL: {skill-name} (updated)
**Source:** {owner}/{repo}
**Description:** {description}
{Full fresh SKILL.md body — do NOT truncate}
---Skip unchanged skills — they're already in context or in the installed
plugin.
Step 11: Report
Update summary:
Plugin Refreshed Dropped Click to install product-manager-skills roadmap-planning competitive-analysis Save plugin preview above retros-toolkit team-retro — Save plugin preview above Skills are active in this conversation immediately. Run
/skills-updateagain anytime to re-check.
Edge cases
- No skills-toolkit plugins installed: Friendly exit with a pointer
to
/skills-load. - Source repo deleted (404): Per-plugin warning, skip, continue with others.
- GitHub rate limit: In-run caching already dedupes repo fetches. If
still hitting the limit, suggest setting
GITHUB_TOKEN. - Plugin.json missing
repositoryfield (older version, pre-marker): Warn: "Plugin{name}has no repository URL — cannot refresh. Re-run/skills-load <url>to re-register it." - Skill renamed upstream: Treated as
removed_upstreamplus a "new" skill the user didn't ask for. For now, just surface asremoved_upstream— the user can re-run/skills-loadto pick up renames. - Dependencies auto-added in original load now dropped upstream:
Surfaces as
removed_upstream, user decides. - User declines in step 7: Exit without rebuilding. No Cowork state touched.
mcp__cowork__present_filesunavailable: Inline context injection still runs (updated skills usable immediately). Mention manual install path via Customize > Personal Plugin.- Multiple plugins, some fail to fetch: Finish the ones that worked, report failures in the summary table.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

