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 165 tokens per session (2,576 once invoked), scanned A, original, Apache-2.0.

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 165 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,576 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.00165 $0.02576
Opus 5.5 $0.00066 $0.01030
Sonnet 5.5 $0.00033 $0.00515
Haiku 4.5 $0.00016 $0.00258

Measured 3d ago against content hash 766e0dd46da1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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/update-web-assets/SKILL.md · 175 lines

How it starts

The opening of the file, as written. The whole thing — 175 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 · 175 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. 3d ago Changed · +34 lines · +41 tokens per session 766e0dd46da1
  2. 18d ago Changed · +2 lines 66e7e9560b25
  3. 1mo ago Changed 735ec8ae2f25
  4. 2mo 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 (146 stars, last pushed yesterday), licensed Apache-2.0. It adds 165 tokens to every session and 2,576 once invoked, about $0.0007 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

update-web-assets compared with skills from other repositories

update-web-assets next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
update-web-assetsgarfiec/Librechat-MobileSkill146yesterdayApache-2.0A165Claude Code
human-reviewIrtezaAsadRizvi/claude-human-reviewSkill146mo agononeA83Claude Code
dcf-modelNousResearch/hermes-agentSkill261kyesterdayMITA14Claude Code, Codex
hermes-agent-skill-authoringNousResearch/hermes-agentSkill261kyesterdayMITA22Claude Code, Codex
grounded-citationsNousResearch/hermes-agentSkill261kyesterdayMITA16Claude Code, Codex
systematic-debuggingNousResearch/hermes-agentSkill261kyesterdayMITA16Claude Code, Codex
openhandsNousResearch/hermes-agentSkill261kyesterdayMITA19Claude Code, Codex