lov-optimize-tauri-backend

lov-optimize-tauri-backend is a skill for Claude Code from lovstudio/skills. It costs 71 tokens per session (3,017 once invoked), scanned A, original, MIT.

A guide for structuring the Rust backend of Tauri 2 desktop apps, including the boundary between the frontend and native code.

In plain words
What is it for?
Use it to split backend code into modules, keep Tauri commands small and typed, improve development scripts, and recover state after restarts.
Why use it?
It helps reduce disruptive Rust restarts, oversized backend files, scattered command calls, and fragile long-running communication during development.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Codex.

Part of the dev-tools plugin — 122 skills shipped together

Good fit Use it to split backend code into modules, keep Tauri commands small and typed, improve development scripts, and recover state after restarts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lovstudio/skills/optimize-tauri-backend
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lovstudio/skills --skill optimize-tauri-backend
Clone the repo
git clone --depth 1 https://github.com/lovstudio/skills

Made for: Claude Code.

Or install dev-tools, the plugin that ships this one along with the rest of its 122 skills.

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 lov-optimize-tauri-backend

README.md
[![agentmods](https://agentmods.dev/badge/skills/lovstudio/skills/optimize-tauri-backend/github.svg)](https://agentmods.dev/skills/lovstudio/skills/optimize-tauri-backend)
Your own site
<a href="https://agentmods.dev/skills/lovstudio/skills/optimize-tauri-backend"><img src="https://agentmods.dev/badge/skills/lovstudio/skills/optimize-tauri-backend/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 lov-optimize-tauri-backend

Your own site · 80×15
<a href="https://agentmods.dev/skills/lovstudio/skills/optimize-tauri-backend"><img src="https://agentmods.dev/badge/skills/lovstudio/skills/optimize-tauri-backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,017 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.00071 $0.03017
Opus 5.5 $0.00028 $0.01207
Sonnet 5.5 $0.00014 $0.00603
Haiku 4.5 $0.00007 $0.00302

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

Security

Grade A, and why

lov-optimize-tauri-backend 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 13d 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.

skills/optimize-tauri-backend/SKILL.md · 372 lines

How it starts

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

Tauri 后端调优 · Tauri Backend Tuner

Use this skill to turn a growing Tauri backend into a smaller, more stable, more pleasant development surface. The goal is not magical Rust HMR. The goal is to reduce how often Rust changes are needed, make Rust restarts less disruptive, and keep the Tauri command boundary small, typed, and auditable.

Triggers

Activate when

  • “lib.rs 太大”“commands 太多”“降低到 100 个以内”“Tauri 后端优化”
  • "optimize-tauri-backend", "Tauri backend refactor", "Tauri dev reload", or a question about Tauri hot reload and Rust-side restarts.
  • The user is developing with pnpm tauri dev / npm run tauri dev and Rust file changes keep closing and reopening the app.
  • src-tauri/src/lib.rs has become a God file.
  • The app exposes 100+ or 200+ #[tauri::command] functions.
  • Frontend code scatters raw invoke("command_name") strings across many components.
  • Long-running invoke / Channel calls cause stale callback warnings after reload or HMR.
  • The user wants backend modularization, command consolidation, better dev scripts, or restart-state recovery.

Do not activate when

  • The issue is frontend-only Vite/React HMR with no Rust or Tauri backend change.
  • A running app is slow, drains battery, or grows memory: use lov-app-optimizer.
  • The request is only to move frontend reads onto a shared query cache: use lov-install-tanstack-query.
  • Release builds, signing, or auto update: use lov-app-release or lov-app-delta-updater.

Skill Group Composition

Read references/skill-composition.md before routing to or extending an adjacent Skill.

Core Position

State this clearly when asked about hot reload:

Surface Dev behavior
Frontend Vite / React real HMR
Rust / Tauri backend recompile + restart native process
Best optimization separate stable Tauri shell from volatile domain logic, then make restarts cheap

Do not promise Rust backend HMR inside Tauri. Tauri's Rust-side "hot reload" means watch, rebuild, and restart.

Read the full file on GitHub · 372 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. 13d ago Changed 8e60caecc1af
  2. 1mo ago Changed · +23 lines · -54 tokens per session 7f24af375bc8
  3. 2mo ago Changed 057c8cbd4b37
  4. 2mo ago Changed 8d861345bdbe
  5. 3mo ago First seen · 349 lines · 125 tokens per session scan A 0bc90e87f472

Subscribe to this mod's changes

lov-optimize-tauri-backend is a skill published in the GitHub repository lovstudio/skills (72 stars, last pushed today), licensed MIT. It adds 71 tokens to every session and 3,017 once invoked, about $0.0003 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-09-03.

Related

lov-optimize-tauri-backend compared with skills from other repositories

lov-optimize-tauri-backend next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lov-optimize-tauri-backendlovstudio/skillsSkill72todayMITA71Claude Code
agents-sdkfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A19Claude Code
opendesk-supportfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A98Claude Code
remote-mcpfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A127Claude Code
app-authfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A125Claude Code
cloudflare-deployfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A55Claude Code
gateway-workersfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A37Claude Code