Skip to content
Agent Orchestration
Skill

/rust-tauri-backend

Implement or modify VMark's Rust/Tauri v2 backend and its frontend bridge - Tauri commands, invoke/emit/listen IPC, menu items and accelerators, Tauri plugins and capabilities, windows, filesystem and platform behaviour in src-tauri. Use for any change under src-tauri/ or to a

From plugin
vmark
91810 skills6 agents7 commands1 MCP

Claude Code

$ npx -y skills add xiaolai/vmark --skill rust-tauri-backend --agent claude-code

SKILL.md

rust-tauri-backend.SKILL.md
name: rust-tauri-backend
description: Implement or modify VMark's Rust/Tauri v2 backend and its frontend bridge - Tauri commands, invoke/emit/listen IPC, menu items and accelerators, Tauri plugins and capabilities, windows, filesystem and platform behaviour in src-tauri. Use for any change under src-tauri/ or to a webview-to-Rust bridge.

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}")`.

Menus and shortcuts

  • `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`.

Plugins and capabilities

Add the crate to `src-tauri/Cargo.toml`, register `.plugin()` in `src-tauri/src/app_plugins.rs`, and grant the narrowest permission in `src-tauri/capabilities/*.json` (`default.json` unless a window-scoped file fits). `cargo machete` (`lint:rust-deps`) runs in CI.

Platform code

macOS is primary; isolate platform code with `cfg`. Tests using `tauri::test` must be gated `#[cfg(not(target_os = "windows"))]`.

Verify

cargo test --manifest-path src-tauri/Cargo.toml
cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warnings
bash scripts/check-cross-target.sh   # when adding a tauri::test mock-runtime test
pnpm lint:ipc-contract && pnpm lint:command-errors && pnpm lint:window-thread

Find existing bridges with `rg -n 'invoke\(|emit\(|listen\(' src src-tauri/src` and commands with `rg -n '#\[tauri::command\]' src-tauri/src`.

Read more
@xiaolai
Ships withvmark

The Plain-Text Workspace Where Humans and AI Collaborate Free. Local-first. Format-aware. VMark is the plain-text workspace where humans and AI collaborate.

91810 skills6 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
918
Star history of xiaolai/vmark on GitHub, a chart by star-history.com

Other skills on vmark.

css-design-tdd

css-design-tdd

Test-driven CSS design system modifications. Run checks before/after CSS changes to verify token usage, variable definitions,…

@xiaolai@xiaolaiInstall Skill
mcp-dev

mcp-dev

Build or change VMark's MCP integration - the server/mcp sidecar's tools and schemas, the Rust bridge, the frontend bridge…

@xiaolai@xiaolaiInstall Skill
plan-audit

plan-audit

Audit or verify an implementation against a plan (dev-docs/plans/* or .claude/tdd-guardian/*). Audit mode inspects for gaps,…

@xiaolai@xiaolaiInstall Skill
planning

planning

Create comprehensive implementation plans and write them to plan files. Use when the user asks for a plan, comprehensive plan,…

@xiaolai@xiaolaiInstall Skill
react-app-dev

react-app-dev

Implement or modify VMark React UI with project conventions (Zustand selectors, Tailwind v4, shadcn/ui). Use for components,…

@xiaolai@xiaolaiInstall Skill
tauri-mcp-testing

tauri-mcp-testing

E2E testing of a running VMark debug build through the Tauri MCP server - session management, webview interaction, IPC…

@xiaolai@xiaolaiInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca1d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip2d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about rust-tauri-backend.

Which coding agents can use rust-tauri-backend?
rust-tauri-backend installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.