Librechat-Mobile: Skill for Claude Code

.claude/skills/update-web-assets/SKILL.md

update-web-assets is a skill for Claude Code from garfiec/Librechat-Mobile. It costs 124 tokens per session (1,732 once invoked), scanned A, original, MIT.

A workflow for updating JavaScript libraries stored inside an app’s artifact, diagram, and math WebViews. A WebView is an embedded browser area; the workflow tracks each library version and a SHA-256 file checksum.

In plain words
What is it for?
Use it to inspect pinned web libraries, download approved versions from official sources, update their registry and lock files, and run verification checks.
Why use it?
It prevents quiet WebView failures caused by incompatible or incorrectly sourced scripts, including blank renderers or disabled features. It checks the stated reason for each version pin before changing it.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: 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 →

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/update-web-assets/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 update-web-assets

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/garfiec/librechat-mobile/update-web-assets"><img src="https://agentmods.dev/badge/skills/garfiec/librechat-mobile/update-web-assets.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,732 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.00124 $0.01732
Opus 5 $0.00062 $0.00866
Sonnet 5 $0.00025 $0.00346
Haiku 4.5 $0.00012 $0.00173

Measured 9d ago against content hash d4b987782e1c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

update-web-assets 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 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.

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/update-web-assets/SKILL.md · 139 lines

How it starts

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

Update vendored web assets

The artifact, diagram and math renderers are WebViews, and every script they execute ships inside the app. scripts/web-assets.json is the registry; scripts/vendor-web-assets.py moves the bytes; scripts/web-assets.lock.json records a sha256 per file and CI verifies it.

Read scripts/web-assets.json before doing anything. Every entry carries a pin_reason, and several of them are load-bearing rather than informational — two pins must NOT be moved to the newest version, and the reason is in the file, not in this skill.

What makes this different from a Gradle dependency bump

A wrong version here does not fail the build, fail a test, or throw anything Kotlin can catch. The failure happens inside the WebView, and the usual shape of it is a blank box or a feature that quietly stops working. Both libraries this system replaced were already broken that way before anyone noticed:

  • marked deleted its highlight option in v5. Passing one to setOptions is accepted and silently ignored, so syntax highlighting had been dead with no error anywhere.
  • highlight.js was being loaded from a URL that served CommonJS. In a browser <script> that throws immediately and never defines hljs.

So: the gates below prove the wiring is consistent, and only a device proves it renders. Do not report a bump as done on green gates alone.

Phase 0 — Establish what is stale

scripts/vendor-web-assets.py --check      # tree matches the lock (should be clean first)
scripts/vendor-web-assets.py --outdated   # what npm has that we don't
scripts/vendor-web-assets.py --list       # what each asset is for, and who uses it

--outdated prints each pin's pin_reason next to any version it reports. Read it. It is advisory output about a registry that has opinions.

If --check fails before you have changed anything, stop and report it — someone hand-edited a vendored file, or a repin was left half-applied. That is a finding to raise, not a precondition to quietly re-sync away.

Read the full file on GitHub · 139 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 First seen · 139 lines · 124 tokens per session scan A d4b987782e1c

Subscribe to this mod's changes

update-web-assets is a skill published in the GitHub repository garfiec/Librechat-Mobile (89 stars, last pushed yesterday), licensed MIT. It adds 124 tokens to every session and 1,732 once invoked, about $0.0006 per session on Opus 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.