update
Skill657 starsChanged 59 days agoMITView on GitHub
For claude-desktop-extra - handle a new upstream Claude Desktop version end-to-end: build, fix failing patches, diff old vs new JS for new platform gates, audit feature flags + ion-dist + platform gates, update baseline docs + CHANGELOG, bump .upstream-version, then commit.
- Deletes or force-pushes
41 other projects use a version of this.
Adopted by
Most recently taken up by
- onetapstudiogames/1f3d9-citylifetheir own version, first seen Oct 7, 2026
- t0ddharris/compound-marketingtheir own version, first seen Oct 5, 2026
- egregore-labs/egregoretheir own version, first seen Oct 1, 2026
- conorbronsdon/agent-context-ostheir own version, first seen Sep 30, 2026
- gonimar/claude-web-studiotheir own version, first seen Sep 27, 2026
- ashe-li/agent-skillstheir own version, first seen Sep 23, 2026
Used with
Projects with it also use create, install and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SprintsAISkillcreate
Create a new task in the workspace default stack. Use to add work items directly from Claude Code.
Also in 3 projects that use this
thesmartSkillinstall
Detects the user's OS and available package managers, then runs the correct install, uninstall, search, or list command. Use this skill whenever the user asks to install, remove, update, or search for a package or CLI tool — even if they don't name a specific package manager. Also activate when the user says things like "I need ffmpeg", "get me node 20", "remove postgres", "what package managers do I have", or "how do I install X on this machine".
Also in 3 projects that use this
tombelieberSkillbackup
Manage Claude Code backups — sync config and sessions, list/restore sessions, check status. Use when the user asks about backups, restoring sessions, or migrating their Claude environment.
Also in 3 projects that use this
MicrosoftSkillhelp
Entry point for the MedImageInsight plugin, covering the getting-started walkthrough, how the skills work, what MI2 is, and troubleshooting.
Also in 5 projects that use this
kv0906Skillinbox
Quick capture mode (with content) or batch processing mode (no content). GTD-style routing of inbox items to proper folders. Use "/inbox thought to capture" or "/inbox" to process.
Also in 3 projects that use this
nicodianskSkillwrap
Use when ending a session, taking a break, or context is getting full. Captures session state, decisions, and generates a resume prompt for the next session. Critical for multi-session continuity.
Also in 3 projects that use this
Other versions41 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 41
- anthropics/knowledge-work-plugins★ 26ksame name
- Q00/ouroboros★ 6.2ksame name
- vellum-ai/vellum-assistant★ 1.4ksame name
- egregore-labs/egregore★ 291same name
- akseolabs-seo/AK-Threads-booster★ 274same name
- kv0906/pm-kit★ 138same name
- k1p1l0/claude-telegram-supercharged★ 128same name
- buildomator/buildomator★ 90same name
- crisandrews/ClawCode★ 63same name
- rlajous/claude-code-commands★ 30same name
31 more not listed
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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 3pSkill
- architectureSkill
- auditSkill
- commentSkill
- debugSkill
- deploySkill
- fresh-upstreamSkill
- linuxSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 3 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 39 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Run from the repo root. The official Linux .deb is remotely managed and re-minifies every release.
- Distinctive: line 13
Use sequential thinking and delegate independent analysis (diff, flag audit, ion-dist, platform gates) to parallel sub-agents where useful.
- Very specific: line 21
Use grep -a on extracted bundles.
- Very specific: line 34
Run the build for this OS (Arch here).
- Distinctive: line 41
If patches fail (upstream renamed identifiers / refactored / removed a feature):
- Very specific: line 79
Read baseline/CLAUDE_FEATURE_FLAGS.md.
- Very specific: line 83
Check enable_local_agent_mode.nim's override list still covers the cowork/code flags and its Zod schema includes them.
- Very specific: line 93
Read baseline/ION.md. ion-dist is in the .deb's resources, not inside app.asar:
- Very specific: line 104
Read baseline/PLATFORM_GATE_BASELINE.md first.
- Distinctive: line 116
Update only what changed:
- Very specific: line 128
Always re-extract fresh if ./tmp is stale (different minified names -> wrong conclusions).
“Common” is measured: kept by at least 6 in 10 of the 39 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Update to a new upstream Claude Desktop version
When to run this: normally you don't. CI auto-releases new upstream versions (version-check.yml dispatches build-and-release.yml; green run = released + .upstream-version bumped + tracking issue closed). Run this skill when the auto-release failed (a comment on the "new version detected" issue links the failed run) or when you want a deep audit of a bump. On a patch failure, decide FIRST: did the re-minify just move the anchor (fix the regex), or did upstream natively implement what we patch (remove the patch - the expected direction, since Anthropic maintains 1p Linux support)?
Run from the repo root. The official Linux .deb is remotely managed and re-minifies every release; patches use [\w$]+ wildcards on stable string anchors. Step 1 runs /fresh-upstream for a clean extract; Step 9 ends with /deploy to release. $ARGUMENTS may name a target version.
Use sequential thinking and delegate independent analysis (diff, flag audit, ion-dist, platform gates) to parallel sub-agents where useful; you coordinate and edit.
Search rules (apply to every step)
- The main bundle is code-split since v1.19367.0:
index.jsis a loader stub, the code lives inindex.chunk-<hash>.jssiblings (hashes change every release) +index.pre.js. For any "search the bundle" command, use a concatenation per side:B=./tmp/app.asar.contents/.vite/build cat $B/index.pre.js $B/index.js $B/index*.chunk-*.js > ./tmp/new-bundle.js # same for the OLD extract -> ./tmp/old-bundle.js - Use
grep -aon extracted bundles.rg -a --no-ignoresilently fails on them (raw NUL bytes); a zero-hitrgis not evidence. - Match JS identifiers with
[\w$]+, never bare\w+- minified names contain$(F$e,$S) and\w+silently misses them. - Since v1.12603.0 the bundle embeds two copies of
@anthropic-ai/claude-agent-sdk(grep -ao 'CLAUDE_AGENT_SDK_VERSION="[0-9.]*"' ./tmp/new-bundle.js | sort | uniq -c). A pattern on SDK-internal code matches twice: decide explicitly whether to patch both copies and assert the count.
Step 0 - clean slate
cd "$(git rev-parse --show-toplevel)"
git status # must be clean before starting
rm -rf build/ extract/ # old artifactsNote current .upstream-version. If you're here because the auto-release failed, read the failed run's log first - it names exactly which patch (and which sub-patch counter) failed.
Step 1 - build & fix patches
Run the build for this OS (Arch here). It auto-downloads the latest official .deb, applies patches, packages:
./scripts/build-local.sh
# Ubuntu/Debian: SKIP_SMOKE_TEST=1 ./scripts/build-ubuntu-local.sh
# Fedora/RHEL: ./scripts/build-fedora-local.sh
# Specific version / local .deb: --version 1.17282.0 | --deb /path/to/claude-desktop_amd64.debIf patches fail (upstream renamed identifiers / refactored / removed a feature):
- Get a clean unpatched extract (run
/fresh-upstream, or it's already in./tmp/app.asar.contents/.vite/build/)../scripts/validate-patches.sh ./tmp/app.asar.contentsruns every patch against it and lists the failures. - For each failing patch, find the new pattern with
grep -ao '.{0,50}anchor.{0,50}', then fixpatches/<group>/<name>.nimwith capture/replace, reusing the captured names:
Edit the# BAD - hardcoded minified names break on the next release let pattern = re2"function pTe\(\)\{const t=ce\.screen\.getPrimaryDisplay\(\)" # GOOD - wildcard + capture, rebuild from the captured groups let pattern = re2"(function [\w$]+\(\)\{const t=)([\w$]+)(\.screen\.)getPrimaryDisplay\(\)".jsinjs/for Computer Use / cowork-font and otherstaticReadpatches, thentouchthe.nim(the Makefile tracks most but not allstaticReaddeps). - Recompile + test one patch against the stub+chunks concatenation (what the orchestrator stages):
The staged concatenation never passescd patches && make <patch_name> && cd .. B=./tmp/app.asar.contents/.vite/build { cat $B/index.js; for c in $B/index.chunk-*.js; do printf '\n/*__CDB_SPLIT__%s__*/\n' "$(basename $c)"; cat "$c"; done; } > ./tmp/test-index.js patches/<group>/<patch_name> ./tmp/test-index.js; echo "exit=$?"node --checkas a whole; the per-chunknode --checkin the build is authoritative. A syntax error there means the patch replaced only part of a construct. - Re-run the build until all patches pass. Every sub-patch must succeed or
quit(1)- never[WARN]+continue. If a feature was upstreamed, remove the patch (git rm, bumpEXPECTED_PATCH_COUNTinscripts/apply_patches.py). The absorption probe (scripts/check-upstream-absorbed.py, run by the build) flags ABSORBED/PARTIAL patches: audit that upstream ships the same behavior on Linux, then remove. FAILED means re-fit, not remove. See AGENTS.md Rules 4/6.
Step 2 - Linux-compat analysis (new gates?)
Diff old vs new for newly darwin/win32-gated features that need Linux support (OLD/NEW = the two concatenations from the search rules):
diff <(grep -aoE '.{0,40}process\.platform.{0,40}' "$OLD"|sort -u) <(grep -aoE '.{0,40}process\.platform.{0,40}' "$NEW"|sort -u)
diff <(grep -aoE '.{0,80}status:"unavailable".{0,80}' "$OLD"|sort -u) <(grep -aoE '.{0,80}status:"unavailable".{0,80}' "$NEW"|sort -u)
diff <(grep -aoE 'require\("[^"]+"\)' "$OLD"|sort -u) <(grep -aoE 'require\("[^"]+"\)' "$NEW"|sort -u) # new native modules -> need x86_64+aarch64Validate any new input/screenshot feature across all 5 session types (X11, wlroots, GNOME, KDE, XWayland).
Step 3 - diff old vs new JS
diff <(cd ./tmp/app.asar.contents-OLD && find . -type f | sed 's/-[A-Za-z0-9_-]\{8\}\.js$/.js/' | sort) \
<(cd ./tmp/app.asar.contents && find . -type f | sed 's/-[A-Za-z0-9_-]\{8\}\.js$/.js/' | sort) # new/removed files
diff <(grep -aoE 'handle\("[^"]+"' "$OLD"|sort -u) <(grep -aoE 'handle\("[^"]+"' "$NEW"|sort -u) # IPC handlersAlso skim Claude Code / Cowork subsystem changes. Classify each finding: rename-only (no action) / new feature (may need a Linux patch) / changed behavior (existing patches may break) / removed (clean up patches/docs).
Step 4 - feature-flag audit
Read baseline/CLAUDE_FEATURE_FLAGS.md. Find the new static-registry function name (changes every release; anchor on a known flag like ccdPlugins). Diff flag sets:
diff <(grep -aoE '[\w$]+\("[0-9]{6,}"\)' "$OLD"|sort -u) <(grep -aoE '[\w$]+\("[0-9]{6,}"\)' "$NEW"|sort -u)Check enable_local_agent_mode.nim's override list still covers the cowork/code flags and its Zod schema includes them. Update the doc + version-history table.
Also refresh the flag catalog in js/growthbook_overrides.js (TEMPLATE): it lists every store-consulted flag of the audited version, commented out. Extract IDs with rg -o '[\w$]+(?:\.[\w$]+)*\("([0-9]{6,10})"[,)]' -r '$1' <new-bundle-concat> | sort -u, drop the IDs force-rewritten by patches (rg -oI '"[0-9]{6,10}"' patches/*/*.nim, minus IDs only mentioned in comments), and update descriptions + the version stamp in the header. Then regenerate the browsable copy and rebuild the binary:
bash scripts/check-jsonc-template-sync.sh --write # updates docs/claude-desktop-extra.jsonc
touch patches/core/add_growthbook_overrides.nim && (cd patches && make)CI runs scripts/check-jsonc-template-sync.sh (no --write) and fails if the docs catalog drifts from the shipped template.
Step 5 - ion-dist SPA audit
Read baseline/ION.md. ion-dist is in the .deb's resources, not inside app.asar:
ION=./tmp/extract/usr/lib/claude-desktop/resources/ion-dist
ls "$ION/index.html" && du -sh "$ION" && find "$ION" -name '*.js' | wc -l # vs baseline: big swing = refactor
grep -l 'org-plugins' "$ION/assets/v1/"*.js # config chunk (hash changes every release)
grep -aoE 'mountPath:\{.{0,200}\}' "$ION/assets/v1/"*.js # a linux key here = maybe upstreamed
grep -aoE '/Library/Application Support.{0,60}|%ProgramFiles%.{0,60}' "$ION/assets/v1/"*.jsfix_ion_dist_linux.nim finds its target by content signature, not filename. Update ION.md / the patch if anything moved.
Step 6 - platform-gate re-audit
Read baseline/PLATFORM_GATE_BASELINE.md first; only gates that don't map to an existing row matter.
for p in darwin win32 linux; do echo "$p: $(grep -ao "platform===\"$p\"" "$NEW" | wc -l)"; done # vs baseline counts
grep -aoE '.{0,60}process\.platform==="(darwin|win32)".{0,80}' "$NEW" | sort -u
grep -aoE '.{0,80}!=="darwin".{0,40}!=="win32".{0,80}' "$NEW" | sort -uClassify each: PATCHED (maps to a patch) / NATIVE (real Apple/Win API) / STUB (disabled on all platforms) / PORTABLE (mac/win-only, no native dep, not patched - the only actionable class). Verify before reporting: trace every PORTABLE candidate yourself and quote the verbatim snippet; past sub-agent audits hallucinated removed features and fake UUIDs. Update the baseline's Last audited, counts and rows.
Step 7 - Cowork backend
Cowork runs on the .deb's bundled native VM backend (cowork-linux-helper + virtiofsd + smol-bin + QEMU/OVMF; requires /dev/kvm). Nothing to update on a bump.
Step 8 - docs
Update only what changed:
CHANGELOG.md- add the new entry (one##section per day, newest at top; informative not a debug log).baseline/CLAUDE_FEATURE_FLAGS.md,CLAUDE_BUILT_IN_MCP.md(checkregisterInternalMcpServercalls),ION.md,PLATFORM_GATE_BASELINE.md- if their tracked internals moved.docs/patches.mdpatch tables - if patches added/removed/changed; the README's summary carries the per-directory counts. Do NOT touch README install-command version numbers (CI updates those viased; manual edits cause merge conflicts).
Step 9 - bump .upstream-version (required) + commit
echo "<NEW_VERSION>" > .upstream-version # closes the "new version detected" issue, greens the README badgeThen commit + push to master directly, only when the user says to. After merge, release with /deploy (or /deploy force for patch-only changes where upstream version didn't move).
Guardrails
- Always re-extract fresh if
./tmpis stale (different minified names -> wrong conclusions). - A green build with all patches applied + docs synced +
.upstream-versionbumped is "done". Don't claim done with failing patches.
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.

