tauri-v2

Implements Tauri v2 cross-platform desktop and mobile apps with Rust backends and web frontends.

Updated Jun 11, 2026
One-click install
npx skills add https://github.com/brillianodhiya/VisionScript --skill tauri-v2-brillianodhiya
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tauri-v2
Source: https://github.com/brillianodhiya/VisionScript/tree/main/.agents/skills/tauri-v2
Command: npx skills add https://github.com/brillianodhiya/VisionScript --skill tauri-v2-brillianodhiya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building Tauri v2 applications involves a mandatory capabilities-based security model, strict command registration rules, and platform-specific build requirements that cause silent runtime failures, permission errors, and broken mobile builds when misconfigured. ## Core Features & Use Cases - Rust Command & IPC Patterns: Implement #[tauri::command] functions with proper error handling, and choose between Commands, Events, and typed Channels for frontend-backend communication. - Security Capabilities Configuration: Set up capability files with explicit permissions and scopes for core APIs and official plugins (fs, dialog, shell, http, store, updater, and more). - Cross-Platform Build & Distribution: Configure tauri.conf.json and Cargo.toml for desktop (macOS, Windows, Linux) and mobile (iOS, Android), including updater signing and bundle packaging. - Use Case: When your invoke() call returns undefined or a plugin silently fails, this Skill diagnoses the missing generate_handler! registration or absent capability permission and provides the exact fix. ## Quick Start Ask the AI to create a new Tauri v2 command with its frontend invoke call and the required capability permissions for your app.

Frequently Asked Questions about tauri-v2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Tauri v2 command and call it from the frontend?▼

Define a function with #[tauri::command] in src-tauri/src/lib.rs, register it in tauri::generate_handler![], then call it from the frontend using invoke() from @tauri-apps/api/core. Commands missing from generate_handler! silently fail at runtime.

Why does my Tauri plugin fail with permission denied?▼

Tauri v2 denies everything by default, so installing a plugin is not enough. You must add the plugin's permission string (e.g., fs:default) to a capability file in src-tauri/capabilities/ that targets your window.

Does Tauri v2 support iOS and Android mobile builds?▼

Yes, Tauri v2 supports iOS and Android via cargo tauri ios/android init, dev, and build. Mobile requires all logic in lib.rs with #[cfg_attr(mobile, tauri::mobile_entry_point)] and platform Rust targets installed via rustup.

What is the difference between Tauri commands, events, and channels?▼

Commands are request-response calls from frontend to Rust, events are fire-and-forget global notifications, and channels are typed high-frequency streams scoped to a single command invocation. Use commands for data fetching and channels for progress updates.

Why does my Tauri app show a white screen on launch?▼

A white screen usually means the frontend is not building or the dev server is unreachable. Verify that build.devUrl in tauri.conf.json matches your frontend dev server port and that beforeDevCommand starts it correctly.

When should I not use this Tauri v2 skill?▼

Avoid it for Tauri v1 projects (migrate first), pure frontend work without Tauri integration, native Swift/Kotlin mobile development, or backend API development unrelated to Tauri.