vmark: Skill for Claude Code

.claude/skills/rust-tauri-backend/SKILL.md

rust-tauri-backend is a skill for Claude Code from xiaolai/vmark. It costs 76 tokens per session (896 once invoked), scanned A, original, ISC.

A set of project guidelines for changing the Rust backend of VMark, including its Tauri desktop-app integration. Rust is the programming language used for the backend, and Tauri connects it to the web-based interface.

In plain words
What is it for?
Use it when adding or changing Tauri commands, menus, filesystem integration, platform behavior, frontend-to-backend calls, or events in VMark.
Why use it?
It keeps backend changes consistent and ensures that commands, menus, file access, and operating-system behavior are connected correctly.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/check-cross-target.sh # when adding a tauri::test mock-runtime test.

Reuse

Borrowing it

Nothing to install: this file belongs to xiaolai/vmark. 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/xiaolai/vmark/main/.claude/skills/rust-tauri-backend/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/xiaolai/vmark

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 rust-tauri-backend

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaolai/vmark/rust-tauri-backend"><img src="https://agentmods.dev/badge/skills/xiaolai/vmark/rust-tauri-backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 896 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.00076 $0.00896
Opus 5.5 $0.00030 $0.00358
Sonnet 5.5 $0.00015 $0.00179
Haiku 4.5 $0.00008 $0.00090

Measured yesterday against content hash 656024956b12, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/list_commands.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/rust-tauri-backend/SKILL.md · 71 lines

How it starts

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

Rust + Tauri Backend (VMark)

VMark-specific conventions only; general Tauri v2 API questions go to the official docs (v2.tauri.app), not memory. The binding rules are in AGENTS.md and .claude/rules/50-codebase-conventions.md §10; this skill is the checklist that applies them.

Bridge direction

Direction Mechanism Frontend side
Webview → Rust invoke("name", args) → #[tauri::command] fn name src/services/ (never from src/utils/, which is leaf-pure)
Rust → webview app.emit() / window.emit() listen() in a hook or service, with cleanup on unmount
Menu → webview menu/events.rs emits menu:{id} generically a menu:{id} listener

Adding a command

  1. Put it in src-tauri/src/<feature>/commands.rs; register it in the all_commands! list in src-tauri/src/command_registry.rs. pnpm lint:ipc-contract fails on any invoke("x") without a registered x.
  2. Return Result<T, CommandError> (command_error.rs); user-facing messages use localized_error! with a key in all ten src-tauri/locales/*.yml (pnpm lint:command-errors). The frontend renders with commandErrorMessage, never String(e).
  3. A command that creates a window MUST be async (pnpm lint:window-thread; WebView2 deadlocks otherwise). Going async removes the serialization the blocking IPC loop gave you — re-check for check-then-act races.
  4. State lives in .manage() and is reached through State<'_, T>; no mutable static where an AppHandle can reach.
  5. Never a bare Command::new("tool"): use ai_provider::build_command() and ai_provider::login_shell_path().
  6. Use inline format args: format!("{variable}").
  • menu/localized.rs create_localized_menu is the single builder; labels go in src-tauri/locales/en.yml (then all locales).
  • Every menu item needs a real SF Symbol in MENU_ICONS (src-tauri/src/macos_menu_icons.rs).
  • Shortcut changes follow the three-file sync in .claude/rules/41-keyboard-shortcuts.md.

Read the full file on GitHub · 71 lines

Files

What ships with it

2 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. yesterday Changed · +51 lines · +38 tokens per session 656024956b12
  2. 2mo ago First seen · 20 lines · 38 tokens per session scan A b10f01fe3ec8

Subscribe to this mod's changes

rust-tauri-backend is a skill published in the GitHub repository xiaolai/vmark (878 stars, last pushed yesterday), licensed ISC. It adds 76 tokens to every session and 896 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-08-30.

Related

Other skills, from other repositories

rust-engineer

Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions. Implements ownership patterns, manages lifetimes, designs trait hierarchies, builds async applications with tokio, and structures error handling with Result/Option. Use when building Rust applications, solving ownership or…

Jeffallan/claude-skills · 120 tokens

azure-eventhub-rust

Azure Event Hubs library for Rust. Send and receive events for streaming data ingestion and batch processing. Triggers: "event hubs rust", "ProducerClient rust", "ConsumerClient rust", "send event rust", "streaming rust", "eventhub rust".

microsoft/skills · 58 tokens

apollo-router-plugin-creator

Guide for writing Apollo Router native Rust plugins. Use this skill when: (1) users want to create a new router plugin, (2) users want to add service hooks (routerservice, supergraphservice, executionservice, subgraphservice), (3) users want to modify an existing router plugin, (4) users need to understand router…

clidey/whodb · 116 tokens

azure-eventhub-rust

Client library for Azure Event Hubs — big data streaming platform and event ingestion service.

benjaminasterA/antigravity-awesome-skills · 0 tokens

rust-gateway

Add or change an HTTP route, extractor, response envelope, stream or router mount in the litellm-rust gateway crates (crates/gateway and crates/gateway-). Use when adding an endpoint, parsing a request body, choosing an error envelope for an API surface, relaying SSE, or writing a router-level test.

BerriAI/litellm · 70 tokens

cloudflare-workers-multi-lang

Multi-language Workers development with Rust, Python, and WebAssembly. Use when building Workers in languages other than JavaScript/TypeScript, or when integrating WASM modules for performance-critical code.

secondsky/claude-skills · 45 tokens