Librechat-Mobile: Skill for Claude Code

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

sync-upstream is a skill for Claude Code from garfiec/Librechat-Mobile. It costs 89 tokens per session (4,282 once invoked), scanned A, original, Apache-2.0.

A workflow for synchronizing a Switchboard client with a newer official LibreChat server version. LibreChat is an open-source chat application, and the workflow supports stable releases, release candidates, or a partial sync to an untagged development commit.

In plain words
What is it for?
Use it to choose an upstream target, inspect differences, apply the sync, run consistency and build checks, review the changes, and prepare for device testing before pushing.
Why use it?
It structures a risky upstream update around discovery, human decisions, implementation checks, review, testing, and a separate push decision. It also audits the previous sync when the client already matches the requested target.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

This is garfiec/Librechat-Mobile's own configuration. It tells Claude Code how to work on Librechat-Mobile 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 Librechat-Mobile configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is > ../.claude/sync-upstream/artifacts/contract-diff.patch.

Reuse

Borrowing it

Nothing to install: this file belongs to garfiec/Librechat-Mobile. 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/garfiec/Librechat-Mobile/develop/.claude/skills/sync-upstream/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/garfiec/Librechat-Mobile

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/garfiec/librechat-mobile/sync-upstream/github.svg)](https://agentmods.dev/skills/garfiec/librechat-mobile/sync-upstream)
Your own site
<a href="https://agentmods.dev/skills/garfiec/librechat-mobile/sync-upstream"><img src="https://agentmods.dev/badge/skills/garfiec/librechat-mobile/sync-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 sync-upstream

Your own site · 80×15
<a href="https://agentmods.dev/skills/garfiec/librechat-mobile/sync-upstream"><img src="https://agentmods.dev/badge/skills/garfiec/librechat-mobile/sync-upstream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,282 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00089 $0.04282
Opus 5.5 $0.00036 $0.01713
Sonnet 5.5 $0.00018 $0.00856
Haiku 4.5 $0.00009 $0.00428

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

Security

Grade A, and why

sync-upstream 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 3d 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/sync-upstream/SKILL.md · 275 lines

How it starts

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

Sync Upstream

Synchronize the Switchboard app with a newer version of the official LibreChat server.

You are the coordinator. You run the lightweight deterministic work yourself with Bash (prereqs, target/mode resolution, final consistency asserts) and own the three human decision points. All heavy parallel work is delegated to two dynamic workflows — you never read or write app code yourself.

[you]  0. Prereqs + resolve target + detect mode          (Bash — fail loud on ambiguity)
  │
[WF1]  1. sync-upstream-discovery   — parallel multi-angle sweep → converged findings
  │
[you]  2. HITL INTERVIEW            — the one real gate: target + scope + direction   (AskUserQuestion)
  │
[WF2]  3. sync-upstream-implement   — implement → build+consistency gates → ≥2 independent review passes
  │
[you]  4. TEST + PUSH TAIL          — present test plan, facilitate device testing, hold the push gate

Two workflows do the work; you hold the seams. A workflow cannot pause to ask the user — that is exactly why the target choice, the proposal approval, and the no-push/device-test boundary live in your main loop between invocations, never inside a script.

Two modes

Resolve these before anything else (Phase 0), because they change the whole run:

Mode Trigger Goal Version bookkeeping
sync resolved target commit ≠ current pin absorb new upstream changes advances (version.properties, UPSTREAM_VERSION, submodule, commit map)
audit resolved target commit == current pin (or audit in $ARGUMENTS) re-check that the LAST synced delta was fully/correctly absorbed — find misses none — the pin does not move

Audit's default range is the last synced delta (previous pin → current pin), recovered from UPSTREAM_VERSION's own git history. --full widens it to full-pin reconciliation.

Target Modes (sync)

Mode Target looks like backendTargetVersion UPSTREAM_VERSION Gating strategy
release v0.8.8 (default: latest stable tag) 0.8.8 tag=v0.8.8, commit=<tag commit> isCompatibleOrNewer(version, "0.8.8-rc1")
rc v0.8.8-rc1 0.8.8-rc1 tag=v0.8.8-rc1, commit=<tag commit> isCompatibleOrNewer(version, "0.8.8-rc1")
partial dev, main, or a SHA <base>+dev.<sha8> tag=<last v-tag at/before commit>, commit=<target SHA> supportsFeature(detected, "<next-rc-line>", landedDate)

Read the full file on GitHub · 275 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago Changed · +13 lines 52962610dc64
  2. 25d ago Changed · +28 lines 174030602ecc
  3. 1mo ago Changed 0944ba2c627b
  4. 2mo ago First seen · 234 lines · 89 tokens per session scan A 4dc411212ded

Subscribe to this mod's changes

sync-upstream is a skill published in the GitHub repository garfiec/Librechat-Mobile (146 stars, last pushed yesterday), licensed Apache-2.0. It adds 89 tokens to every session and 4,282 once invoked, about $0.0004 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-30.

Related

sync-upstream compared with skills from other repositories

sync-upstream next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sync-upstreamgarfiec/Librechat-MobileSkill146yesterdayApache-2.0A89Claude Code
publish-siteNousResearch/hermes-agentSkill261kyesterdayMITA19Claude Code, Codex
codexNousResearch/hermes-agentSkill261kyesterdayMITA17Claude Code, Codex
code-reviewasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A230Claude Code
batchasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A30Claude Code
githubasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A19Claude Code, Codex
gitasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A163Claude Code