claude-desktop-extra: Skill for Claude Code

.claude/skills/fresh-upstream/SKILL.md

fresh-upstream is a skill for Claude Code from patrickjaja/claude-desktop-extra. It costs 83 tokens per session (1,082 once invoked), scanned C, original, MIT.

A procedure for obtaining and unpacking a clean, unmodified copy of the latest official Claude Desktop Linux package for patch analysis. It verifies the package using signed repository metadata, GPG, and SHA256 checksums.

In plain words
What is it for?
Use it to compare the tracked version with the latest release, download and verify the package, and extract its app.asar into the repository's temporary directory.
Why use it?
It gives developers a trustworthy upstream baseline for comparing patches, instead of comparing against a bundle that was already modified.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is patrickjaja/claude-desktop-extra's own configuration. It tells Claude Code how to work on claude-desktop-extra itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-desktop-extra configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is rm -rf ./tmp/extract ./tmp/app.asar.contents ./extract ./build/work 2>/dev/null || true.

Reuse

Borrowing it

Nothing to install: this file belongs to patrickjaja/claude-desktop-extra. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/patrickjaja/claude-desktop-extra/master/.claude/skills/fresh-upstream/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/patrickjaja/claude-desktop-extra

Made for: Claude Code.

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 fresh-upstream

README.md
[![agentmods](https://agentmods.dev/badge/skills/patrickjaja/claude-desktop-extra/fresh-upstream/github.svg)](https://agentmods.dev/skills/patrickjaja/claude-desktop-extra/fresh-upstream)
Your own site
<a href="https://agentmods.dev/skills/patrickjaja/claude-desktop-extra/fresh-upstream"><img src="https://agentmods.dev/badge/skills/patrickjaja/claude-desktop-extra/fresh-upstream/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 fresh-upstream

Your own site · 80×15
<a href="https://agentmods.dev/skills/patrickjaja/claude-desktop-extra/fresh-upstream"><img src="https://agentmods.dev/badge/skills/patrickjaja/claude-desktop-extra/fresh-upstream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,082 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 5
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 41
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Rogue Agent · line 5
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00083 $0.01082
Opus 5.5 $0.00033 $0.00433
Sonnet 5.5 $0.00017 $0.00216
Haiku 4.5 $0.00008 $0.00108

Measured 9d ago against content hash 506629a785b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

fresh-upstream scanned grade C with 1 finding 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 9d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

allowed-tools: Bash(rm -rf *), Bash(mkdir -p *), Bash(ar *), Bash(tar *), Bash(dpkg-deb *), Bash(asar *), Bash(node --check *), Bash(ls *), Bash(cat *), Bash(stat *), Bash(.github/scripts/apt-fetch-verify.sh *), Bash(sha
.claude/skills/fresh-upstream/SKILL.md · 69 lines

How it starts

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

Fresh upstream extract (clean, unpatched)

Goal: a pristine unpatched bundle in ./tmp/ so patch work compares against the true upstream. Run from the repo root. ./tmp/ is gitignored.

Critical: scripts/build-patched-tarball.sh runs apply_patches.py - its output is PATCHED. For a clean baseline use the manual fetch + asar flow below.

Steps

  1. cd to the repo and read tracked version:

    cd "$(git rev-parse --show-toplevel)"
    cat .upstream-version
    
  2. Resolve latest upstream version (GPG + SHA256-verified via the canonical fetcher):

    LATEST_VERSION=$(.github/scripts/apt-fetch-verify.sh poll)
    echo "upstream latest: $LATEST_VERSION"
    

    Report latest vs .upstream-version so the user sees whether this is a new version.

  3. Download + verify the official .deb if missing or stale. apt-fetch-verify.sh download resolves the highest amd64 version, downloads the .deb into ./tmp/, and verifies its SHA256 against the signed Packages index (which is itself verified against the GPG-signed Release):

    mkdir -p ./tmp
    DEB=$(.github/scripts/apt-fetch-verify.sh download amd64 ./tmp)
    echo "verified .deb: $DEB"
    

    (~150MB.) If the download or verification fails, stop and report - do NOT trust an unverified .deb.

  4. Wipe old extracted bundles (project-local only - never touch ~/.config/Claude):

    rm -rf ./tmp/extract ./tmp/app.asar.contents ./extract ./build/work 2>/dev/null || true
    

    Leave the freshly downloaded ./tmp/claude-desktop_*_amd64.deb in place and leave ./build/ packages alone unless the user asked for a full clean.

  5. Extract clean, unpatched to ./tmp/. Crack the .deb (dpkg-deb -x, or ar + tar if dpkg-deb is unavailable), then asar extract the app.asar:

    dpkg-deb -x "$DEB" ./tmp/extract
    asar extract ./tmp/extract/usr/lib/claude-desktop/resources/app.asar ./tmp/app.asar.contents
    
    • Unpatched main bundle: ./tmp/app.asar.contents/.vite/build/index.js
    • Renderer bundles: ./tmp/app.asar.contents/.vite/renderer/*/assets/*.js
    • ion-dist (3P-config SPA): packed as ./tmp/extract/usr/lib/claude-desktop/resources/ion-dist.asar since v4.29.0 (a plain ion-dist/ dir before); read it with asar extract ./tmp/extract/usr/lib/claude-desktop/resources/ion-dist.asar ./tmp/ion-dist
    • i18n: ./tmp/app.asar.contents/resources/i18n/*.json (inside app.asar since v4.29.0)

Read the full file on GitHub · 69 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. 9d ago Changed 506629a785b1
  2. 2mo ago First seen · 69 lines · 83 tokens per session scan C 427b57ac3b83

Subscribe to this mod's changes

fresh-upstream is a skill published in the GitHub repository patrickjaja/claude-desktop-extra (726 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 1,082 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

fresh-upstream compared with skills from other repositories

fresh-upstream next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fresh-upstreampatrickjaja/claude-desktop-extraSkill726yesterdayMITC83Claude Code
calibre-distill-topiccaelum29/calibre-mcpSkill24todayMITA160Claude Code
calibre-mcp-setupcaelum29/calibre-mcpSkill24todayMITA194Claude Code
calibre-study-notescaelum29/calibre-mcpSkill24todayMITA243Claude Code
sipcode-regressAnuj7411/sipcodeSkill4621d agoMITA105Claude Code
bastra-recalln0mad-ai/bastra-recallSkill122d agoMITA0Codex
bastra-recalln0mad-ai/bastra-recallSkill122d agoMITA50Codex